| 1 |
// Darkly 5.3.1 |
| 2 |
// Bootswatch |
| 3 |
|
| 4 |
$theme: "darkly" !default; |
| 5 |
|
| 6 |
// |
| 7 |
// Color system |
| 8 |
// |
| 9 |
|
| 10 |
$white: #fff !default; |
| 11 |
$gray-100: #f8f9fa !default; |
| 12 |
$gray-200: #ebebeb !default; |
| 13 |
$gray-300: #dee2e6 !default; |
| 14 |
$gray-400: #ced4da !default; |
| 15 |
$gray-500: #adb5bd !default; |
| 16 |
$gray-600: #888 !default; |
| 17 |
$gray-700: #444 !default; |
| 18 |
$gray-800: #303030 !default; |
| 19 |
$gray-900: #222 !default; |
| 20 |
$black: #000 !default; |
| 21 |
|
| 22 |
$blue: #375a7f !default; |
| 23 |
$indigo: #6610f2 !default; |
| 24 |
$purple: #6f42c1 !default; |
| 25 |
$pink: #e83e8c !default; |
| 26 |
$red: #e74c3c !default; |
| 27 |
$orange: #fd7e14 !default; |
| 28 |
$yellow: #f39c12 !default; |
| 29 |
$green: #00bc8c !default; |
| 30 |
$teal: #20c997 !default; |
| 31 |
$cyan: #3498db !default; |
| 32 |
|
| 33 |
// Body |
| 34 |
|
| 35 |
$body-bg: $gray-900 !default; |
| 36 |
$body-color: $white !default; |
| 37 |
@function body-mix($weight) { |
| 38 |
@return mix($body-bg, $body-color, $weight); |
| 39 |
} |
| 40 |
|
| 41 |
$primary: $blue !default; |
| 42 |
$secondary: body-mix(85%) !default; |
| 43 |
$success: $green !default; |
| 44 |
$info: $cyan !default; |
| 45 |
$warning: $yellow !default; |
| 46 |
$danger: $red !default; |
| 47 |
// This is inconsistent with Bootstrap semantics. That is, $dark |
| 48 |
// should actually be a light color in a dark mode setting, :shrug: |
| 49 |
// https://github.com/thomaspark/bootswatch/issues/989 |
| 50 |
$light: body-mix(65%) !default; |
| 51 |
$dark: body-mix(95%) !default; |
| 52 |
|
| 53 |
$min-contrast-ratio: 1.9 !default; |
| 54 |
|
| 55 |
// Links |
| 56 |
|
| 57 |
$link-color: $success !default; |
| 58 |
|
| 59 |
// Fonts |
| 60 |
|
| 61 |
// stylelint-disable-next-line value-keyword-case |
| 62 |
$font-family-sans-serif: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default; |
| 63 |
$h1-font-size: 3rem !default; |
| 64 |
$h2-font-size: 2.5rem !default; |
| 65 |
$h3-font-size: 2rem !default; |
| 66 |
$text-muted: body-mix(75%) !default; |
| 67 |
|
| 68 |
// Tables |
| 69 |
|
| 70 |
$table-border-color: body-mix(85%) !default; |
| 71 |
|
| 72 |
$table-bg-scale: 0% !default; |
| 73 |
|
| 74 |
// Forms |
| 75 |
|
| 76 |
$input-bg: $body-color !default; |
| 77 |
$input-color: body-mix(95%) !default; |
| 78 |
$input-border-color: $body-bg !default; |
| 79 |
$input-group-addon-color: body-mix(65%) !default; |
| 80 |
$input-group-addon-bg: body-mix(85%) !default; |
| 81 |
$input-placeholder-color: body-mix(75%) !default; |
| 82 |
|
| 83 |
$form-check-input-bg: $body-color !default; |
| 84 |
$form-check-input-border: none !default; |
| 85 |
|
| 86 |
$form-select-disabled-color: body-mix(75%) !default; |
| 87 |
|
| 88 |
$form-file-button-color: $input-group-addon-color !default; |
| 89 |
$form-file-button-bg: $input-group-addon-bg !default; |
| 90 |
$form-file-button-hover-bg: darken($form-file-button-bg, 5%) !default; |
| 91 |
|
| 92 |
// Dropdowns |
| 93 |
|
| 94 |
$dropdown-bg: $body-bg !default; |
| 95 |
$dropdown-border-color: body-mix(85%) !default; |
| 96 |
$dropdown-divider-bg: body-mix(85%) !default; |
| 97 |
$dropdown-link-color: $body-color !default; |
| 98 |
$dropdown-link-hover-color: $body-color !default; |
| 99 |
$dropdown-link-hover-bg: $primary !default; |
| 100 |
|
| 101 |
// Navs |
| 102 |
|
| 103 |
$nav-link-padding-x: 2rem !default; |
| 104 |
$nav-link-disabled-color: body-mix(65%) !default; |
| 105 |
$nav-tabs-border-color: body-mix(85%) !default; |
| 106 |
$nav-tabs-link-hover-border-color: $nav-tabs-border-color $nav-tabs-border-color transparent !default; |
| 107 |
$nav-tabs-link-active-color: $body-color !default; |
| 108 |
$nav-tabs-link-active-border-color: $nav-tabs-border-color $nav-tabs-border-color transparent !default; |
| 109 |
|
| 110 |
// Navbar |
| 111 |
|
| 112 |
$navbar-padding-y: 1rem !default; |
| 113 |
$navbar-dark-color: rgba($body-color, .6) !default; |
| 114 |
$navbar-dark-hover-color: $body-color !default; |
| 115 |
$navbar-light-color: rgba($body-bg, .7) !default; |
| 116 |
$navbar-light-hover-color: $body-bg !default; |
| 117 |
$navbar-light-active-color: $body-bg !default; |
| 118 |
$navbar-light-toggler-border-color: rgba($body-bg, .1) !default; |
| 119 |
|
| 120 |
// Pagination |
| 121 |
|
| 122 |
$pagination-color: $body-color !default; |
| 123 |
$pagination-bg: $success !default; |
| 124 |
$pagination-border-width: 0 !default; |
| 125 |
$pagination-border-color: transparent !default; |
| 126 |
$pagination-hover-color: $body-color !default; |
| 127 |
$pagination-hover-bg: lighten($success, 10%) !default; |
| 128 |
$pagination-hover-border-color: transparent !default; |
| 129 |
$pagination-active-bg: $pagination-hover-bg !default; |
| 130 |
$pagination-active-border-color: transparent !default; |
| 131 |
$pagination-disabled-color: $body-color !default; |
| 132 |
$pagination-disabled-bg: darken($success, 15%) !default; |
| 133 |
$pagination-disabled-border-color: transparent !default; |
| 134 |
|
| 135 |
// Cards |
| 136 |
|
| 137 |
$card-cap-bg: body-mix(85%) !default; |
| 138 |
$card-bg: body-mix(95%) !default; |
| 139 |
|
| 140 |
// Popovers |
| 141 |
|
| 142 |
$popover-bg: body-mix(95%) !default; |
| 143 |
$popover-header-bg: body-mix(85%) !default; |
| 144 |
|
| 145 |
// Toasts |
| 146 |
|
| 147 |
$toast-background-color: body-mix(85%) !default; |
| 148 |
$toast-header-background-color: body-mix(95%) !default; |
| 149 |
|
| 150 |
// Modals |
| 151 |
|
| 152 |
$modal-content-bg: body-mix(95%) !default; |
| 153 |
$modal-content-border-color: body-mix(85%) !default; |
| 154 |
$modal-header-border-color: body-mix(85%) !default; |
| 155 |
|
| 156 |
// Progress bars |
| 157 |
|
| 158 |
$progress-bg: body-mix(85%) !default; |
| 159 |
|
| 160 |
// List group |
| 161 |
|
| 162 |
$list-group-color: $body-color !default; |
| 163 |
$list-group-bg: body-mix(95%) !default; |
| 164 |
$list-group-border-color: body-mix(85%) !default; |
| 165 |
$list-group-hover-bg: body-mix(85%) !default; |
| 166 |
$list-group-action-hover-color: $list-group-color !default; |
| 167 |
$list-group-action-active-bg: $body-bg !default; |
| 168 |
|
| 169 |
// Breadcrumbs |
| 170 |
|
| 171 |
$breadcrumb-padding-y: .375rem !default; |
| 172 |
$breadcrumb-padding-x: .75rem !default; |
| 173 |
$breadcrumb-bg: body-mix(85%) !default; |
| 174 |
$breadcrumb-border-radius: .25rem !default; |
| 175 |
|
| 176 |
// Close |
| 177 |
|
| 178 |
$btn-close-color: $body-color !default; |
| 179 |
$btn-close-opacity: .4 !default; |
| 180 |
$btn-close-hover-opacity: 1 !default; |
| 181 |
|
| 182 |
// Code |
| 183 |
|
| 184 |
$pre-color: inherit !default; |
| 185 |
|
| 186 |
// Dark color mode |
| 187 |
|
| 188 |
$body-emphasis-color: $body-color !default; |
| 189 |
$body-emphasis-color-dark: $body-color !default; |
| 190 |
|
| 191 |
// Tooltips |
| 192 |
|
| 193 |
$tooltip-bg: $body-color !default; |
| 194 |
$tooltip-color: $body-bg !default; |