-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy path_variables-dark.scss
More file actions
144 lines (122 loc) · 9.11 KB
/
_variables-dark.scss
File metadata and controls
144 lines (122 loc) · 9.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// Dark color mode variables
//
// Custom variables for the `[data-bs-theme="dark"]` theme. Use this as a starting point for your own custom color modes by creating a new theme-specific file like `_variables-dark.scss` and adding the variables you need.
//
// Global colors
//
// OUDS mod
// scss-docs-start sass-dark-mode-vars
// scss-docs-start theme-color-dark-variables
$primary-dark: $ouds-color-content-brand-primary-dark !default;
$secondary-dark: $white !default;
$success-dark: $ouds-color-functional-malachite-500 !default;
$info-dark: $ouds-color-functional-dodger-blue-500 !default;
$warning-dark: $ouds-color-functional-sun-500 !default;
$danger-dark: $ouds-color-functional-scarlet-600 !default;
$light-dark: $gray-500 !default;
$dark-dark: $black !default;
// scss-docs-end theme-color-dark-variables
// scss-docs-start theme-colors-dark-map
$theme-colors-dark: (
"primary": $primary-dark,
"secondary": $secondary-dark,
"success": $success-dark,
"info": $info-dark,
"warning": $warning-dark,
"danger": $danger-dark,
"light": $light-dark,
"dark": $dark-dark,
) !default;
// scss-docs-end theme-colors-dark-map
// End mod
// scss-docs-start theme-text-dark-variables
$primary-text-emphasis-dark: $primary-dark !default; // OUDS mod: instead of `tint-color($primary, 40%)`
$secondary-text-emphasis-dark: $secondary-dark !default; // OUDS mod: instead of `tint-color($secondary, 40%)`
$success-text-emphasis-dark: $success-dark !default; // OUDS mod: instead of `tint-color($success, 40%)`
$info-text-emphasis-dark: $info-dark !default; // OUDS mod: instead of `tint-color($info, 40%)`
$warning-text-emphasis-dark: $warning-dark !default; // OUDS mod: instead of `tint-color($warning, 40%)`
$danger-text-emphasis-dark: $danger-dark !default; // OUDS mod: instead of `tint-color($danger, 40%)`
$light-text-emphasis-dark: $light-dark !default; // OUDS mod: instead of `$gray-100`
$dark-text-emphasis-dark: $dark-dark !default; // OUDS mod: instead of `$gray-300`
// scss-docs-end theme-text-dark-variables
// scss-docs-start theme-bg-subtle-dark-variables
$primary-bg-subtle-dark: $primary-dark !default; // OUDS mod: instead of `shade-color($primary, 80%)`
$secondary-bg-subtle-dark: $secondary-dark !default; // OUDS mod: instead of `shade-color($secondary, 80%)`
$success-bg-subtle-dark: $success-dark !default; // OUDS mod: instead of `shade-color($success, 80%)`
$info-bg-subtle-dark: $info-dark !default; // OUDS mod: instead of `shade-color($info, 80%)`
$warning-bg-subtle-dark: $warning-dark !default; // OUDS mod: instead of `shade-color($warning, 80%)`
$danger-bg-subtle-dark: $danger-dark !default; // OUDS mod: instead of `shade-color($danger, 80%)`
$light-bg-subtle-dark: $light-dark !default; // OUDS mod: instead of `$gray-800`
$dark-bg-subtle-dark: $dark-dark !default; // OUDS mod: instead of `mix($gray-800, $black)`
// scss-docs-end theme-bg-subtle-dark-variables
// scss-docs-start theme-border-subtle-dark-variables
$primary-border-subtle-dark: $primary-dark !default; // OUDS mod: instead of `shade-color($primary, 40%)`
$secondary-border-subtle-dark: $secondary-dark !default; // OUDS mod: instead of `shade-color($secondary, 40%)`
$success-border-subtle-dark: $success-dark !default; // OUDS mod: instead of `shade-color($success, 40%)`
$info-border-subtle-dark: $info-dark !default; // OUDS mod: instead of `shade-color($info, 40%)`
$warning-border-subtle-dark: $warning-dark !default; // OUDS mod: instead of `shade-color($warning, 40%)`
$danger-border-subtle-dark: $danger-dark !default; // OUDS mod: instead of `shade-color($danger, 40%)`
$light-border-subtle-dark: $light-dark !default; // OUDS mod: instead of `$gray-700`
$dark-border-subtle-dark: $dark-dark !default; // OUDS mod: instead of `$gray-800`
// scss-docs-end theme-border-subtle-dark-variables
$body-color-dark: $ouds-color-content-default-dark !default; // OUDS mod: instead of `$gray-300`
$body-bg-dark: $ouds-color-bg-primary-dark !default; // OUDS mod: instead of `$gray-900`
$body-secondary-color-dark: $ouds-color-content-muted-dark !default; // OUDS mod: instead of `rgba($body-color-dark, .75)`
$body-secondary-bg-dark: $ouds-color-bg-secondary-dark !default; // OUDS mod: instead of `$gray-800`
$body-tertiary-color-dark: $ouds-color-content-muted-dark !default; // OUDS mod: instead of `rgba($body-color-dark, .5)`
$body-tertiary-bg-dark: $ouds-color-bg-tertiary-dark !default; // OUDS mod: instead of `mix($gray-800, $gray-900, 50%)`
$body-emphasis-color-dark: $ouds-color-content-default-dark !default; // OUDS mod: instead of `$gray-100`
$border-color-dark: $ouds-color-border-default-dark !default; // OUDS mod: instead of `$gray-700`
$border-color-translucent-dark: rgba($white, .15) !default;
$headings-color-dark: inherit !default;
$link-color-dark: $white !default; // OUDS mod: instead of `tint-color($primary, 40%)`
$link-hover-color-dark: $ouds-color-orange-500 !default; // OUDS mod: instead of `shift-color($link-color-dark, -$link-shade-percentage)`
$code-color-dark: $ouds-color-content-muted-dark !default; // OUDS mod: instead of `tint-color($code-color, 40%)`
$mark-color-dark: $ouds-color-content-on-action-highlighted-dark !default; // OUDS mod: instead of `$body-color-dark`
$mark-bg-dark: $ouds-color-action-highlighted-dark !default; // OUDS mod: instead of `$yellow-800`
$focus-ring-color-dark: rgba($ouds-color-orange-500, $focus-ring-opacity) !default; // OUDS mod
$success-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 125 125'><path fill='#{$ouds-color-functional-malachite-500}' d='M62.5 0a62.5 62.5 0 1 0 0 125 62.5 62.5 0 0 0 0-125zm28 29.4c3.3 0 6 2.6 6 5.9a5.9 5.9 0 0 1-1.3 3.7L57.7 86a5.8 5.8 0 0 1-9.1 0L29.8 62.5c-.8-1-1.2-2.3-1.2-3.7a5.9 5.9 0 0 1 1.7-4.1l2.3-2.4a5.8 5.8 0 0 1 4.2-1.7 5.8 5.8 0 0 1 3.8 1.4L52 64.7 86.6 31a5.8 5.8 0 0 1 4-1.6z'/></svg>") !default; // OUDS mod
$danger-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 125'><path fill='#{$ouds-color-functional-scarlet-600}' d='M70.3 0c-5.8 0-10.8 3.1-13.5 7.8L2.3 101.3l-.2.2A15.6 15.6 0 0 0 15.6 125H125a15.6 15.6 0 0 0 13.5-23.5L83.8 7.8A15.6 15.6 0 0 0 70.3 0zm19.2 50a6.4 6.4 0 0 1 4.4 1.9 6.4 6.4 0 0 1 0 9L79.4 75.6l15 15a6.4 6.4 0 0 1 0 9.2 6.4 6.4 0 0 1-4.5 1.9 6.4 6.4 0 0 1-4.6-2l-15-15-15 15a6.4 6.4 0 0 1-4.6 2 6.4 6.4 0 0 1-4.6-2 6.4 6.4 0 0 1 0-9l15-15L46.8 61a6.4 6.4 0 1 1 9-9.1l14.6 14.5L84.8 52a6.4 6.4 0 0 1 4.7-1.9z'/></svg>") !default; // OUDS mod
// OUDS mod
$svg-as-custom-props-dark: (
"success": $success-icon-dark,
"error": $danger-icon-dark
) !default;
// End mod
//
// Forms
//
$form-check-filter-dark: none !default; // OUDS mod
$form-check-input-disabled-color-dark: $gray-700 !default; // OUDS mod
$form-color-disabled-filter-dark: brightness(0) invert(1) brightness(.4) !default; // OUDS mod
$form-switch-square-bg-dark: $ouds-color-functional-dark-gray-880 !default; // OUDS mod
// OUDS mod: no $form-select-indicator-color-dark
$form-select-indicator-dark: escape-svg(url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 7'><path fill='#{$white}' d='M7 7 0 0h14L7 7z'/></svg>")) !default; // OUDS mod: instead of Bootstrap svg
$form-select-disabled-indicator-dark: escape-svg(url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 7'><path fill='#{$gray-600}' d='M7 7 0 0h14L7 7z'/></svg>")) !default; // OUDS mod
// OUDS mod: no $form-switch-color-dark
// OUDS mod: no $form-switch-bg-image-dark
// scss-docs-start form-validation-colors-dark
$form-valid-color-dark: var(--#{$prefix}success-text-emphasis) !default; // OUDS mod: instead of `$green-300`
$form-valid-border-color-dark: var(--#{$prefix}success) !default; // OUDS mod: instead of `$green-300`
$form-invalid-color-dark: var(--#{$prefix}danger-text-emphasis) !default; // OUDS mod: instead of `$red-300`
$form-invalid-border-color-dark: var(--#{$prefix}danger) !default; // OUDS mod: instead of `$red-300`
$form-switch-unchecked-invalid-border-color-dark: $form-invalid-border-color-dark !default; // OUDS mod
// scss-docs-end form-validation-colors-dark
//
// Accordion
//
// OUDS mod: no $accordion-icon-color-dark
// OUDS mod: no $accordion-icon-active-color-dark
// OUDS mod: no $accordion-button-icon-dark
// OUDS mod: no $accordion-button-active-icon-dark
//
// Breadcrumb
//
$breadcrumb-divider-filter-dark: $invert-filter !default; // OUDS mod
//
// Tables
//
$table-striped-bg-factor-dark: 1 !default; // OUDS mod
$table-active-bg-factor-dark: .35 !default; // OUDS mod
$table-hover-bg-factor-dark: .135 !default; // OUDS mod
// scss-docs-end sass-dark-mode-vars