| 1 |
// Slate 5.3.1 |
| 2 |
// Bootswatch |
| 3 |
|
| 4 |
$theme: "slate" !default; |
| 5 |
|
| 6 |
// |
| 7 |
// Color system |
| 8 |
// |
| 9 |
|
| 10 |
$white: #fff !default; |
| 11 |
$gray-100: #f8f9fa !default; |
| 12 |
$gray-200: #e9ecef !default; |
| 13 |
$gray-300: #dee2e6 !default; |
| 14 |
$gray-400: #ced4da !default; |
| 15 |
$gray-500: #999 !default; |
| 16 |
$gray-600: #7a8288 !default; |
| 17 |
$gray-700: #52575c !default; |
| 18 |
$gray-800: #3a3f44 !default; |
| 19 |
$gray-900: #272b30 !default; |
| 20 |
$black: #000 !default; |
| 21 |
|
| 22 |
$blue: #007bff !default; |
| 23 |
$indigo: #6610f2 !default; |
| 24 |
$purple: #6f42c1 !default; |
| 25 |
$pink: #e83e8c !default; |
| 26 |
$red: #ee5f5b !default; |
| 27 |
$orange: #fd7e14 !default; |
| 28 |
$yellow: #f89406 !default; |
| 29 |
$green: #62c462 !default; |
| 30 |
$teal: #20c997 !default; |
| 31 |
$cyan: #5bc0de !default; |
| 32 |
|
| 33 |
@function body-mix($weight) { |
| 34 |
@return mix($gray-900, $gray-600, $weight); |
| 35 |
} |
| 36 |
|
| 37 |
$body-bg: body-mix(100%) !default; |
| 38 |
$body-color: body-mix(0%) !default; |
| 39 |
$contrast-bg: color-contrast($body-bg) !default; |
| 40 |
$contrast-fg: color-contrast($contrast-bg) !default; |
| 41 |
|
| 42 |
@function lighten($color, $percent) { |
| 43 |
@return mix($contrast-bg, $color, $percent); |
| 44 |
} |
| 45 |
|
| 46 |
@function darken($color, $percent) { |
| 47 |
@return mix($contrast-fg, $color, $percent); |
| 48 |
} |
| 49 |
|
| 50 |
$primary: body-mix(66.7%) !default; |
| 51 |
$secondary: body-mix(0%) !default; |
| 52 |
$success: $green !default; |
| 53 |
$info: $cyan !default; |
| 54 |
$warning: $yellow !default; |
| 55 |
$danger: $red !default; |
| 56 |
// This is inconsistent with Bootstrap semantics. That is, $dark |
| 57 |
// should actually be a light color in a dark mode setting, :shrug: |
| 58 |
// https://github.com/thomaspark/bootswatch/issues/989 |
| 59 |
$light: lighten($body-color, 50%) !default; |
| 60 |
$dark: $body-bg !default; |
| 61 |
|
| 62 |
$min-contrast-ratio: 1.95 !default; |
| 63 |
|
| 64 |
$enable-shadows: true !default; |
| 65 |
$enable-gradients: true !default; |
| 66 |
|
| 67 |
// Components |
| 68 |
|
| 69 |
$component-active-color: $contrast-bg !default; |
| 70 |
|
| 71 |
// Links |
| 72 |
|
| 73 |
$link-color: $contrast-bg !default; |
| 74 |
|
| 75 |
// Fonts |
| 76 |
|
| 77 |
// Tables |
| 78 |
|
| 79 |
$table-color: $contrast-bg !default; |
| 80 |
$table-accent-bg: rgba($contrast-bg, .05) !default; |
| 81 |
$table-hover-bg: rgba($contrast-bg, .075) !default; |
| 82 |
$table-border-color: rgba($contrast-fg, .6) !default; |
| 83 |
$table-dark-border-color: $table-border-color !default; |
| 84 |
$table-dark-color: $contrast-bg !default; |
| 85 |
|
| 86 |
$table-bg-scale: 0% !default; |
| 87 |
|
| 88 |
// Buttons |
| 89 |
|
| 90 |
$input-btn-padding-y: .75rem !default; |
| 91 |
$input-btn-padding-x: 1rem !default; |
| 92 |
|
| 93 |
// Forms |
| 94 |
|
| 95 |
$input-bg: $contrast-bg !default; |
| 96 |
$input-color: body-mix(100%) !default; |
| 97 |
$input-border-color: rgba($contrast-fg, .6) !default; |
| 98 |
$input-group-addon-color: $gray-500 !default; |
| 99 |
$input-group-addon-bg: body-mix(33.3%) !default; |
| 100 |
$input-disabled-color: body-mix(0) !default; |
| 101 |
$input-disabled-bg: mix($contrast-bg, $contrast-fg, 80%) !default; |
| 102 |
|
| 103 |
$form-check-input-bg: $contrast-bg !default; |
| 104 |
|
| 105 |
$form-select-disabled-bg: $input-disabled-bg !default; |
| 106 |
$form-select-disabled-color: $input-disabled-color !default; |
| 107 |
|
| 108 |
$form-file-button-color: $input-group-addon-color !default; |
| 109 |
$form-file-button-bg: $input-group-addon-bg !default; |
| 110 |
$form-file-button-hover-bg: darken($form-file-button-bg, 5%) !default; |
| 111 |
|
| 112 |
// Dropdowns |
| 113 |
|
| 114 |
$dropdown-bg: body-mix(66.7%) !default; |
| 115 |
$dropdown-border-color: rgba($contrast-fg, .6) !default; |
| 116 |
$dropdown-divider-bg: rgba($contrast-fg, .15) !default; |
| 117 |
$dropdown-link-color: $body-color !default; |
| 118 |
$dropdown-link-hover-color: $contrast-bg !default; |
| 119 |
$dropdown-link-hover-bg: $body-bg !default; |
| 120 |
$dropdown-link-active-color: $dropdown-link-hover-color !default; |
| 121 |
$dropdown-link-active-bg: $dropdown-link-hover-bg !default; |
| 122 |
|
| 123 |
// Navs |
| 124 |
|
| 125 |
$nav-tabs-border-color: rgba($contrast-fg, .6) !default; |
| 126 |
$nav-tabs-link-hover-border-color: $nav-tabs-border-color !default; |
| 127 |
$nav-tabs-link-active-color: $contrast-bg !default; |
| 128 |
$nav-tabs-link-active-border-color: $nav-tabs-border-color !default; |
| 129 |
|
| 130 |
// Navbar |
| 131 |
|
| 132 |
$navbar-padding-y: 0 !default; |
| 133 |
|
| 134 |
// Pagination |
| 135 |
|
| 136 |
$pagination-color: $contrast-bg !default; |
| 137 |
$pagination-bg: transparent !default; |
| 138 |
$pagination-border-color: rgba($contrast-fg, .6) !default; |
| 139 |
$pagination-hover-color: $contrast-bg !default; |
| 140 |
$pagination-hover-bg: transparent !default; |
| 141 |
$pagination-hover-border-color: rgba($contrast-fg, .6) !default; |
| 142 |
$pagination-active-bg: transparent !default; |
| 143 |
$pagination-active-border-color: rgba($contrast-fg, .6) !default; |
| 144 |
$pagination-disabled-bg: transparent !default; |
| 145 |
$pagination-disabled-border-color: rgba($contrast-fg, .6) !default; |
| 146 |
|
| 147 |
// Cards |
| 148 |
|
| 149 |
$card-border-color: rgba($contrast-fg, .6) !default; |
| 150 |
$card-cap-bg: lighten(body-mix(66.7%), 10%) !default; |
| 151 |
$card-bg: lighten($body-bg, 5%) !default; |
| 152 |
|
| 153 |
// Popovers |
| 154 |
|
| 155 |
$popover-bg: lighten($body-bg, 5%) !default; |
| 156 |
|
| 157 |
// Toasts |
| 158 |
|
| 159 |
$toast-background-color: lighten($body-bg, 5%) !default; |
| 160 |
$toast-border-color: rgba(0, 0, 0, .2) !default; |
| 161 |
$toast-header-color: $body-color !default; |
| 162 |
$toast-header-background-color: $toast-background-color !default; |
| 163 |
$toast-header-border-color: $toast-border-color !default; |
| 164 |
|
| 165 |
// Modals |
| 166 |
|
| 167 |
$modal-content-bg: lighten($body-bg, 5%) !default; |
| 168 |
$modal-header-border-color: rgba(0, 0, 0, .2) !default; |
| 169 |
|
| 170 |
// Progress bars |
| 171 |
|
| 172 |
$progress-bg: darken(body-mix(100%), 5%) !default; |
| 173 |
$progress-bar-color: body-mix(0) !default; |
| 174 |
|
| 175 |
// List group |
| 176 |
|
| 177 |
$list-group-color: $contrast-bg !default; |
| 178 |
$list-group-bg: lighten($body-bg, 5%) !default; |
| 179 |
$list-group-border-color: rgba($contrast-fg, .6) !default; |
| 180 |
$list-group-item-bg-scale: 0% !default; |
| 181 |
$list-group-hover-bg: lighten($body-bg, 10%) !default; |
| 182 |
$list-group-active-color: $contrast-bg !default; |
| 183 |
$list-group-active-bg: $list-group-hover-bg !default; |
| 184 |
$list-group-active-border-color: $list-group-border-color !default; |
| 185 |
$list-group-disabled-color: body-mix(33.3%) !default; |
| 186 |
$list-group-action-color: $contrast-bg !default; |
| 187 |
|
| 188 |
// Breadcrumbs |
| 189 |
|
| 190 |
$breadcrumb-padding-y: .375rem !default; |
| 191 |
$breadcrumb-padding-x: .75rem !default; |
| 192 |
$breadcrumb-active-color: $gray-500 !default; |
| 193 |
$breadcrumb-border-radius: .25rem !default; |
| 194 |
|
| 195 |
// Code |
| 196 |
|
| 197 |
$pre-color: inherit !default; |
| 198 |
|
| 199 |
// Dark color mode |
| 200 |
|
| 201 |
$body-emphasis-color: $body-color !default; |
| 202 |
$body-emphasis-color-dark: $body-color !default; |
| 203 |
|
| 204 |
// Tooltips |
| 205 |
|
| 206 |
$tooltip-bg: $body-color !default; |
| 207 |
$tooltip-color: $body-bg !default; |