noctemyth 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/noctemyth-skelton.css +3126 -5336
- package/dist/css/noctemyth-skelton.css.map +1 -1
- package/dist/css/noctemyth-skelton.min.css +3126 -5336
- package/dist/css/noctemyth-skelton.min.css.map +1 -1
- package/dist/css/noctemyth-utilities.css +38455 -77487
- package/dist/css/noctemyth-utilities.css.map +1 -1
- package/dist/css/noctemyth-utilities.min.css +38455 -77487
- package/dist/css/noctemyth-utilities.min.css.map +1 -1
- package/dist/css/noctemyth.css +22250 -37070
- package/dist/css/noctemyth.css.map +1 -1
- package/dist/css/noctemyth.min.css +5326 -22994
- package/dist/css/noctemyth.min.css.map +1 -1
- package/package.json +8 -8
- package/src/backgrounds/dot.scss +39 -15
- package/src/backgrounds/gingham.scss +35 -18
- package/src/backgrounds/rhombus.scss +58 -19
- package/src/backgrounds/stripe.scss +30 -9
- package/src/backgrounds/zigzag.scss +43 -18
- package/src/base/dub.scss +15 -2
- package/src/base/element.scss +1 -1
- package/src/components/accordion.scss +254 -88
- package/src/components/badge.scss +215 -63
- package/src/components/blockquote.scss +74 -25
- package/src/components/breadcrumbs.scss +66 -15
- package/src/components/button.scss +204 -76
- package/src/components/card.scss +204 -47
- package/src/components/dialogue.scss +209 -140
- package/src/components/div.scss +1 -1
- package/src/components/footer.scss +28 -5
- package/src/components/hamburger.scss +89 -50
- package/src/components/header.scss +71 -5
- package/src/components/heading.scss +6 -6
- package/src/components/image.scss +1 -0
- package/src/components/input.scss +141 -69
- package/src/components/label.scss +51 -3
- package/src/components/link.scss +72 -9
- package/src/components/list.scss +2 -2
- package/src/components/loader.scss +18 -7
- package/src/components/main.scss +1 -1
- package/src/components/message.scss +142 -23
- package/src/components/modal.scss +26 -7
- package/src/components/nav.scss +655 -279
- package/src/components/paragraph.scss +1 -1
- package/src/components/progress.scss +40 -15
- package/src/components/section.scss +1 -1
- package/src/components/span.scss +1 -1
- package/src/css-variables/color.scss +582 -465
- package/src/css-variables/components/dialogue.scss +2 -2
- package/src/css-variables/miscellaneous.scss +1 -1
- package/src/functions/color.scss +13 -0
- package/src/functions/index.scss +1 -0
- package/src/functions/string.scss +12 -0
- package/src/layouts/centering.scss +1 -1
- package/src/layouts/columns.scss +3 -2
- package/src/layouts/container.scss +1 -1
- package/src/mixins/color.scss +0 -32
- package/src/mixins/element.scss +2 -2
- package/src/mixins/responsive.scss +2 -1
- package/src/utilities/color.scss +2 -6
- package/src/variables/color.scss +949 -909
- package/src/variables/components/dialogue.scss +2 -2
- package/src/variables/miscellaneous.scss +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "sass:string";
|
|
3
|
+
@use "../functions/index.scss" as functions;
|
|
3
4
|
@use "../variables/index.scss" as variables;
|
|
4
5
|
@use "../mixins/index.scss" as mixins;
|
|
5
6
|
|
|
@@ -36,17 +37,20 @@
|
|
|
36
37
|
|
|
37
38
|
$oklch: #{$lightness} #{$chroma} #{$hue};
|
|
38
39
|
|
|
39
|
-
--#{variables.$prefix}color-#{$name}-#{$p}-oklch: #{$oklch};
|
|
40
40
|
--#{variables.$prefix}color-#{$name}-#{$p}: oklch(#{$oklch});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
@mixin setColor(
|
|
45
|
-
$
|
|
46
|
-
$
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
@mixin setColor(
|
|
45
|
+
$colorShade,
|
|
46
|
+
$lightnessOffset,
|
|
47
|
+
$srcColorName,
|
|
48
|
+
$destColorName,
|
|
49
|
+
$pseudoName,
|
|
50
|
+
$componentName: ""
|
|
51
|
+
) {
|
|
52
|
+
$srcColorName: $srcColorName;
|
|
53
|
+
$destColorName: $destColorName;
|
|
50
54
|
|
|
51
55
|
$pseudo: "";
|
|
52
56
|
@if ($pseudoName != "plain") {
|
|
@@ -60,519 +64,619 @@
|
|
|
60
64
|
|
|
61
65
|
$fore: map.get($colorShade, "fore");
|
|
62
66
|
@if ($fore != null) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
$light: map.get($fore, "light");
|
|
68
|
+
$dark: map.get($fore, "dark");
|
|
69
|
+
@if ($light != null and $dark != null) {
|
|
70
|
+
$lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
|
|
71
|
+
$darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
|
|
72
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-fore: light-dark(
|
|
73
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
74
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
75
|
+
);
|
|
76
|
+
}
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
$back: map.get($colorShade, "back");
|
|
72
80
|
@if ($back != null) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
$light: map.get($back, "light");
|
|
82
|
+
$dark: map.get($back, "dark");
|
|
83
|
+
@if ($light != null and $dark != null) {
|
|
84
|
+
$lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
|
|
85
|
+
$darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
|
|
86
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-back: light-dark(
|
|
87
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
88
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
89
|
+
);
|
|
90
|
+
}
|
|
79
91
|
}
|
|
80
92
|
|
|
81
93
|
$border: map.get($colorShade, "border");
|
|
82
94
|
@if ($border != null) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
)
|
|
95
|
+
$light: map.get($border, "light");
|
|
96
|
+
$dark: map.get($border, "dark");
|
|
97
|
+
@if ($light != null and $dark != null) {
|
|
98
|
+
$lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
|
|
99
|
+
$darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
|
|
100
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-border: light-dark(
|
|
101
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
102
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
103
|
+
);
|
|
104
|
+
}
|
|
86
105
|
}
|
|
87
106
|
|
|
88
107
|
$placeholder: map.get($colorShade, "placeholder");
|
|
89
108
|
@if ($placeholder != null) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
)
|
|
109
|
+
$light: map.get($placeholder, "light");
|
|
110
|
+
$dark: map.get($placeholder, "dark");
|
|
111
|
+
@if ($light != null and $dark != null) {
|
|
112
|
+
$lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
|
|
113
|
+
$darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
|
|
114
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-placeholder: light-dark(
|
|
115
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
116
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
117
|
+
);
|
|
118
|
+
}
|
|
93
119
|
}
|
|
94
120
|
|
|
95
121
|
$shadow: map.get($colorShade, "shadow");
|
|
96
122
|
@if ($shadow != null) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
)
|
|
123
|
+
$light: map.get($shadow, "light");
|
|
124
|
+
$dark: map.get($shadow, "dark");
|
|
125
|
+
@if ($light != null and $dark != null) {
|
|
126
|
+
$lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
|
|
127
|
+
$darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
|
|
128
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-shadow: light-dark(
|
|
129
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
130
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
131
|
+
);
|
|
132
|
+
}
|
|
100
133
|
}
|
|
101
134
|
}
|
|
102
135
|
|
|
103
|
-
@mixin
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
136
|
+
@mixin setColorShade(
|
|
137
|
+
$colorShade,
|
|
138
|
+
$lightnessOffset,
|
|
139
|
+
$srcColorName,
|
|
140
|
+
$destColorName,
|
|
141
|
+
$name
|
|
142
|
+
) {
|
|
143
|
+
@include setColor(
|
|
144
|
+
$colorShade,
|
|
145
|
+
$lightnessOffset,
|
|
146
|
+
$srcColorName,
|
|
147
|
+
$destColorName,
|
|
148
|
+
$name
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
$selection: map.get($colorShade, "selection");
|
|
152
|
+
@if ($selection != null) {
|
|
153
|
+
@include setColor(
|
|
154
|
+
$selection,
|
|
155
|
+
$lightnessOffset,
|
|
156
|
+
$srcColorName,
|
|
157
|
+
$destColorName,
|
|
158
|
+
$name,
|
|
159
|
+
"selection"
|
|
111
160
|
);
|
|
161
|
+
}
|
|
112
162
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
$
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"accordion-summary"
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
$accordionDetails: map.get($accordion, "accordionDetails");
|
|
131
|
-
@if ($accordionDetails != null) {
|
|
132
|
-
@include setColor(
|
|
133
|
-
$accordionDetails,
|
|
134
|
-
"default",
|
|
135
|
-
$name,
|
|
136
|
-
"accordion-details"
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
//#endregion accordion
|
|
141
|
-
|
|
142
|
-
//#region badge
|
|
143
|
-
$badge: map.get($colorShade, "badge");
|
|
144
|
-
@if ($badge != null) {
|
|
145
|
-
@include setColor($badge, "default", $name, "badge");
|
|
146
|
-
}
|
|
147
|
-
//#endregion badge
|
|
148
|
-
|
|
149
|
-
//#region blockquote
|
|
150
|
-
$blockquote: map.get($colorShade, "blockquote");
|
|
151
|
-
@if ($blockquote != null) {
|
|
152
|
-
@include setColor($blockquote, "default", $name, "blockquote");
|
|
153
|
-
}
|
|
154
|
-
//#endregion blockquote
|
|
155
|
-
|
|
156
|
-
//#region breadcrumbs
|
|
157
|
-
$breadcrumbs: map.get($colorShade, "breadcrumbs");
|
|
158
|
-
@if ($breadcrumbs != null) {
|
|
159
|
-
@include setColor($breadcrumbs, "default", $name, "breadcrumbs");
|
|
160
|
-
|
|
161
|
-
$breadcrumb: map.get($breadcrumbs, "breadcrumb");
|
|
162
|
-
@if ($breadcrumb != null) {
|
|
163
|
-
@include setColor($breadcrumb, "default", $name, "breadcrumb");
|
|
164
|
-
}
|
|
163
|
+
//#region components
|
|
164
|
+
|
|
165
|
+
//#region accordion
|
|
166
|
+
$accordion: map.get($colorShade, "accordion");
|
|
167
|
+
@if ($accordion != null) {
|
|
168
|
+
@include setColor(
|
|
169
|
+
$accordion,
|
|
170
|
+
$lightnessOffset,
|
|
171
|
+
$srcColorName,
|
|
172
|
+
$destColorName,
|
|
173
|
+
$name,
|
|
174
|
+
"accordion"
|
|
175
|
+
);
|
|
165
176
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
177
|
+
$accordionSummary: map.get($accordion, "accordionSummary");
|
|
178
|
+
@if ($accordionSummary != null) {
|
|
179
|
+
@include setColor(
|
|
180
|
+
$accordionSummary,
|
|
181
|
+
$lightnessOffset,
|
|
182
|
+
$srcColorName,
|
|
183
|
+
$destColorName,
|
|
184
|
+
$name,
|
|
185
|
+
"accordion-summary"
|
|
186
|
+
);
|
|
175
187
|
}
|
|
176
|
-
//#endregion breadcrumbs
|
|
177
188
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
189
|
+
$accordionDetails: map.get($accordion, "accordionDetails");
|
|
190
|
+
@if ($accordionDetails != null) {
|
|
191
|
+
@include setColor(
|
|
192
|
+
$accordionDetails,
|
|
193
|
+
$lightnessOffset,
|
|
194
|
+
$srcColorName,
|
|
195
|
+
$destColorName,
|
|
196
|
+
$name,
|
|
197
|
+
"accordion-details"
|
|
198
|
+
);
|
|
182
199
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
$
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
200
|
+
}
|
|
201
|
+
//#endregion accordion
|
|
202
|
+
|
|
203
|
+
//#region badge
|
|
204
|
+
$badge: map.get($colorShade, "badge");
|
|
205
|
+
@if ($badge != null) {
|
|
206
|
+
@include setColor(
|
|
207
|
+
$badge,
|
|
208
|
+
$lightnessOffset,
|
|
209
|
+
$srcColorName,
|
|
210
|
+
$destColorName,
|
|
211
|
+
$name,
|
|
212
|
+
"badge"
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
//#endregion badge
|
|
216
|
+
|
|
217
|
+
//#region blockquote
|
|
218
|
+
$blockquote: map.get($colorShade, "blockquote");
|
|
219
|
+
@if ($blockquote != null) {
|
|
220
|
+
@include setColor(
|
|
221
|
+
$blockquote,
|
|
222
|
+
$lightnessOffset,
|
|
223
|
+
$srcColorName,
|
|
224
|
+
$destColorName,
|
|
225
|
+
$name,
|
|
226
|
+
"blockquote"
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
//#endregion blockquote
|
|
230
|
+
|
|
231
|
+
//#region breadcrumbs
|
|
232
|
+
$breadcrumbs: map.get($colorShade, "breadcrumbs");
|
|
233
|
+
@if ($breadcrumbs != null) {
|
|
234
|
+
@include setColor(
|
|
235
|
+
$breadcrumbs,
|
|
236
|
+
$lightnessOffset,
|
|
237
|
+
$srcColorName,
|
|
238
|
+
$destColorName,
|
|
239
|
+
$name,
|
|
240
|
+
"breadcrumbs"
|
|
241
|
+
);
|
|
199
242
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
243
|
+
$breadcrumb: map.get($breadcrumbs, "breadcrumb");
|
|
244
|
+
@if ($breadcrumb != null) {
|
|
245
|
+
@include setColor(
|
|
246
|
+
$breadcrumb,
|
|
247
|
+
$lightnessOffset,
|
|
248
|
+
$srcColorName,
|
|
249
|
+
$destColorName,
|
|
250
|
+
$name,
|
|
251
|
+
"breadcrumb"
|
|
252
|
+
);
|
|
204
253
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
$dialogueName: map.get($dialogue, "dialogueName");
|
|
218
|
-
@if ($dialogueName != null) {
|
|
219
|
-
@include setColor($dialogueName, "default", $name, "dialogue-name");
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
$dialogueMessage: map.get($dialogue, "dialogueMessage");
|
|
223
|
-
@if ($dialogueMessage != null) {
|
|
224
|
-
@include setColor(
|
|
225
|
-
$dialogueMessage,
|
|
226
|
-
"default",
|
|
227
|
-
$name,
|
|
228
|
-
"dialogue-message"
|
|
229
|
-
);
|
|
230
|
-
}
|
|
254
|
+
$breadcrumbDivider: map.get($breadcrumbs, "breadcrumbDivider");
|
|
255
|
+
@if ($breadcrumbDivider != null) {
|
|
256
|
+
@include setColor(
|
|
257
|
+
$breadcrumbDivider,
|
|
258
|
+
$lightnessOffset,
|
|
259
|
+
$srcColorName,
|
|
260
|
+
$destColorName,
|
|
261
|
+
$name,
|
|
262
|
+
"breadcrumb-divider"
|
|
263
|
+
);
|
|
231
264
|
}
|
|
232
|
-
|
|
265
|
+
}
|
|
266
|
+
//#endregion breadcrumbs
|
|
267
|
+
|
|
268
|
+
//#region button
|
|
269
|
+
$button: map.get($colorShade, "button");
|
|
270
|
+
@if ($button != null) {
|
|
271
|
+
@include setColor(
|
|
272
|
+
$button,
|
|
273
|
+
$lightnessOffset,
|
|
274
|
+
$srcColorName,
|
|
275
|
+
$destColorName,
|
|
276
|
+
$name,
|
|
277
|
+
"button"
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
//#endregion button
|
|
281
|
+
|
|
282
|
+
//#region card
|
|
283
|
+
$card: map.get($colorShade, "card");
|
|
284
|
+
@if ($card != null) {
|
|
285
|
+
@include setColor(
|
|
286
|
+
$card,
|
|
287
|
+
$lightnessOffset,
|
|
288
|
+
$srcColorName,
|
|
289
|
+
$destColorName,
|
|
290
|
+
$name,
|
|
291
|
+
"card"
|
|
292
|
+
);
|
|
233
293
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
294
|
+
$cardHeader: map.get($card, "cardHeader");
|
|
295
|
+
@if ($cardHeader != null) {
|
|
296
|
+
@include setColor(
|
|
297
|
+
$cardHeader,
|
|
298
|
+
$lightnessOffset,
|
|
299
|
+
$srcColorName,
|
|
300
|
+
$destColorName,
|
|
301
|
+
$name,
|
|
302
|
+
"card-header"
|
|
303
|
+
);
|
|
238
304
|
}
|
|
239
|
-
//#endregion header
|
|
240
305
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
306
|
+
$cardBody: map.get($card, "cardBody");
|
|
307
|
+
@if ($cardBody != null) {
|
|
308
|
+
@include setColor(
|
|
309
|
+
$cardBody,
|
|
310
|
+
$lightnessOffset,
|
|
311
|
+
$srcColorName,
|
|
312
|
+
$destColorName,
|
|
313
|
+
$name,
|
|
314
|
+
"card-body"
|
|
315
|
+
);
|
|
245
316
|
}
|
|
246
|
-
//#endregion label
|
|
247
317
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
318
|
+
$cardFooter: map.get($card, "cardFooter");
|
|
319
|
+
@if ($cardFooter != null) {
|
|
320
|
+
@include setColor(
|
|
321
|
+
$cardFooter,
|
|
322
|
+
$lightnessOffset,
|
|
323
|
+
$srcColorName,
|
|
324
|
+
$destColorName,
|
|
325
|
+
$name,
|
|
326
|
+
"card-footer"
|
|
327
|
+
);
|
|
252
328
|
}
|
|
253
|
-
|
|
329
|
+
}
|
|
330
|
+
//#endregion card
|
|
331
|
+
|
|
332
|
+
//#region dialogue
|
|
333
|
+
$dialogue: map.get($colorShade, "dialogue");
|
|
334
|
+
@if ($dialogue != null) {
|
|
335
|
+
@include setColor(
|
|
336
|
+
$dialogue,
|
|
337
|
+
$lightnessOffset,
|
|
338
|
+
$srcColorName,
|
|
339
|
+
$destColorName,
|
|
340
|
+
$name,
|
|
341
|
+
"dialogue"
|
|
342
|
+
);
|
|
254
343
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
344
|
+
$dialogueAvatar: map.get($dialogue, "dialogueAvatar");
|
|
345
|
+
@if ($dialogueAvatar != null) {
|
|
346
|
+
@include setColor(
|
|
347
|
+
$dialogueAvatar,
|
|
348
|
+
$lightnessOffset,
|
|
349
|
+
$srcColorName,
|
|
350
|
+
$destColorName,
|
|
351
|
+
$name,
|
|
352
|
+
"dialogue-avatar"
|
|
353
|
+
);
|
|
259
354
|
}
|
|
260
|
-
//#endregion loader
|
|
261
|
-
|
|
262
|
-
//#region message
|
|
263
|
-
$message: map.get($colorShade, "message");
|
|
264
|
-
@if ($message != null) {
|
|
265
|
-
@include setColor($message, "default", $name, "message");
|
|
266
|
-
|
|
267
|
-
$messageHeader: map.get($message, "messageHeader");
|
|
268
|
-
@if ($messageHeader != null) {
|
|
269
|
-
@include setColor($messageHeader, "default", $name, "message-header");
|
|
270
|
-
}
|
|
271
355
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
356
|
+
$dialogueName: map.get($dialogue, "dialogueName");
|
|
357
|
+
@if ($dialogueName != null) {
|
|
358
|
+
@include setColor(
|
|
359
|
+
$dialogueName,
|
|
360
|
+
$lightnessOffset,
|
|
361
|
+
$srcColorName,
|
|
362
|
+
$destColorName,
|
|
363
|
+
$name,
|
|
364
|
+
"dialogue-name"
|
|
365
|
+
);
|
|
276
366
|
}
|
|
277
|
-
//#endregion message
|
|
278
367
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
368
|
+
$dialogueMessage: map.get($dialogue, "dialogueMessage");
|
|
369
|
+
@if ($dialogueMessage != null) {
|
|
370
|
+
@include setColor(
|
|
371
|
+
$dialogueMessage,
|
|
372
|
+
$lightnessOffset,
|
|
373
|
+
$srcColorName,
|
|
374
|
+
$destColorName,
|
|
375
|
+
$name,
|
|
376
|
+
"dialogue-message"
|
|
377
|
+
);
|
|
283
378
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
379
|
+
}
|
|
380
|
+
//#endregion dialogue
|
|
381
|
+
|
|
382
|
+
//#region footer
|
|
383
|
+
$footer: map.get($colorShade, "footer");
|
|
384
|
+
@if ($footer != null) {
|
|
385
|
+
@include setColor(
|
|
386
|
+
$footer,
|
|
387
|
+
$lightnessOffset,
|
|
388
|
+
$srcColorName,
|
|
389
|
+
$destColorName,
|
|
390
|
+
$name,
|
|
391
|
+
"footer"
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
//#endregion footer
|
|
395
|
+
|
|
396
|
+
//#region header
|
|
397
|
+
$header: map.get($colorShade, "header");
|
|
398
|
+
@if ($header != null) {
|
|
399
|
+
@include setColor(
|
|
400
|
+
$header,
|
|
401
|
+
$lightnessOffset,
|
|
402
|
+
$srcColorName,
|
|
403
|
+
$destColorName,
|
|
404
|
+
$name,
|
|
405
|
+
"header"
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
//#endregion header
|
|
409
|
+
|
|
410
|
+
//#region input
|
|
411
|
+
$input: map.get($colorShade, "input");
|
|
412
|
+
@if ($input != null) {
|
|
413
|
+
@include setColor(
|
|
414
|
+
$input,
|
|
415
|
+
$lightnessOffset,
|
|
416
|
+
$srcColorName,
|
|
417
|
+
$destColorName,
|
|
418
|
+
$name,
|
|
419
|
+
"input"
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
//#endregion input
|
|
423
|
+
|
|
424
|
+
//#region label
|
|
425
|
+
$label: map.get($colorShade, "label");
|
|
426
|
+
@if ($label != null) {
|
|
427
|
+
@include setColor(
|
|
428
|
+
$label,
|
|
429
|
+
$lightnessOffset,
|
|
430
|
+
$srcColorName,
|
|
431
|
+
$destColorName,
|
|
432
|
+
$name,
|
|
433
|
+
"label"
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
//#endregion label
|
|
437
|
+
|
|
438
|
+
//#region link
|
|
439
|
+
$link: map.get($colorShade, "link");
|
|
440
|
+
@if ($link != null) {
|
|
441
|
+
@include setColor(
|
|
442
|
+
$link,
|
|
443
|
+
$lightnessOffset,
|
|
444
|
+
$srcColorName,
|
|
445
|
+
$destColorName,
|
|
446
|
+
$name,
|
|
447
|
+
"link"
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
//#endregion link
|
|
451
|
+
|
|
452
|
+
//#region loader
|
|
453
|
+
$loader: map.get($colorShade, "loader");
|
|
454
|
+
@if ($loader != null) {
|
|
455
|
+
@include setColor(
|
|
456
|
+
$loader,
|
|
457
|
+
$lightnessOffset,
|
|
458
|
+
$srcColorName,
|
|
459
|
+
$destColorName,
|
|
460
|
+
$name,
|
|
461
|
+
"loader"
|
|
462
|
+
);
|
|
463
|
+
}
|
|
464
|
+
//#endregion loader
|
|
465
|
+
|
|
466
|
+
//#region main
|
|
467
|
+
$main: map.get($colorShade, "main");
|
|
468
|
+
@if ($main != null) {
|
|
469
|
+
@include setColor(
|
|
470
|
+
$main,
|
|
471
|
+
$lightnessOffset,
|
|
472
|
+
$srcColorName,
|
|
473
|
+
$destColorName,
|
|
474
|
+
$name,
|
|
475
|
+
"main"
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
//#endregion main
|
|
479
|
+
|
|
480
|
+
//#region message
|
|
481
|
+
$message: map.get($colorShade, "message");
|
|
482
|
+
@if ($message != null) {
|
|
483
|
+
@include setColor(
|
|
484
|
+
$message,
|
|
485
|
+
$lightnessOffset,
|
|
486
|
+
$srcColorName,
|
|
487
|
+
$destColorName,
|
|
488
|
+
$name,
|
|
489
|
+
"message"
|
|
490
|
+
);
|
|
289
491
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
492
|
+
$messageHeader: map.get($message, "messageHeader");
|
|
493
|
+
@if ($messageHeader != null) {
|
|
494
|
+
@include setColor(
|
|
495
|
+
$messageHeader,
|
|
496
|
+
$lightnessOffset,
|
|
497
|
+
$srcColorName,
|
|
498
|
+
$destColorName,
|
|
499
|
+
$name,
|
|
500
|
+
"message-header"
|
|
501
|
+
);
|
|
294
502
|
}
|
|
295
|
-
//#endregion dot
|
|
296
503
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
504
|
+
$messageBody: map.get($message, "messageBody");
|
|
505
|
+
@if ($messageBody != null) {
|
|
506
|
+
@include setColor(
|
|
507
|
+
$messageBody,
|
|
508
|
+
$lightnessOffset,
|
|
509
|
+
$srcColorName,
|
|
510
|
+
$destColorName,
|
|
511
|
+
$name,
|
|
512
|
+
"message-body"
|
|
513
|
+
);
|
|
301
514
|
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
515
|
+
}
|
|
516
|
+
//#endregion message
|
|
517
|
+
|
|
518
|
+
//#region nav
|
|
519
|
+
$nav: map.get($colorShade, "nav");
|
|
520
|
+
@if ($nav != null) {
|
|
521
|
+
@include setColor(
|
|
522
|
+
$nav,
|
|
523
|
+
$lightnessOffset,
|
|
524
|
+
$srcColorName,
|
|
525
|
+
$destColorName,
|
|
526
|
+
$name,
|
|
527
|
+
"nav"
|
|
528
|
+
);
|
|
529
|
+
$navMenu: map.get($nav, "navMenu");
|
|
530
|
+
@if ($navMenu != null) {
|
|
531
|
+
@include setColor(
|
|
532
|
+
$navMenu,
|
|
533
|
+
$lightnessOffset,
|
|
534
|
+
$srcColorName,
|
|
535
|
+
$destColorName,
|
|
536
|
+
$name,
|
|
537
|
+
"nav-menu"
|
|
538
|
+
);
|
|
539
|
+
$navMenuItem: map.get($navMenu, "navMenuItem");
|
|
540
|
+
@if ($navMenuItem != null) {
|
|
541
|
+
@include setColor(
|
|
542
|
+
$navMenuItem,
|
|
543
|
+
$lightnessOffset,
|
|
544
|
+
$srcColorName,
|
|
545
|
+
$destColorName,
|
|
546
|
+
$name,
|
|
547
|
+
"nav-menu-item"
|
|
548
|
+
);
|
|
549
|
+
}
|
|
308
550
|
}
|
|
309
|
-
|
|
551
|
+
}
|
|
552
|
+
//#endregion nav
|
|
553
|
+
|
|
554
|
+
//#region progress
|
|
555
|
+
$progress: map.get($colorShade, "progress");
|
|
556
|
+
@if ($progress != null) {
|
|
557
|
+
@include setColor(
|
|
558
|
+
$progress,
|
|
559
|
+
$lightnessOffset,
|
|
560
|
+
$srcColorName,
|
|
561
|
+
$destColorName,
|
|
562
|
+
$name,
|
|
563
|
+
"progress"
|
|
564
|
+
);
|
|
565
|
+
}
|
|
566
|
+
//#endregion progress
|
|
567
|
+
|
|
568
|
+
//#endregion components
|
|
569
|
+
|
|
570
|
+
//#region backgrounds
|
|
571
|
+
|
|
572
|
+
//#region dot
|
|
573
|
+
$dot: map.get($colorShade, "dot");
|
|
574
|
+
@if ($dot != null) {
|
|
575
|
+
@include setColor(
|
|
576
|
+
$dot,
|
|
577
|
+
$lightnessOffset,
|
|
578
|
+
$srcColorName,
|
|
579
|
+
$destColorName,
|
|
580
|
+
$name,
|
|
581
|
+
"dot"
|
|
582
|
+
);
|
|
583
|
+
}
|
|
584
|
+
//#endregion dot
|
|
585
|
+
|
|
586
|
+
//#region gingham
|
|
587
|
+
$gingham: map.get($colorShade, "gingham");
|
|
588
|
+
@if ($gingham != null) {
|
|
589
|
+
@include setColor(
|
|
590
|
+
$gingham,
|
|
591
|
+
$lightnessOffset,
|
|
592
|
+
$srcColorName,
|
|
593
|
+
$destColorName,
|
|
594
|
+
$name,
|
|
595
|
+
"gingham"
|
|
596
|
+
);
|
|
597
|
+
}
|
|
598
|
+
//#endregion gingham
|
|
599
|
+
|
|
600
|
+
//#region rhombus
|
|
601
|
+
$rhombus: map.get($colorShade, "rhombus");
|
|
602
|
+
@if ($rhombus != null) {
|
|
603
|
+
@include setColor(
|
|
604
|
+
$rhombus,
|
|
605
|
+
$lightnessOffset,
|
|
606
|
+
$srcColorName,
|
|
607
|
+
$destColorName,
|
|
608
|
+
$name,
|
|
609
|
+
"rhombus"
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
//#endregion rhombus
|
|
613
|
+
|
|
614
|
+
//#region stripe
|
|
615
|
+
$stripe: map.get($colorShade, "stripe");
|
|
616
|
+
@if ($stripe != null) {
|
|
617
|
+
@include setColor(
|
|
618
|
+
$stripe,
|
|
619
|
+
$lightnessOffset,
|
|
620
|
+
$srcColorName,
|
|
621
|
+
$destColorName,
|
|
622
|
+
$name,
|
|
623
|
+
"stripe"
|
|
624
|
+
);
|
|
625
|
+
}
|
|
626
|
+
//#endregion stripe
|
|
627
|
+
|
|
628
|
+
//#region zigzag
|
|
629
|
+
$zigzag: map.get($colorShade, "zigzag");
|
|
630
|
+
@if ($zigzag != null) {
|
|
631
|
+
@include setColor(
|
|
632
|
+
$zigzag,
|
|
633
|
+
$lightnessOffset,
|
|
634
|
+
$srcColorName,
|
|
635
|
+
$destColorName,
|
|
636
|
+
$name,
|
|
637
|
+
"zigzag"
|
|
638
|
+
);
|
|
639
|
+
}
|
|
640
|
+
//#endregion zigzag
|
|
310
641
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
@if ($stripe != null) {
|
|
314
|
-
@include setColor($stripe, "default", $name, "stripe");
|
|
315
|
-
}
|
|
316
|
-
//#endregion stripe
|
|
642
|
+
//#endregion backgrounds
|
|
643
|
+
}
|
|
317
644
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
@include setColor($zigzag, "default", $name, "zigzag");
|
|
322
|
-
}
|
|
323
|
-
//#endregion zigzag
|
|
645
|
+
@mixin setColorShades($colorShades) {
|
|
646
|
+
@each $colorShade in $colorShades {
|
|
647
|
+
$name: map.get($colorShade, "name");
|
|
324
648
|
|
|
325
|
-
|
|
649
|
+
@include setColorShade($colorShade, 0, "gray", "default", $name);
|
|
326
650
|
|
|
327
651
|
@if (not variables.$is-skelton) {
|
|
328
652
|
@each $color in variables.$colors {
|
|
329
653
|
$colorName: map.get($color, "name");
|
|
654
|
+
@include setColorShade($colorShade, 0, $colorName, $colorName, $name);
|
|
655
|
+
}
|
|
330
656
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
$accordionDetails: map.get($accordion, "accordionDetails");
|
|
351
|
-
@if ($accordionDetails != null) {
|
|
352
|
-
@include setColor(
|
|
353
|
-
$accordionDetails,
|
|
354
|
-
$colorName,
|
|
355
|
-
$name,
|
|
356
|
-
"accordion-details"
|
|
357
|
-
);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
//#endregion accordion
|
|
361
|
-
|
|
362
|
-
//#region badge
|
|
363
|
-
$badge: map.get($colorShade, "badge");
|
|
364
|
-
@if ($badge != null) {
|
|
365
|
-
@include setColor($badge, $colorName, $name, "badge");
|
|
366
|
-
}
|
|
367
|
-
//#endregion badge
|
|
368
|
-
|
|
369
|
-
//#region blockquote
|
|
370
|
-
$blockquote: map.get($colorShade, "blockquote");
|
|
371
|
-
@if ($blockquote != null) {
|
|
372
|
-
@include setColor($blockquote, $colorName, $name, "blockquote");
|
|
373
|
-
}
|
|
374
|
-
//#endregion blockquote
|
|
375
|
-
|
|
376
|
-
//#region breadcrumbs
|
|
377
|
-
$breadcrumbs: map.get($colorShade, "breadcrumbs");
|
|
378
|
-
@if ($breadcrumbs != null) {
|
|
379
|
-
@include setColor($breadcrumbs, $colorName, $name, "breadcrumbs");
|
|
380
|
-
|
|
381
|
-
$breadcrumb: map.get($breadcrumbs, "breadcrumb");
|
|
382
|
-
@if ($breadcrumb != null) {
|
|
383
|
-
@include setColor($breadcrumb, $colorName, $name, "breadcrumb");
|
|
384
|
-
}
|
|
385
|
-
$breadcrumbDivider: map.get($breadcrumbs, "breadcrumbDivider");
|
|
386
|
-
@if ($breadcrumbDivider != null) {
|
|
387
|
-
@include setColor(
|
|
388
|
-
$breadcrumbDivider,
|
|
389
|
-
$colorName,
|
|
390
|
-
$name,
|
|
391
|
-
"breadcrumb-divider"
|
|
392
|
-
);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
//#endregion breadcrumbs
|
|
396
|
-
|
|
397
|
-
//#region button
|
|
398
|
-
$button: map.get($colorShade, "button");
|
|
399
|
-
@if ($button != null) {
|
|
400
|
-
@include setColor($button, $colorName, $name, "button");
|
|
401
|
-
}
|
|
402
|
-
//#endregion button
|
|
403
|
-
|
|
404
|
-
//#region card
|
|
405
|
-
$card: map.get($colorShade, "card");
|
|
406
|
-
@if ($card != null) {
|
|
407
|
-
@include setColor($card, $colorName, $name, "card");
|
|
408
|
-
|
|
409
|
-
$cardHeader: map.get($card, "cardHeader");
|
|
410
|
-
@if ($cardHeader != null) {
|
|
411
|
-
@include setColor($cardHeader, $colorName, $name, "card-header");
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
$cardBody: map.get($card, "cardBody");
|
|
415
|
-
@if ($cardBody != null) {
|
|
416
|
-
@include setColor($cardBody, $colorName, $name, "card-body");
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
$cardFooter: map.get($card, "cardFooter");
|
|
420
|
-
@if ($cardFooter != null) {
|
|
421
|
-
@include setColor($cardFooter, $colorName, $name, "card-footer");
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
//#endregion card
|
|
425
|
-
|
|
426
|
-
//#region dialogue
|
|
427
|
-
$dialogue: map.get($colorShade, "dialogue");
|
|
428
|
-
@if ($dialogue != null) {
|
|
429
|
-
@include setColor($dialogue, $colorName, $name, "dialogue");
|
|
430
|
-
|
|
431
|
-
$dialogueAvatar: map.get($dialogue, "dialogueAvatar");
|
|
432
|
-
@if ($dialogueAvatar != null) {
|
|
433
|
-
@include setColor(
|
|
434
|
-
$dialogueAvatar,
|
|
435
|
-
$colorName,
|
|
436
|
-
$name,
|
|
437
|
-
"dialogue-avatar"
|
|
438
|
-
);
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
$dialogueName: map.get($dialogue, "dialogueName");
|
|
442
|
-
@if ($dialogueName != null) {
|
|
443
|
-
@include setColor(
|
|
444
|
-
$dialogueName,
|
|
445
|
-
$colorName,
|
|
446
|
-
$name,
|
|
447
|
-
"dialogue-name"
|
|
448
|
-
);
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
$dialogueMessage: map.get($dialogue, "dialogueMessage");
|
|
452
|
-
@if ($dialogueMessage != null) {
|
|
453
|
-
@include setColor(
|
|
454
|
-
$dialogueMessage,
|
|
455
|
-
$colorName,
|
|
456
|
-
$name,
|
|
457
|
-
"dialogue-message"
|
|
458
|
-
);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
//#endregion dialogue
|
|
462
|
-
|
|
463
|
-
//#region header
|
|
464
|
-
$header: map.get($colorShade, "header");
|
|
465
|
-
@if ($header != null) {
|
|
466
|
-
@include setColor($header, $colorName, $name, "header");
|
|
467
|
-
}
|
|
468
|
-
//#endregion header
|
|
469
|
-
|
|
470
|
-
//#region label
|
|
471
|
-
$label: map.get($colorShade, "label");
|
|
472
|
-
@if ($label != null) {
|
|
473
|
-
@include setColor($label, $colorName, $name, "label");
|
|
474
|
-
}
|
|
475
|
-
//#endregion label
|
|
476
|
-
|
|
477
|
-
//#region link
|
|
478
|
-
$link: map.get($colorShade, "link");
|
|
479
|
-
@if ($link != null) {
|
|
480
|
-
@include setColor($link, $colorName, $name, "link");
|
|
481
|
-
}
|
|
482
|
-
//#endregion link
|
|
483
|
-
|
|
484
|
-
//#region loader
|
|
485
|
-
$loader: map.get($colorShade, "loader");
|
|
486
|
-
@if ($loader != null) {
|
|
487
|
-
@include setColor($loader, $colorName, $name, "loader");
|
|
488
|
-
}
|
|
489
|
-
//#endregion loader
|
|
490
|
-
|
|
491
|
-
//#region message
|
|
492
|
-
$message: map.get($colorShade, "message");
|
|
493
|
-
@if ($message != null) {
|
|
494
|
-
@include setColor($message, $colorName, $name, "message");
|
|
495
|
-
|
|
496
|
-
$messageHeader: map.get($message, "messageHeader");
|
|
497
|
-
@if ($messageHeader != null) {
|
|
498
|
-
@include setColor(
|
|
499
|
-
$messageHeader,
|
|
500
|
-
$colorName,
|
|
501
|
-
$name,
|
|
502
|
-
"message-header"
|
|
503
|
-
);
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
$messageBody: map.get($message, "messageBody");
|
|
507
|
-
@if ($messageBody != null) {
|
|
508
|
-
@include setColor($messageBody, $colorName, $name, "message-body");
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
//#endregion message
|
|
512
|
-
|
|
513
|
-
//#region progress
|
|
514
|
-
$progress: map.get($colorShade, "progress");
|
|
515
|
-
@if ($progress != null) {
|
|
516
|
-
@include setColor($link, $colorName, $name, "progress");
|
|
517
|
-
}
|
|
518
|
-
//#endregion progress
|
|
519
|
-
|
|
520
|
-
//#endregion components
|
|
521
|
-
|
|
522
|
-
//#region backgrounds
|
|
523
|
-
|
|
524
|
-
//#region dot
|
|
525
|
-
$dot: map.get($colorShade, "dot");
|
|
526
|
-
@if ($dot != null) {
|
|
527
|
-
@include setColor($dot, $colorName, $name, "dot");
|
|
528
|
-
}
|
|
529
|
-
//#endregion dot
|
|
530
|
-
|
|
531
|
-
//#region gingham
|
|
532
|
-
$gingham: map.get($colorShade, "gingham");
|
|
533
|
-
@if ($gingham != null) {
|
|
534
|
-
@include setColor($gingham, $colorName, $name, "gingham");
|
|
535
|
-
}
|
|
536
|
-
//#endregion gingham
|
|
537
|
-
|
|
538
|
-
//#region rhombus
|
|
539
|
-
$rhombus: map.get($colorShade, "rhombus");
|
|
540
|
-
@if ($rhombus != null) {
|
|
541
|
-
@include setColor($rhombus, $colorName, $name, "rhombus");
|
|
542
|
-
}
|
|
543
|
-
//#endregion rhombus
|
|
544
|
-
|
|
545
|
-
//#region stripe
|
|
546
|
-
$stripe: map.get($colorShade, "stripe");
|
|
547
|
-
@if ($stripe != null) {
|
|
548
|
-
@include setColor($stripe, $colorName, $name, "stripe");
|
|
549
|
-
}
|
|
550
|
-
//#endregion stripe
|
|
551
|
-
|
|
552
|
-
//#region zigzag
|
|
553
|
-
$zigzag: map.get($colorShade, "zigzag");
|
|
554
|
-
@if ($zigzag != null) {
|
|
555
|
-
@include setColor($zigzag, $colorName, $name, "zigzag");
|
|
657
|
+
@each $semanticColor in variables.$semanticColors {
|
|
658
|
+
$semanticColorName: map.get($semanticColor, "name");
|
|
659
|
+
$semanticColorColorName: map.get($semanticColor, "colorName");
|
|
660
|
+
$semanticColorLightnessOffset: map.get($semanticColor, "lightnessOffset");
|
|
661
|
+
$color: functions.getColorFromColors(
|
|
662
|
+
variables.$colors,
|
|
663
|
+
$semanticColorColorName
|
|
664
|
+
);
|
|
665
|
+
@if ($color != null) {
|
|
666
|
+
@include setColorShade(
|
|
667
|
+
$colorShade,
|
|
668
|
+
$semanticColorLightnessOffset,
|
|
669
|
+
$semanticColorColorName,
|
|
670
|
+
$semanticColorName,
|
|
671
|
+
$name
|
|
672
|
+
);
|
|
556
673
|
}
|
|
557
|
-
//#endregion zigzag
|
|
558
|
-
|
|
559
|
-
//#endregion backgrounds
|
|
560
674
|
}
|
|
561
675
|
}
|
|
562
676
|
}
|
|
563
677
|
}
|
|
564
678
|
|
|
565
|
-
|
|
566
|
-
@include setColorShades(variables.$colorShadesLight);
|
|
567
|
-
color-scheme: light;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
@mixin setColorDark() {
|
|
571
|
-
@include setColorShades(variables.$colorShadesDark);
|
|
572
|
-
color-scheme: dark;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
:root {
|
|
679
|
+
:where(:root) {
|
|
576
680
|
color-scheme: light dark;
|
|
577
681
|
@each $color in variables.$colors {
|
|
578
682
|
$name: map.get($color, "name");
|
|
@@ -582,12 +686,25 @@
|
|
|
582
686
|
@include setColorVariables($color);
|
|
583
687
|
}
|
|
584
688
|
}
|
|
689
|
+
@include setColorShades(variables.$colorShades);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
@media (prefers-color-scheme: light) {
|
|
693
|
+
:root {
|
|
694
|
+
color-scheme: light;
|
|
695
|
+
}
|
|
585
696
|
}
|
|
586
697
|
|
|
587
|
-
@
|
|
588
|
-
|
|
698
|
+
@media (prefers-color-scheme: dark) {
|
|
699
|
+
:root {
|
|
700
|
+
color-scheme: dark;
|
|
701
|
+
}
|
|
589
702
|
}
|
|
590
703
|
|
|
591
|
-
|
|
592
|
-
|
|
704
|
+
[data-color-scheme="light"] {
|
|
705
|
+
color-scheme: light;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
[data-color-scheme="dark"] {
|
|
709
|
+
color-scheme: dark;
|
|
593
710
|
}
|