noctemyth 0.2.0 → 1.0.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 +3171 -8838
- package/dist/css/noctemyth-skelton.css.map +1 -1
- package/dist/css/noctemyth-skelton.min.css +3171 -8838
- package/dist/css/noctemyth-skelton.min.css.map +1 -1
- package/dist/css/noctemyth-utilities.css +55988 -77487
- package/dist/css/noctemyth-utilities.css.map +1 -1
- package/dist/css/noctemyth-utilities.min.css +55988 -77487
- package/dist/css/noctemyth-utilities.min.css.map +1 -1
- package/dist/css/noctemyth.css +26697 -38194
- package/dist/css/noctemyth.css.map +1 -1
- package/dist/css/noctemyth.min.css +5866 -22994
- package/dist/css/noctemyth.min.css.map +1 -1
- package/package.json +8 -8
- package/src/animations/fade.scss +2 -2
- package/src/backgrounds/dot.scss +28 -20
- package/src/backgrounds/gingham.scss +22 -21
- package/src/backgrounds/rhombus.scss +45 -22
- package/src/backgrounds/stripe.scss +19 -14
- package/src/backgrounds/zigzag.scss +34 -25
- package/src/base/accessibility.scss +68 -0
- package/src/base/dub.scss +34 -4
- package/src/base/element.scss +1 -1
- package/src/base/index.scss +2 -0
- package/src/base/normalize.scss +0 -8
- package/src/base/root.scss +25 -0
- package/src/components/accordion.scss +183 -90
- package/src/components/aside.scss +7 -0
- package/src/components/badge.scss +170 -64
- package/src/components/blockquote.scss +52 -27
- package/src/components/breadcrumbs.scss +46 -16
- package/src/components/button.scss +177 -88
- package/src/components/card.scss +147 -48
- package/src/components/description-list.scss +46 -0
- package/src/components/dialogue.scss +194 -143
- package/src/components/div.scss +1 -1
- package/src/components/figure.scss +173 -0
- package/src/components/footer.scss +20 -6
- package/src/components/hamburger.scss +77 -51
- package/src/components/header.scss +42 -6
- package/src/components/heading.scss +6 -7
- package/src/components/image.scss +1 -1
- package/src/components/index.scss +3 -0
- package/src/components/input.scss +110 -69
- package/src/components/label.scss +34 -4
- package/src/components/link.scss +56 -12
- package/src/components/list.scss +39 -9
- package/src/components/loader.scss +10 -8
- package/src/components/main.scss +1 -1
- package/src/components/message.scss +100 -24
- package/src/components/modal.scss +18 -8
- package/src/components/nav.scss +600 -280
- package/src/components/paragraph.scss +1 -2
- package/src/components/progress.scss +42 -16
- package/src/components/section.scss +1 -1
- package/src/components/span.scss +1 -1
- package/src/css-variables/animation.scss +1 -1
- package/src/css-variables/border.scss +1 -1
- package/src/css-variables/color.scss +757 -468
- package/src/css-variables/components/dialogue.scss +2 -2
- package/src/css-variables/components/header.scss +1 -0
- package/src/css-variables/index.scss +1 -0
- package/src/css-variables/layout.scss +11 -0
- package/src/css-variables/miscellaneous.scss +4 -4
- package/src/css-variables/typography.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 +57 -51
- package/src/layouts/container.scss +33 -31
- package/src/mixins/color.scss +0 -32
- package/src/mixins/element.scss +2 -2
- package/src/mixins/responsive.scss +12 -11
- package/src/utilities/border.scss +4 -0
- package/src/utilities/color.scss +112 -6
- package/src/variables/color.scss +1169 -1084
- package/src/variables/components/dialogue.scss +2 -2
- package/src/variables/components/header.scss +1 -0
- package/src/variables/layout.scss +13 -11
- package/src/variables/miscellaneous.scss +1 -3
|
@@ -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
|
|
|
@@ -13,40 +14,30 @@
|
|
|
13
14
|
@if (string.length($p) == 1) {
|
|
14
15
|
$p: "0" + $p;
|
|
15
16
|
}
|
|
16
|
-
$
|
|
17
|
-
$chroma: variables.$color-chroma-colorful;
|
|
18
|
-
|
|
19
|
-
@if ($i < 10) {
|
|
20
|
-
$lightness-offset: (10 - $i) * variables.$color-lightness-offset-darker;
|
|
21
|
-
$lightness: variables.$color-lightness-50 + $lightness-offset;
|
|
22
|
-
$chroma-offset: (10 - $i) *
|
|
23
|
-
variables.$color-chroma-colorful-offset-darker;
|
|
24
|
-
$chroma: $chroma + $chroma-offset;
|
|
25
|
-
} @else if ($i > 10) {
|
|
26
|
-
$lightness-offset: ($i - 10) * variables.$color-lightness-offset-lighter;
|
|
27
|
-
$lightness: variables.$color-lightness-50 + $lightness-offset;
|
|
28
|
-
$chroma-offset: ($i - 10) *
|
|
29
|
-
variables.$color-chroma-colorful-offset-lighter;
|
|
30
|
-
$chroma: $chroma + $chroma-offset;
|
|
31
|
-
}
|
|
17
|
+
$chroma: var(--#{variables.$prefix}color-chroma-colorful-#{$p});
|
|
32
18
|
|
|
33
19
|
@if ($name == "default" or $name == "gray") {
|
|
34
|
-
$chroma: variables.$color-chroma-gray;
|
|
20
|
+
$chroma: var(--#{variables.$prefix}color-chroma-gray);
|
|
35
21
|
}
|
|
36
22
|
|
|
37
|
-
$oklch:
|
|
23
|
+
$oklch: var(--#{variables.$prefix}color-lightness-#{$p})
|
|
24
|
+
#{$chroma}
|
|
25
|
+
var(--#{variables.$prefix}color-hue-#{$name});
|
|
38
26
|
|
|
39
|
-
--#{variables.$prefix}color-#{$name}-#{$p}-oklch: #{$oklch};
|
|
40
27
|
--#{variables.$prefix}color-#{$name}-#{$p}: oklch(#{$oklch});
|
|
41
28
|
}
|
|
42
29
|
}
|
|
43
30
|
|
|
44
|
-
@mixin setColor(
|
|
45
|
-
$
|
|
46
|
-
$
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
@mixin setColor(
|
|
32
|
+
$colorShade,
|
|
33
|
+
$lightnessOffset,
|
|
34
|
+
$srcColorName,
|
|
35
|
+
$destColorName,
|
|
36
|
+
$pseudoName,
|
|
37
|
+
$componentName: ""
|
|
38
|
+
) {
|
|
39
|
+
$srcColorName: $srcColorName;
|
|
40
|
+
$destColorName: $destColorName;
|
|
50
41
|
|
|
51
42
|
$pseudo: "";
|
|
52
43
|
@if ($pseudoName != "plain") {
|
|
@@ -60,520 +51,805 @@
|
|
|
60
51
|
|
|
61
52
|
$fore: map.get($colorShade, "fore");
|
|
62
53
|
@if ($fore != null) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
54
|
+
$light: map.get($fore, "light");
|
|
55
|
+
$dark: map.get($fore, "dark");
|
|
56
|
+
@if ($light != null and $dark != null) {
|
|
57
|
+
$lightStr: functions.colorLightnessNumberToString(
|
|
58
|
+
$light + $lightnessOffset
|
|
59
|
+
);
|
|
60
|
+
$darkStr: functions.colorLightnessNumberToString(
|
|
61
|
+
$dark + $lightnessOffset
|
|
62
|
+
);
|
|
63
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-fore: light-dark(
|
|
64
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
65
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
66
|
+
);
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
$back: map.get($colorShade, "back");
|
|
72
71
|
@if ($back != null) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
$light: map.get($back, "light");
|
|
73
|
+
$dark: map.get($back, "dark");
|
|
74
|
+
@if ($light != null and $dark != null) {
|
|
75
|
+
$lightStr: functions.colorLightnessNumberToString(
|
|
76
|
+
$light + $lightnessOffset
|
|
77
|
+
);
|
|
78
|
+
$darkStr: functions.colorLightnessNumberToString(
|
|
79
|
+
$dark + $lightnessOffset
|
|
80
|
+
);
|
|
81
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-back: light-dark(
|
|
82
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
83
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
84
|
+
);
|
|
85
|
+
}
|
|
79
86
|
}
|
|
80
87
|
|
|
81
88
|
$border: map.get($colorShade, "border");
|
|
82
89
|
@if ($border != null) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
)
|
|
90
|
+
$light: map.get($border, "light");
|
|
91
|
+
$dark: map.get($border, "dark");
|
|
92
|
+
@if ($light != null and $dark != null) {
|
|
93
|
+
$lightStr: functions.colorLightnessNumberToString(
|
|
94
|
+
$light + $lightnessOffset
|
|
95
|
+
);
|
|
96
|
+
$darkStr: functions.colorLightnessNumberToString(
|
|
97
|
+
$dark + $lightnessOffset
|
|
98
|
+
);
|
|
99
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-border: light-dark(
|
|
100
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
101
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
102
|
+
);
|
|
103
|
+
}
|
|
86
104
|
}
|
|
87
105
|
|
|
88
106
|
$placeholder: map.get($colorShade, "placeholder");
|
|
89
107
|
@if ($placeholder != null) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
)
|
|
108
|
+
$light: map.get($placeholder, "light");
|
|
109
|
+
$dark: map.get($placeholder, "dark");
|
|
110
|
+
@if ($light != null and $dark != null) {
|
|
111
|
+
$lightStr: functions.colorLightnessNumberToString(
|
|
112
|
+
$light + $lightnessOffset
|
|
113
|
+
);
|
|
114
|
+
$darkStr: functions.colorLightnessNumberToString(
|
|
115
|
+
$dark + $lightnessOffset
|
|
116
|
+
);
|
|
117
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-placeholder: light-dark(
|
|
118
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
119
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
120
|
+
);
|
|
121
|
+
}
|
|
93
122
|
}
|
|
94
123
|
|
|
95
124
|
$shadow: map.get($colorShade, "shadow");
|
|
96
125
|
@if ($shadow != null) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
)
|
|
126
|
+
$light: map.get($shadow, "light");
|
|
127
|
+
$dark: map.get($shadow, "dark");
|
|
128
|
+
@if ($light != null and $dark != null) {
|
|
129
|
+
$lightStr: functions.colorLightnessNumberToString(
|
|
130
|
+
$light + $lightnessOffset
|
|
131
|
+
);
|
|
132
|
+
$darkStr: functions.colorLightnessNumberToString(
|
|
133
|
+
$dark + $lightnessOffset
|
|
134
|
+
);
|
|
135
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-shadow: light-dark(
|
|
136
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
137
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
138
|
+
);
|
|
139
|
+
}
|
|
100
140
|
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@mixin setColorShades($colorShades) {
|
|
104
|
-
@each $colorShade in $colorShades {
|
|
105
|
-
$name: map.get($colorShade, "name");
|
|
106
|
-
|
|
107
|
-
@include setColor($colorShade, "default", $name);
|
|
108
141
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
@include setColor($accordion, "default", $name, "accordion");
|
|
119
|
-
|
|
120
|
-
$accordionSummary: map.get($accordion, "accordionSummary");
|
|
121
|
-
@if ($accordionSummary != null) {
|
|
122
|
-
@include setColor(
|
|
123
|
-
$accordionSummary,
|
|
124
|
-
"default",
|
|
125
|
-
$name,
|
|
126
|
-
"accordion-summary"
|
|
142
|
+
$scrollbar: map.get($colorShade, "scrollbar");
|
|
143
|
+
@if ($scrollbar != null) {
|
|
144
|
+
$scrollbarThumb: map.get($scrollbar, "thumb");
|
|
145
|
+
@if ($scrollbarThumb != null) {
|
|
146
|
+
$light: map.get($scrollbarThumb, "light");
|
|
147
|
+
$dark: map.get($scrollbarThumb, "dark");
|
|
148
|
+
@if ($light != null and $dark != null) {
|
|
149
|
+
$lightStr: functions.colorLightnessNumberToString(
|
|
150
|
+
$light + $lightnessOffset
|
|
127
151
|
);
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
$
|
|
134
|
-
"default",
|
|
135
|
-
$name,
|
|
136
|
-
"accordion-details"
|
|
152
|
+
$darkStr: functions.colorLightnessNumberToString(
|
|
153
|
+
$dark + $lightnessOffset
|
|
154
|
+
);
|
|
155
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-scrollbar-thumb: light-dark(
|
|
156
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
157
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
137
158
|
);
|
|
138
159
|
}
|
|
139
160
|
}
|
|
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
161
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
@include setColor($breadcrumb, "default", $name, "breadcrumb");
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
$breadcrumbDivider: map.get($breadcrumbs, "breadcrumbDivider");
|
|
167
|
-
@if ($breadcrumbDivider != null) {
|
|
168
|
-
@include setColor(
|
|
169
|
-
$breadcrumbDivider,
|
|
170
|
-
"default",
|
|
171
|
-
$name,
|
|
172
|
-
"breadcrumb-divider"
|
|
162
|
+
$scrollbarTrack: map.get($scrollbar, "track");
|
|
163
|
+
@if ($scrollbarTrack != null) {
|
|
164
|
+
$light: map.get($scrollbarTrack, "light");
|
|
165
|
+
$dark: map.get($scrollbarTrack, "dark");
|
|
166
|
+
@if ($light != null and $dark != null) {
|
|
167
|
+
$lightStr: functions.colorLightnessNumberToString(
|
|
168
|
+
$light + $lightnessOffset
|
|
169
|
+
);
|
|
170
|
+
$darkStr: functions.colorLightnessNumberToString(
|
|
171
|
+
$dark + $lightnessOffset
|
|
172
|
+
);
|
|
173
|
+
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-scrollbar-track: light-dark(
|
|
174
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
175
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
173
176
|
);
|
|
174
177
|
}
|
|
175
178
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
//#region button
|
|
179
|
-
$button: map.get($colorShade, "button");
|
|
180
|
-
@if ($button != null) {
|
|
181
|
-
@include setColor($button, "default", $name, "button");
|
|
182
|
-
}
|
|
183
|
-
//#endregion button
|
|
184
|
-
|
|
185
|
-
//#region card
|
|
186
|
-
$card: map.get($colorShade, "card");
|
|
187
|
-
@if ($card != null) {
|
|
188
|
-
@include setColor($card, "default", $name, "card");
|
|
179
|
+
}
|
|
180
|
+
}
|
|
189
181
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
182
|
+
@mixin setColorShade(
|
|
183
|
+
$colorShade,
|
|
184
|
+
$lightnessOffset,
|
|
185
|
+
$srcColorName,
|
|
186
|
+
$destColorName,
|
|
187
|
+
$name
|
|
188
|
+
) {
|
|
189
|
+
@include setColor(
|
|
190
|
+
$colorShade,
|
|
191
|
+
$lightnessOffset,
|
|
192
|
+
$srcColorName,
|
|
193
|
+
$destColorName,
|
|
194
|
+
$name
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
$selection: map.get($colorShade, "selection");
|
|
198
|
+
@if ($selection != null) {
|
|
199
|
+
@include setColor(
|
|
200
|
+
$selection,
|
|
201
|
+
$lightnessOffset,
|
|
202
|
+
$srcColorName,
|
|
203
|
+
$destColorName,
|
|
204
|
+
$name,
|
|
205
|
+
"selection"
|
|
206
|
+
);
|
|
207
|
+
}
|
|
194
208
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
209
|
+
//#region components
|
|
210
|
+
|
|
211
|
+
//#region accordion
|
|
212
|
+
$accordion: map.get($colorShade, "accordion");
|
|
213
|
+
@if ($accordion != null) {
|
|
214
|
+
@include setColor(
|
|
215
|
+
$accordion,
|
|
216
|
+
$lightnessOffset,
|
|
217
|
+
$srcColorName,
|
|
218
|
+
$destColorName,
|
|
219
|
+
$name,
|
|
220
|
+
"accordion"
|
|
221
|
+
);
|
|
199
222
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
223
|
+
$accordionSummary: map.get($accordion, "accordionSummary");
|
|
224
|
+
@if ($accordionSummary != null) {
|
|
225
|
+
@include setColor(
|
|
226
|
+
$accordionSummary,
|
|
227
|
+
$lightnessOffset,
|
|
228
|
+
$srcColorName,
|
|
229
|
+
$destColorName,
|
|
230
|
+
$name,
|
|
231
|
+
"accordion-summary"
|
|
232
|
+
);
|
|
204
233
|
}
|
|
205
|
-
//#endregion card
|
|
206
|
-
|
|
207
|
-
//#region dialogue
|
|
208
|
-
$dialogue: map.get($colorShade, "dialogue");
|
|
209
|
-
@if ($dialogue != null) {
|
|
210
|
-
@include setColor($dialogue, "default", $name, "dialogue");
|
|
211
|
-
|
|
212
|
-
$dialogueAvatar: map.get($dialogue, "dialogueAvatar");
|
|
213
|
-
@if ($dialogueAvatar != null) {
|
|
214
|
-
@include setColor($dialogueAvatar, "default", $name, "dialogue-avatar");
|
|
215
|
-
}
|
|
216
234
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
235
|
+
$accordionDetails: map.get($accordion, "accordionDetails");
|
|
236
|
+
@if ($accordionDetails != null) {
|
|
237
|
+
@include setColor(
|
|
238
|
+
$accordionDetails,
|
|
239
|
+
$lightnessOffset,
|
|
240
|
+
$srcColorName,
|
|
241
|
+
$destColorName,
|
|
242
|
+
$name,
|
|
243
|
+
"accordion-details"
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
//#endregion accordion
|
|
248
|
+
|
|
249
|
+
//#region badge
|
|
250
|
+
$badge: map.get($colorShade, "badge");
|
|
251
|
+
@if ($badge != null) {
|
|
252
|
+
@include setColor(
|
|
253
|
+
$badge,
|
|
254
|
+
$lightnessOffset,
|
|
255
|
+
$srcColorName,
|
|
256
|
+
$destColorName,
|
|
257
|
+
$name,
|
|
258
|
+
"badge"
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
//#endregion badge
|
|
262
|
+
|
|
263
|
+
//#region blockquote
|
|
264
|
+
$blockquote: map.get($colorShade, "blockquote");
|
|
265
|
+
@if ($blockquote != null) {
|
|
266
|
+
@include setColor(
|
|
267
|
+
$blockquote,
|
|
268
|
+
$lightnessOffset,
|
|
269
|
+
$srcColorName,
|
|
270
|
+
$destColorName,
|
|
271
|
+
$name,
|
|
272
|
+
"blockquote"
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
//#endregion blockquote
|
|
276
|
+
|
|
277
|
+
//#region breadcrumbs
|
|
278
|
+
$breadcrumbs: map.get($colorShade, "breadcrumbs");
|
|
279
|
+
@if ($breadcrumbs != null) {
|
|
280
|
+
@include setColor(
|
|
281
|
+
$breadcrumbs,
|
|
282
|
+
$lightnessOffset,
|
|
283
|
+
$srcColorName,
|
|
284
|
+
$destColorName,
|
|
285
|
+
$name,
|
|
286
|
+
"breadcrumbs"
|
|
287
|
+
);
|
|
221
288
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
289
|
+
$breadcrumb: map.get($breadcrumbs, "breadcrumb");
|
|
290
|
+
@if ($breadcrumb != null) {
|
|
291
|
+
@include setColor(
|
|
292
|
+
$breadcrumb,
|
|
293
|
+
$lightnessOffset,
|
|
294
|
+
$srcColorName,
|
|
295
|
+
$destColorName,
|
|
296
|
+
$name,
|
|
297
|
+
"breadcrumb"
|
|
298
|
+
);
|
|
231
299
|
}
|
|
232
|
-
|
|
300
|
+
$breadcrumbDivider: map.get($breadcrumbs, "breadcrumbDivider");
|
|
301
|
+
@if ($breadcrumbDivider != null) {
|
|
302
|
+
@include setColor(
|
|
303
|
+
$breadcrumbDivider,
|
|
304
|
+
$lightnessOffset,
|
|
305
|
+
$srcColorName,
|
|
306
|
+
$destColorName,
|
|
307
|
+
$name,
|
|
308
|
+
"breadcrumb-divider"
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
//#endregion breadcrumbs
|
|
313
|
+
|
|
314
|
+
//#region button
|
|
315
|
+
$button: map.get($colorShade, "button");
|
|
316
|
+
@if ($button != null) {
|
|
317
|
+
@include setColor(
|
|
318
|
+
$button,
|
|
319
|
+
$lightnessOffset,
|
|
320
|
+
$srcColorName,
|
|
321
|
+
$destColorName,
|
|
322
|
+
$name,
|
|
323
|
+
"button"
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
//#endregion button
|
|
327
|
+
|
|
328
|
+
//#region card
|
|
329
|
+
$card: map.get($colorShade, "card");
|
|
330
|
+
@if ($card != null) {
|
|
331
|
+
@include setColor(
|
|
332
|
+
$card,
|
|
333
|
+
$lightnessOffset,
|
|
334
|
+
$srcColorName,
|
|
335
|
+
$destColorName,
|
|
336
|
+
$name,
|
|
337
|
+
"card"
|
|
338
|
+
);
|
|
233
339
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
340
|
+
$cardHeader: map.get($card, "cardHeader");
|
|
341
|
+
@if ($cardHeader != null) {
|
|
342
|
+
@include setColor(
|
|
343
|
+
$cardHeader,
|
|
344
|
+
$lightnessOffset,
|
|
345
|
+
$srcColorName,
|
|
346
|
+
$destColorName,
|
|
347
|
+
$name,
|
|
348
|
+
"card-header"
|
|
349
|
+
);
|
|
238
350
|
}
|
|
239
|
-
//#endregion header
|
|
240
351
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
352
|
+
$cardBody: map.get($card, "cardBody");
|
|
353
|
+
@if ($cardBody != null) {
|
|
354
|
+
@include setColor(
|
|
355
|
+
$cardBody,
|
|
356
|
+
$lightnessOffset,
|
|
357
|
+
$srcColorName,
|
|
358
|
+
$destColorName,
|
|
359
|
+
$name,
|
|
360
|
+
"card-body"
|
|
361
|
+
);
|
|
245
362
|
}
|
|
246
|
-
//#endregion label
|
|
247
363
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
364
|
+
$cardFooter: map.get($card, "cardFooter");
|
|
365
|
+
@if ($cardFooter != null) {
|
|
366
|
+
@include setColor(
|
|
367
|
+
$cardFooter,
|
|
368
|
+
$lightnessOffset,
|
|
369
|
+
$srcColorName,
|
|
370
|
+
$destColorName,
|
|
371
|
+
$name,
|
|
372
|
+
"card-footer"
|
|
373
|
+
);
|
|
252
374
|
}
|
|
253
|
-
|
|
375
|
+
}
|
|
376
|
+
//#endregion card
|
|
377
|
+
|
|
378
|
+
//#region dialogue
|
|
379
|
+
$dialogue: map.get($colorShade, "dialogue");
|
|
380
|
+
@if ($dialogue != null) {
|
|
381
|
+
@include setColor(
|
|
382
|
+
$dialogue,
|
|
383
|
+
$lightnessOffset,
|
|
384
|
+
$srcColorName,
|
|
385
|
+
$destColorName,
|
|
386
|
+
$name,
|
|
387
|
+
"dialogue"
|
|
388
|
+
);
|
|
254
389
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
390
|
+
$dialogueAvatar: map.get($dialogue, "dialogueAvatar");
|
|
391
|
+
@if ($dialogueAvatar != null) {
|
|
392
|
+
@include setColor(
|
|
393
|
+
$dialogueAvatar,
|
|
394
|
+
$lightnessOffset,
|
|
395
|
+
$srcColorName,
|
|
396
|
+
$destColorName,
|
|
397
|
+
$name,
|
|
398
|
+
"dialogue-avatar"
|
|
399
|
+
);
|
|
259
400
|
}
|
|
260
|
-
//#endregion loader
|
|
261
401
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
402
|
+
$dialogueName: map.get($dialogue, "dialogueName");
|
|
403
|
+
@if ($dialogueName != null) {
|
|
404
|
+
@include setColor(
|
|
405
|
+
$dialogueName,
|
|
406
|
+
$lightnessOffset,
|
|
407
|
+
$srcColorName,
|
|
408
|
+
$destColorName,
|
|
409
|
+
$name,
|
|
410
|
+
"dialogue-name"
|
|
411
|
+
);
|
|
412
|
+
}
|
|
266
413
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
414
|
+
$dialogueMessage: map.get($dialogue, "dialogueMessage");
|
|
415
|
+
@if ($dialogueMessage != null) {
|
|
416
|
+
@include setColor(
|
|
417
|
+
$dialogueMessage,
|
|
418
|
+
$lightnessOffset,
|
|
419
|
+
$srcColorName,
|
|
420
|
+
$destColorName,
|
|
421
|
+
$name,
|
|
422
|
+
"dialogue-message"
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
//#endregion dialogue
|
|
427
|
+
|
|
428
|
+
//#region figure
|
|
429
|
+
$figure: map.get($colorShade, "figure");
|
|
430
|
+
@if ($figure != null) {
|
|
431
|
+
@include setColor(
|
|
432
|
+
$figure,
|
|
433
|
+
$lightnessOffset,
|
|
434
|
+
$srcColorName,
|
|
435
|
+
$destColorName,
|
|
436
|
+
$name,
|
|
437
|
+
"figure"
|
|
438
|
+
);
|
|
271
439
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
440
|
+
$figureContent: map.get($figure, "figureContent");
|
|
441
|
+
@if ($figureContent != null) {
|
|
442
|
+
@include setColor(
|
|
443
|
+
$figureContent,
|
|
444
|
+
$lightnessOffset,
|
|
445
|
+
$srcColorName,
|
|
446
|
+
$destColorName,
|
|
447
|
+
$name,
|
|
448
|
+
"figure-content"
|
|
449
|
+
);
|
|
450
|
+
|
|
451
|
+
$figureContentSelection: map.get($figureContent, "selection");
|
|
452
|
+
@if ($figureContentSelection != null) {
|
|
453
|
+
@include setColor(
|
|
454
|
+
$figureContentSelection,
|
|
455
|
+
$lightnessOffset,
|
|
456
|
+
$srcColorName,
|
|
457
|
+
$destColorName,
|
|
458
|
+
$name,
|
|
459
|
+
"figure-content-selection"
|
|
460
|
+
);
|
|
275
461
|
}
|
|
276
462
|
}
|
|
277
|
-
//#endregion message
|
|
278
463
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
464
|
+
$figureCaption: map.get($figure, "figureCaption");
|
|
465
|
+
@if ($figureCaption != null) {
|
|
466
|
+
@include setColor(
|
|
467
|
+
$figureCaption,
|
|
468
|
+
$lightnessOffset,
|
|
469
|
+
$srcColorName,
|
|
470
|
+
$destColorName,
|
|
471
|
+
$name,
|
|
472
|
+
"figure-caption"
|
|
473
|
+
);
|
|
474
|
+
|
|
475
|
+
$figureCaptionSelection: map.get($figureCaption, "selection");
|
|
476
|
+
@if ($figureCaptionSelection != null) {
|
|
477
|
+
@include setColor(
|
|
478
|
+
$figureCaptionSelection,
|
|
479
|
+
$lightnessOffset,
|
|
480
|
+
$srcColorName,
|
|
481
|
+
$destColorName,
|
|
482
|
+
$name,
|
|
483
|
+
"figure-caption-selection"
|
|
484
|
+
);
|
|
485
|
+
}
|
|
283
486
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
487
|
+
}
|
|
488
|
+
//#endregion figure
|
|
489
|
+
|
|
490
|
+
//#region footer
|
|
491
|
+
$footer: map.get($colorShade, "footer");
|
|
492
|
+
@if ($footer != null) {
|
|
493
|
+
@include setColor(
|
|
494
|
+
$footer,
|
|
495
|
+
$lightnessOffset,
|
|
496
|
+
$srcColorName,
|
|
497
|
+
$destColorName,
|
|
498
|
+
$name,
|
|
499
|
+
"footer"
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
//#endregion footer
|
|
503
|
+
|
|
504
|
+
//#region header
|
|
505
|
+
$header: map.get($colorShade, "header");
|
|
506
|
+
@if ($header != null) {
|
|
507
|
+
@include setColor(
|
|
508
|
+
$header,
|
|
509
|
+
$lightnessOffset,
|
|
510
|
+
$srcColorName,
|
|
511
|
+
$destColorName,
|
|
512
|
+
$name,
|
|
513
|
+
"header"
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
//#endregion header
|
|
517
|
+
|
|
518
|
+
//#region input
|
|
519
|
+
$input: map.get($colorShade, "input");
|
|
520
|
+
@if ($input != null) {
|
|
521
|
+
@include setColor(
|
|
522
|
+
$input,
|
|
523
|
+
$lightnessOffset,
|
|
524
|
+
$srcColorName,
|
|
525
|
+
$destColorName,
|
|
526
|
+
$name,
|
|
527
|
+
"input"
|
|
528
|
+
);
|
|
529
|
+
}
|
|
530
|
+
//#endregion input
|
|
531
|
+
|
|
532
|
+
//#region label
|
|
533
|
+
$label: map.get($colorShade, "label");
|
|
534
|
+
@if ($label != null) {
|
|
535
|
+
@include setColor(
|
|
536
|
+
$label,
|
|
537
|
+
$lightnessOffset,
|
|
538
|
+
$srcColorName,
|
|
539
|
+
$destColorName,
|
|
540
|
+
$name,
|
|
541
|
+
"label"
|
|
542
|
+
);
|
|
543
|
+
}
|
|
544
|
+
//#endregion label
|
|
545
|
+
|
|
546
|
+
//#region link
|
|
547
|
+
$link: map.get($colorShade, "link");
|
|
548
|
+
@if ($link != null) {
|
|
549
|
+
@include setColor(
|
|
550
|
+
$link,
|
|
551
|
+
$lightnessOffset,
|
|
552
|
+
$srcColorName,
|
|
553
|
+
$destColorName,
|
|
554
|
+
$name,
|
|
555
|
+
"link"
|
|
556
|
+
);
|
|
557
|
+
}
|
|
558
|
+
//#endregion link
|
|
559
|
+
|
|
560
|
+
//#region loader
|
|
561
|
+
$loader: map.get($colorShade, "loader");
|
|
562
|
+
@if ($loader != null) {
|
|
563
|
+
@include setColor(
|
|
564
|
+
$loader,
|
|
565
|
+
$lightnessOffset,
|
|
566
|
+
$srcColorName,
|
|
567
|
+
$destColorName,
|
|
568
|
+
$name,
|
|
569
|
+
"loader"
|
|
570
|
+
);
|
|
571
|
+
}
|
|
572
|
+
//#endregion loader
|
|
573
|
+
|
|
574
|
+
//#region main
|
|
575
|
+
$main: map.get($colorShade, "main");
|
|
576
|
+
@if ($main != null) {
|
|
577
|
+
@include setColor(
|
|
578
|
+
$main,
|
|
579
|
+
$lightnessOffset,
|
|
580
|
+
$srcColorName,
|
|
581
|
+
$destColorName,
|
|
582
|
+
$name,
|
|
583
|
+
"main"
|
|
584
|
+
);
|
|
585
|
+
}
|
|
586
|
+
//#endregion main
|
|
587
|
+
|
|
588
|
+
//#region message
|
|
589
|
+
$message: map.get($colorShade, "message");
|
|
590
|
+
@if ($message != null) {
|
|
591
|
+
@include setColor(
|
|
592
|
+
$message,
|
|
593
|
+
$lightnessOffset,
|
|
594
|
+
$srcColorName,
|
|
595
|
+
$destColorName,
|
|
596
|
+
$name,
|
|
597
|
+
"message"
|
|
598
|
+
);
|
|
289
599
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
600
|
+
$messageHeader: map.get($message, "messageHeader");
|
|
601
|
+
@if ($messageHeader != null) {
|
|
602
|
+
@include setColor(
|
|
603
|
+
$messageHeader,
|
|
604
|
+
$lightnessOffset,
|
|
605
|
+
$srcColorName,
|
|
606
|
+
$destColorName,
|
|
607
|
+
$name,
|
|
608
|
+
"message-header"
|
|
609
|
+
);
|
|
294
610
|
}
|
|
295
|
-
//#endregion dot
|
|
296
611
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
612
|
+
$messageBody: map.get($message, "messageBody");
|
|
613
|
+
@if ($messageBody != null) {
|
|
614
|
+
@include setColor(
|
|
615
|
+
$messageBody,
|
|
616
|
+
$lightnessOffset,
|
|
617
|
+
$srcColorName,
|
|
618
|
+
$destColorName,
|
|
619
|
+
$name,
|
|
620
|
+
"message-body"
|
|
621
|
+
);
|
|
301
622
|
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
623
|
+
}
|
|
624
|
+
//#endregion message
|
|
625
|
+
|
|
626
|
+
//#region nav
|
|
627
|
+
$nav: map.get($colorShade, "nav");
|
|
628
|
+
@if ($nav != null) {
|
|
629
|
+
@include setColor(
|
|
630
|
+
$nav,
|
|
631
|
+
$lightnessOffset,
|
|
632
|
+
$srcColorName,
|
|
633
|
+
$destColorName,
|
|
634
|
+
$name,
|
|
635
|
+
"nav"
|
|
636
|
+
);
|
|
637
|
+
$navMenu: map.get($nav, "navMenu");
|
|
638
|
+
@if ($navMenu != null) {
|
|
639
|
+
@include setColor(
|
|
640
|
+
$navMenu,
|
|
641
|
+
$lightnessOffset,
|
|
642
|
+
$srcColorName,
|
|
643
|
+
$destColorName,
|
|
644
|
+
$name,
|
|
645
|
+
"nav-menu"
|
|
646
|
+
);
|
|
647
|
+
$navMenuItem: map.get($navMenu, "navMenuItem");
|
|
648
|
+
@if ($navMenuItem != null) {
|
|
649
|
+
@include setColor(
|
|
650
|
+
$navMenuItem,
|
|
651
|
+
$lightnessOffset,
|
|
652
|
+
$srcColorName,
|
|
653
|
+
$destColorName,
|
|
654
|
+
$name,
|
|
655
|
+
"nav-menu-item"
|
|
656
|
+
);
|
|
657
|
+
}
|
|
308
658
|
}
|
|
309
|
-
|
|
659
|
+
}
|
|
660
|
+
//#endregion nav
|
|
661
|
+
|
|
662
|
+
//#region progress
|
|
663
|
+
$progress: map.get($colorShade, "progress");
|
|
664
|
+
@if ($progress != null) {
|
|
665
|
+
@include setColor(
|
|
666
|
+
$progress,
|
|
667
|
+
$lightnessOffset,
|
|
668
|
+
$srcColorName,
|
|
669
|
+
$destColorName,
|
|
670
|
+
$name,
|
|
671
|
+
"progress"
|
|
672
|
+
);
|
|
673
|
+
}
|
|
674
|
+
//#endregion progress
|
|
675
|
+
|
|
676
|
+
//#endregion components
|
|
677
|
+
|
|
678
|
+
//#region backgrounds
|
|
679
|
+
|
|
680
|
+
//#region dot
|
|
681
|
+
$dot: map.get($colorShade, "dot");
|
|
682
|
+
@if ($dot != null) {
|
|
683
|
+
@include setColor(
|
|
684
|
+
$dot,
|
|
685
|
+
$lightnessOffset,
|
|
686
|
+
$srcColorName,
|
|
687
|
+
$destColorName,
|
|
688
|
+
$name,
|
|
689
|
+
"dot"
|
|
690
|
+
);
|
|
691
|
+
}
|
|
692
|
+
//#endregion dot
|
|
693
|
+
|
|
694
|
+
//#region gingham
|
|
695
|
+
$gingham: map.get($colorShade, "gingham");
|
|
696
|
+
@if ($gingham != null) {
|
|
697
|
+
@include setColor(
|
|
698
|
+
$gingham,
|
|
699
|
+
$lightnessOffset,
|
|
700
|
+
$srcColorName,
|
|
701
|
+
$destColorName,
|
|
702
|
+
$name,
|
|
703
|
+
"gingham"
|
|
704
|
+
);
|
|
705
|
+
}
|
|
706
|
+
//#endregion gingham
|
|
707
|
+
|
|
708
|
+
//#region rhombus
|
|
709
|
+
$rhombus: map.get($colorShade, "rhombus");
|
|
710
|
+
@if ($rhombus != null) {
|
|
711
|
+
@include setColor(
|
|
712
|
+
$rhombus,
|
|
713
|
+
$lightnessOffset,
|
|
714
|
+
$srcColorName,
|
|
715
|
+
$destColorName,
|
|
716
|
+
$name,
|
|
717
|
+
"rhombus"
|
|
718
|
+
);
|
|
719
|
+
}
|
|
720
|
+
//#endregion rhombus
|
|
721
|
+
|
|
722
|
+
//#region stripe
|
|
723
|
+
$stripe: map.get($colorShade, "stripe");
|
|
724
|
+
@if ($stripe != null) {
|
|
725
|
+
@include setColor(
|
|
726
|
+
$stripe,
|
|
727
|
+
$lightnessOffset,
|
|
728
|
+
$srcColorName,
|
|
729
|
+
$destColorName,
|
|
730
|
+
$name,
|
|
731
|
+
"stripe"
|
|
732
|
+
);
|
|
733
|
+
}
|
|
734
|
+
//#endregion stripe
|
|
735
|
+
|
|
736
|
+
//#region zigzag
|
|
737
|
+
$zigzag: map.get($colorShade, "zigzag");
|
|
738
|
+
@if ($zigzag != null) {
|
|
739
|
+
@include setColor(
|
|
740
|
+
$zigzag,
|
|
741
|
+
$lightnessOffset,
|
|
742
|
+
$srcColorName,
|
|
743
|
+
$destColorName,
|
|
744
|
+
$name,
|
|
745
|
+
"zigzag"
|
|
746
|
+
);
|
|
747
|
+
}
|
|
748
|
+
//#endregion zigzag
|
|
310
749
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
@if ($stripe != null) {
|
|
314
|
-
@include setColor($stripe, "default", $name, "stripe");
|
|
315
|
-
}
|
|
316
|
-
//#endregion stripe
|
|
750
|
+
//#endregion backgrounds
|
|
751
|
+
}
|
|
317
752
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
@include setColor($zigzag, "default", $name, "zigzag");
|
|
322
|
-
}
|
|
323
|
-
//#endregion zigzag
|
|
753
|
+
@mixin setColorShades($colorShades) {
|
|
754
|
+
@each $colorShade in $colorShades {
|
|
755
|
+
$name: map.get($colorShade, "name");
|
|
324
756
|
|
|
325
|
-
|
|
757
|
+
@include setColorShade($colorShade, 0, "gray", "default", $name);
|
|
326
758
|
|
|
327
759
|
@if (not variables.$is-skelton) {
|
|
328
760
|
@each $color in variables.$colors {
|
|
329
761
|
$colorName: map.get($color, "name");
|
|
762
|
+
@include setColorShade($colorShade, 0, $colorName, $colorName, $name);
|
|
763
|
+
}
|
|
330
764
|
|
|
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");
|
|
765
|
+
@each $semanticColor in variables.$semanticColors {
|
|
766
|
+
$semanticColorName: map.get($semanticColor, "name");
|
|
767
|
+
$semanticColorColorName: map.get($semanticColor, "colorName");
|
|
768
|
+
$semanticColorLightnessOffset: map.get(
|
|
769
|
+
$semanticColor,
|
|
770
|
+
"lightnessOffset"
|
|
771
|
+
);
|
|
772
|
+
$color: functions.getColorFromColors(
|
|
773
|
+
variables.$colors,
|
|
774
|
+
$semanticColorColorName
|
|
775
|
+
);
|
|
776
|
+
@if ($color != null) {
|
|
777
|
+
@include setColorShade(
|
|
778
|
+
$colorShade,
|
|
779
|
+
$semanticColorLightnessOffset,
|
|
780
|
+
$semanticColorColorName,
|
|
781
|
+
$semanticColorName,
|
|
782
|
+
$name
|
|
783
|
+
);
|
|
517
784
|
}
|
|
518
|
-
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
519
789
|
|
|
520
|
-
|
|
790
|
+
@mixin setColorColorfulChromaCssVariables() {
|
|
791
|
+
$p: "0";
|
|
792
|
+
@for $i from 1 through 19 {
|
|
793
|
+
$p: "" + ($i * 5);
|
|
794
|
+
@if (string.length($p) == 1) {
|
|
795
|
+
$p: "0" + $p;
|
|
796
|
+
}
|
|
797
|
+
$chroma: variables.$color-chroma-colorful-50;
|
|
521
798
|
|
|
522
|
-
|
|
799
|
+
@if ($i < 10) {
|
|
800
|
+
$chroma-offset: (10 - $i) *
|
|
801
|
+
variables.$color-chroma-colorful-offset-darker;
|
|
802
|
+
$chroma: variables.$color-chroma-colorful-50 + $chroma-offset;
|
|
803
|
+
} @else if ($i > 10) {
|
|
804
|
+
$chroma-offset: (10 - $i) *
|
|
805
|
+
variables.$color-chroma-colorful-offset-lighter;
|
|
806
|
+
$chroma: variables.$color-chroma-colorful-50 + $chroma-offset;
|
|
807
|
+
}
|
|
523
808
|
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
@include setColor($dot, $colorName, $name, "dot");
|
|
528
|
-
}
|
|
529
|
-
//#endregion dot
|
|
809
|
+
--#{variables.$prefix}color-chroma-colorful-#{$p}: #{$chroma};
|
|
810
|
+
}
|
|
811
|
+
}
|
|
530
812
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
813
|
+
@mixin setColorLightnessCssVariables() {
|
|
814
|
+
$steps: 18;
|
|
815
|
+
$value-step: calc(
|
|
816
|
+
(variables.$color-lightness-95 - variables.$color-lightness-05) / $steps
|
|
817
|
+
);
|
|
818
|
+
@for $i from 0 through $steps {
|
|
819
|
+
$current-label: calc(5 + ($i * 5));
|
|
537
820
|
|
|
538
|
-
|
|
539
|
-
$rhombus: map.get($colorShade, "rhombus");
|
|
540
|
-
@if ($rhombus != null) {
|
|
541
|
-
@include setColor($rhombus, $colorName, $name, "rhombus");
|
|
542
|
-
}
|
|
543
|
-
//#endregion rhombus
|
|
821
|
+
$formatted-label: "#{$current-label}";
|
|
544
822
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
@include setColor($stripe, $colorName, $name, "stripe");
|
|
549
|
-
}
|
|
550
|
-
//#endregion stripe
|
|
823
|
+
@if ($current-label < 10) {
|
|
824
|
+
$formatted-label: "0#{$current-label}";
|
|
825
|
+
}
|
|
551
826
|
|
|
552
|
-
|
|
553
|
-
$zigzag: map.get($colorShade, "zigzag");
|
|
554
|
-
@if ($zigzag != null) {
|
|
555
|
-
@include setColor($zigzag, $colorName, $name, "zigzag");
|
|
556
|
-
}
|
|
557
|
-
//#endregion zigzag
|
|
827
|
+
$current-value: calc(variables.$color-lightness-05 + ($value-step * $i));
|
|
558
828
|
|
|
559
|
-
|
|
560
|
-
}
|
|
561
|
-
}
|
|
829
|
+
--#{variables.$prefix}color-lightness-#{$formatted-label}: #{$current-value};
|
|
562
830
|
}
|
|
563
831
|
}
|
|
564
832
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
color-scheme: light;
|
|
568
|
-
}
|
|
833
|
+
:where(:root) {
|
|
834
|
+
color-scheme: light dark;
|
|
569
835
|
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
color-
|
|
573
|
-
}
|
|
836
|
+
--#{variables.$prefix}color-hue-gray: #{variables.$color-hue-gray};
|
|
837
|
+
--#{variables.$prefix}color-hue-red: #{variables.$color-hue-red};
|
|
838
|
+
--#{variables.$prefix}color-hue-coral: #{variables.$color-hue-coral};
|
|
839
|
+
--#{variables.$prefix}color-hue-orange: #{variables.$color-hue-orange};
|
|
840
|
+
--#{variables.$prefix}color-hue-yellow: #{variables.$color-hue-yellow};
|
|
841
|
+
--#{variables.$prefix}color-hue-lime: #{variables.$color-hue-lime};
|
|
842
|
+
--#{variables.$prefix}color-hue-green: #{variables.$color-hue-green};
|
|
843
|
+
--#{variables.$prefix}color-hue-cyan: #{variables.$color-hue-cyan};
|
|
844
|
+
--#{variables.$prefix}color-hue-blue: #{variables.$color-hue-blue};
|
|
845
|
+
--#{variables.$prefix}color-hue-violet: #{variables.$color-hue-violet};
|
|
846
|
+
--#{variables.$prefix}color-hue-magenta: #{variables.$color-hue-magenta};
|
|
847
|
+
|
|
848
|
+
@include setColorLightnessCssVariables();
|
|
849
|
+
|
|
850
|
+
--#{variables.$prefix}color-chroma-gray: #{variables.$color-chroma-gray};
|
|
851
|
+
@include setColorColorfulChromaCssVariables();
|
|
574
852
|
|
|
575
|
-
:root {
|
|
576
|
-
color-scheme: light dark;
|
|
577
853
|
@each $color in variables.$colors {
|
|
578
854
|
$name: map.get($color, "name");
|
|
579
855
|
@if ($name == "gray") {
|
|
@@ -582,12 +858,25 @@
|
|
|
582
858
|
@include setColorVariables($color);
|
|
583
859
|
}
|
|
584
860
|
}
|
|
861
|
+
@include setColorShades(variables.$colorShades);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
@media (prefers-color-scheme: light) {
|
|
865
|
+
:root {
|
|
866
|
+
color-scheme: light;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
@media (prefers-color-scheme: dark) {
|
|
871
|
+
:root {
|
|
872
|
+
color-scheme: dark;
|
|
873
|
+
}
|
|
585
874
|
}
|
|
586
875
|
|
|
587
|
-
|
|
588
|
-
|
|
876
|
+
[data-color-scheme="light"] {
|
|
877
|
+
color-scheme: light;
|
|
589
878
|
}
|
|
590
879
|
|
|
591
|
-
|
|
592
|
-
|
|
880
|
+
[data-color-scheme="dark"] {
|
|
881
|
+
color-scheme: dark;
|
|
593
882
|
}
|