@volverjs/style 0.1.11 → 0.1.12-beta.10
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/README.md +6 -4
- package/dist/base.css +1 -1
- package/dist/components/vv-accordion-group.css +1 -1
- package/dist/components/vv-accordion.css +1 -1
- package/dist/components/vv-alert-group.css +1 -1
- package/dist/components/vv-alert.css +1 -1
- package/dist/components/vv-avatar-group.css +1 -1
- package/dist/components/vv-avatar.css +1 -1
- package/dist/components/vv-badge.css +1 -1
- package/dist/components/vv-breadcrumb.css +1 -1
- package/dist/components/vv-button-group.css +1 -1
- package/dist/components/vv-button.css +1 -1
- package/dist/components/vv-card.css +1 -1
- package/dist/components/vv-checkbox-group.css +1 -1
- package/dist/components/vv-checkbox.css +1 -1
- package/dist/components/vv-dialog.css +1 -1
- package/dist/components/vv-dropdown-option.css +1 -1
- package/dist/components/vv-dropdown.css +1 -1
- package/dist/components/vv-input-file.css +1 -0
- package/dist/components/vv-input-text.css +1 -1
- package/dist/components/vv-nav.css +1 -1
- package/dist/components/vv-progress.css +1 -1
- package/dist/components/vv-radio-group.css +1 -1
- package/dist/components/vv-radio.css +1 -1
- package/dist/components/vv-select.css +1 -1
- package/dist/components/vv-table.css +1 -1
- package/dist/components/vv-text.css +1 -1
- package/dist/components/vv-textarea.css +1 -1
- package/dist/components/vv-tooltip.css +1 -1
- package/dist/components.css +1 -1
- package/dist/export.css +1 -1
- package/dist/props/background.css +1 -1
- package/dist/props/colors.css +1 -1
- package/dist/props/filters.css +1 -1
- package/dist/props/input.css +1 -1
- package/dist/props/layout.css +1 -1
- package/dist/props/transitions.css +1 -1
- package/dist/props.css +1 -1
- package/dist/reset.css +1 -1
- package/dist/themes/dark/components.css +1 -1
- package/dist/themes/dark/props.css +1 -1
- package/dist/themes/dark/volver.css +1 -1
- package/dist/utilities/backgrounds.css +1 -1
- package/dist/utilities/colors.css +1 -1
- package/dist/utilities/filters.css +1 -1
- package/dist/utilities/layout.css +1 -1
- package/dist/utilities/transforms.css +1 -1
- package/dist/utilities/transitions.css +1 -1
- package/dist/utilities/typography.css +1 -1
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +30 -27
- package/src/_config.scss +10 -9
- package/src/_preflight.scss +15 -0
- package/src/components/index.scss +1 -0
- package/src/components/vv-button-group.scss +6 -6
- package/src/components/vv-button.scss +1 -12
- package/src/components/vv-input-file.scss +93 -0
- package/src/components/vv-input-text.scss +54 -11
- package/src/components/vv-select.scss +53 -10
- package/src/components/vv-textarea.scss +53 -10
- package/src/export.scss +17 -32
- package/src/props/background.scss +1 -0
- package/src/props/transitions.scss +28 -9
- package/src/settings/_background.scss +228 -0
- package/src/settings/_colors.scss +16 -53
- package/src/settings/_effects.scss +0 -18
- package/src/settings/_filters.scss +15 -0
- package/src/settings/_index.scss +1 -0
- package/src/settings/_input.scss +5 -4
- package/src/settings/_layout.scss +1 -0
- package/src/settings/_transitions.scss +2 -1
- package/src/settings/components/_vv-accordion.scss +10 -10
- package/src/settings/components/_vv-alert-group.scss +24 -21
- package/src/settings/components/_vv-alert.scss +83 -83
- package/src/settings/components/_vv-avatar.scss +52 -54
- package/src/settings/components/_vv-badge.scss +65 -27
- package/src/settings/components/_vv-breadcrumb.scss +1 -1
- package/src/settings/components/_vv-button.scss +10 -5
- package/src/settings/components/_vv-checkbox-group.scss +1 -0
- package/src/settings/components/_vv-checkbox.scss +2 -2
- package/src/settings/components/_vv-dialog.scss +8 -5
- package/src/settings/components/_vv-dropdown-option.scss +2 -2
- package/src/settings/components/_vv-dropdown.scss +95 -9
- package/src/settings/components/_vv-input-file.scss +474 -0
- package/src/settings/components/_vv-input-text.scss +8 -7
- package/src/settings/components/_vv-nav.scss +10 -9
- package/src/settings/components/_vv-progress.scss +2 -0
- package/src/settings/components/_vv-radio.scss +5 -4
- package/src/settings/components/_vv-select.scss +9 -7
- package/src/settings/components/_vv-table.scss +19 -1
- package/src/settings/components/_vv-text.scss +1 -0
- package/src/settings/components/_vv-textarea.scss +7 -6
- package/src/settings/components/_vv-tooltip.scss +11 -8
- package/src/themes/dark/components/_vv-avatar.scss +22 -0
- package/src/themes/dark/components/_vv-badge.scss +22 -0
- package/src/themes/dark/components/_vv-dropdown-action.scss +22 -0
- package/src/themes/dark/components/_vv-dropdown-option.scss +22 -0
- package/src/themes/dark/components/_vv-nav.scss +22 -0
- package/src/themes/dark/components/index.scss +6 -1
- package/src/themes/dark/settings/_background.scss +2 -0
- package/src/themes/dark/settings/_colors.scss +4 -38
- package/src/themes/dark/settings/_index.scss +6 -1
- package/src/themes/dark/settings/components/_vv-alert.scss +1 -1
- package/src/themes/dark/settings/components/_vv-avatar.scss +27 -0
- package/src/themes/dark/settings/components/_vv-badge.scss +50 -0
- package/src/themes/dark/settings/components/_vv-button.scss +13 -8
- package/src/themes/dark/settings/components/_vv-dropdown-action.scss +3 -0
- package/src/themes/dark/settings/components/_vv-dropdown-option.scss +19 -0
- package/src/themes/dark/settings/components/_vv-nav.scss +15 -0
- package/src/tools/_functions.scss +26 -13
- package/src/tools/_mixins.scss +44 -2
- package/src/utilities/backgrounds.scss +14 -4
- package/src/utilities/transforms.scss +9 -9
- package/src/utilities/typography.scss +10 -0
|
@@ -12,6 +12,7 @@ $vv-select: (
|
|
|
12
12
|
_alias: '> label',
|
|
13
13
|
display: var(--input-label-display),
|
|
14
14
|
font-size: var(--input-label-font-size),
|
|
15
|
+
font-weight: var(--input-label-font-weight),
|
|
15
16
|
color: var(--input-label-color),
|
|
16
17
|
margin: 0 0 var(--input-label-gap) 0,
|
|
17
18
|
white-space: var(--input-label-white-space),
|
|
@@ -39,7 +40,7 @@ $vv-select: (
|
|
|
39
40
|
height: var(--spacing-2),
|
|
40
41
|
inset: auto 0 0 0,
|
|
41
42
|
background: var(--color-brand),
|
|
42
|
-
|
|
43
|
+
scale: 0 1,
|
|
43
44
|
transform-origin: left,
|
|
44
45
|
will-change: transform,
|
|
45
46
|
transition: var(--transition-transform),
|
|
@@ -53,7 +54,7 @@ $vv-select: (
|
|
|
53
54
|
background-color: var(--input-background-color-focus),
|
|
54
55
|
pseudo: (
|
|
55
56
|
after: (
|
|
56
|
-
|
|
57
|
+
scale: 1,
|
|
57
58
|
),
|
|
58
59
|
),
|
|
59
60
|
),
|
|
@@ -61,7 +62,7 @@ $vv-select: (
|
|
|
61
62
|
background-color: var(--input-background-color-focus),
|
|
62
63
|
pseudo: (
|
|
63
64
|
after: (
|
|
64
|
-
|
|
65
|
+
scale: 1,
|
|
65
66
|
),
|
|
66
67
|
),
|
|
67
68
|
),
|
|
@@ -72,6 +73,7 @@ $vv-select: (
|
|
|
72
73
|
display: flex,
|
|
73
74
|
flex: 1,
|
|
74
75
|
width: 100%,
|
|
76
|
+
min-width: 0,
|
|
75
77
|
),
|
|
76
78
|
value: (
|
|
77
79
|
text-overflow: var(--input-text-overflow),
|
|
@@ -197,7 +199,7 @@ $vv-select: (
|
|
|
197
199
|
pseudo: (
|
|
198
200
|
after: (
|
|
199
201
|
background: var(--input-valid-color),
|
|
200
|
-
|
|
202
|
+
scale: 1,
|
|
201
203
|
),
|
|
202
204
|
),
|
|
203
205
|
),
|
|
@@ -215,7 +217,7 @@ $vv-select: (
|
|
|
215
217
|
pseudo: (
|
|
216
218
|
after: (
|
|
217
219
|
background: var(--input-invalid-color),
|
|
218
|
-
|
|
220
|
+
scale: 1,
|
|
219
221
|
),
|
|
220
222
|
),
|
|
221
223
|
),
|
|
@@ -273,7 +275,7 @@ $vv-select: (
|
|
|
273
275
|
focus-within: (
|
|
274
276
|
element: (
|
|
275
277
|
label: (
|
|
276
|
-
|
|
278
|
+
translate: var(--input-floating-label-translate),
|
|
277
279
|
font-size: var(--input-floating-label-font-size),
|
|
278
280
|
),
|
|
279
281
|
input: (
|
|
@@ -289,7 +291,7 @@ $vv-select: (
|
|
|
289
291
|
dirty: (
|
|
290
292
|
element: (
|
|
291
293
|
label: (
|
|
292
|
-
|
|
294
|
+
translate: var(--input-floating-label-translate),
|
|
293
295
|
font-size: var(--input-floating-label-font-size),
|
|
294
296
|
),
|
|
295
297
|
input: (
|
|
@@ -29,6 +29,10 @@ $vv-table: (
|
|
|
29
29
|
),
|
|
30
30
|
),
|
|
31
31
|
),
|
|
32
|
+
tfoot-tr: (
|
|
33
|
+
_alias: 'tfoot > tr',
|
|
34
|
+
border-width: 1px 0 0 0,
|
|
35
|
+
),
|
|
32
36
|
th: (
|
|
33
37
|
_alias: 'th',
|
|
34
38
|
font-weight: var(--font-semibold),
|
|
@@ -48,7 +52,21 @@ $vv-table: (
|
|
|
48
52
|
modifier: (
|
|
49
53
|
inline-spacing: (
|
|
50
54
|
--table-cell-padding: var(--spacing-md),
|
|
51
|
-
|
|
55
|
+
),
|
|
56
|
+
bordered: (
|
|
57
|
+
--table-cell-padding: var(--spacing-md),
|
|
58
|
+
element: (
|
|
59
|
+
th: (
|
|
60
|
+
border-width: 1px,
|
|
61
|
+
border-style: solid,
|
|
62
|
+
border-color: var(--color-surface-5),
|
|
63
|
+
),
|
|
64
|
+
td: (
|
|
65
|
+
border-width: 1px,
|
|
66
|
+
border-style: solid,
|
|
67
|
+
border-color: var(--color-surface-5),
|
|
68
|
+
),
|
|
69
|
+
),
|
|
52
70
|
),
|
|
53
71
|
),
|
|
54
72
|
) !default;
|
|
@@ -11,6 +11,7 @@ $vv-textarea: (
|
|
|
11
11
|
_alias: '> label',
|
|
12
12
|
display: var(--input-label-display),
|
|
13
13
|
font-size: var(--input-label-font-size),
|
|
14
|
+
font-weight: var(--input-label-font-weight),
|
|
14
15
|
color: var(--input-label-color),
|
|
15
16
|
margin: 0 0 var(--input-label-gap) 0,
|
|
16
17
|
white-space: var(--input-label-white-space),
|
|
@@ -52,7 +53,7 @@ $vv-textarea: (
|
|
|
52
53
|
height: var(--spacing-2),
|
|
53
54
|
inset: auto 0 0 0,
|
|
54
55
|
background: var(--color-brand),
|
|
55
|
-
|
|
56
|
+
scale: 0 1,
|
|
56
57
|
transform-origin: left,
|
|
57
58
|
will-change: transform,
|
|
58
59
|
transition: var(--transition-transform),
|
|
@@ -66,7 +67,7 @@ $vv-textarea: (
|
|
|
66
67
|
background-color: var(--input-background-color-focus),
|
|
67
68
|
pseudo: (
|
|
68
69
|
after: (
|
|
69
|
-
|
|
70
|
+
scale: 1,
|
|
70
71
|
),
|
|
71
72
|
),
|
|
72
73
|
),
|
|
@@ -160,7 +161,7 @@ $vv-textarea: (
|
|
|
160
161
|
pseudo: (
|
|
161
162
|
after: (
|
|
162
163
|
background: var(--input-valid-color),
|
|
163
|
-
|
|
164
|
+
scale: 1,
|
|
164
165
|
),
|
|
165
166
|
),
|
|
166
167
|
),
|
|
@@ -181,7 +182,7 @@ $vv-textarea: (
|
|
|
181
182
|
pseudo: (
|
|
182
183
|
after: (
|
|
183
184
|
background: var(--input-invalid-color),
|
|
184
|
-
|
|
185
|
+
scale: 1,
|
|
185
186
|
),
|
|
186
187
|
),
|
|
187
188
|
),
|
|
@@ -249,7 +250,7 @@ $vv-textarea: (
|
|
|
249
250
|
focus-within: (
|
|
250
251
|
element: (
|
|
251
252
|
label: (
|
|
252
|
-
|
|
253
|
+
translate: var(--input-floating-label-translate),
|
|
253
254
|
font-size: var(--input-floating-label-font-size),
|
|
254
255
|
),
|
|
255
256
|
input: (
|
|
@@ -267,7 +268,7 @@ $vv-textarea: (
|
|
|
267
268
|
dirty: (
|
|
268
269
|
element: (
|
|
269
270
|
label: (
|
|
270
|
-
|
|
271
|
+
translate: var(--input-floating-label-translate),
|
|
271
272
|
font-size: var(--input-floating-label-font-size),
|
|
272
273
|
),
|
|
273
274
|
input: (
|
|
@@ -4,7 +4,7 @@ $vv-tooltip: (
|
|
|
4
4
|
position: absolute,
|
|
5
5
|
inset-inline: 100% auto,
|
|
6
6
|
top: 50%,
|
|
7
|
-
|
|
7
|
+
translate: var(--spacing-10) -50%,
|
|
8
8
|
z-index: var(--z-tooltip),
|
|
9
9
|
inline-size: max-content,
|
|
10
10
|
max-inline-size: 25ch,
|
|
@@ -24,7 +24,7 @@ $vv-tooltip: (
|
|
|
24
24
|
z-index: -1,
|
|
25
25
|
inset-inline: 0 auto,
|
|
26
26
|
inset-block: 50% auto,
|
|
27
|
-
|
|
27
|
+
translate: -100% -50%,
|
|
28
28
|
border-width: var(--spacing-8),
|
|
29
29
|
border-style: solid,
|
|
30
30
|
border-color: transparent var(--color-gray-darken-4) transparent
|
|
@@ -38,35 +38,38 @@ $vv-tooltip: (
|
|
|
38
38
|
top: (
|
|
39
39
|
inset-inline: 50% 0,
|
|
40
40
|
inset-block: auto 100%,
|
|
41
|
-
|
|
41
|
+
translate: -50% calc(var(--spacing-10) * -1),
|
|
42
42
|
pseudo: (
|
|
43
43
|
after: (
|
|
44
44
|
inset-inline: 50% auto,
|
|
45
45
|
inset-block: 100% auto,
|
|
46
|
-
|
|
46
|
+
translate: -50%,
|
|
47
|
+
rotate: -90deg,
|
|
47
48
|
),
|
|
48
49
|
),
|
|
49
50
|
),
|
|
50
51
|
bottom: (
|
|
51
52
|
inset-inline: 50% 0,
|
|
52
53
|
inset-block: 100% auto,
|
|
53
|
-
|
|
54
|
+
translate: -50% var(--spacing-10),
|
|
54
55
|
pseudo: (
|
|
55
56
|
after: (
|
|
56
57
|
inset-inline: 50% auto,
|
|
57
58
|
inset-block: 0 auto,
|
|
58
|
-
|
|
59
|
+
translate: -50% -100%,
|
|
60
|
+
rotate: 90deg,
|
|
59
61
|
),
|
|
60
62
|
),
|
|
61
63
|
),
|
|
62
64
|
left: (
|
|
63
65
|
inset-inline: auto 100%,
|
|
64
|
-
|
|
66
|
+
translate: calc(var(--spacing-10) * -1) -50%,
|
|
65
67
|
pseudo: (
|
|
66
68
|
after: (
|
|
67
69
|
position: absolute,
|
|
68
70
|
inset-inline: auto 0,
|
|
69
|
-
|
|
71
|
+
translate: 100% -50%,
|
|
72
|
+
rotate: 180deg,
|
|
70
73
|
),
|
|
71
74
|
),
|
|
72
75
|
),
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-avatar);
|
|
5
|
+
$component-map: $dark-vv-avatar;
|
|
6
|
+
|
|
7
|
+
@mixin theme-dark-vv-avatar {
|
|
8
|
+
@include spread-map-into-props(
|
|
9
|
+
$map: $component-map,
|
|
10
|
+
$prefix: $component-name
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(:host, :root, .theme):not(.theme--light) {
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
@include theme-dark-vv-avatar;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.theme.theme--dark) {
|
|
21
|
+
@include theme-dark-vv-avatar;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-badge);
|
|
5
|
+
$component-map: $dark-vv-badge;
|
|
6
|
+
|
|
7
|
+
@mixin theme-dark-vv-badge {
|
|
8
|
+
@include spread-map-into-props(
|
|
9
|
+
$map: $component-map,
|
|
10
|
+
$prefix: $component-name
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(:host, :root, .theme):not(.theme--light) {
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
@include theme-dark-vv-badge;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.theme.theme--dark) {
|
|
21
|
+
@include theme-dark-vv-badge;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-dropdown-action);
|
|
5
|
+
$component-map: $dark-vv-dropdown-action;
|
|
6
|
+
|
|
7
|
+
@mixin theme-dark-vv-dropdown-action {
|
|
8
|
+
@include spread-map-into-props(
|
|
9
|
+
$map: $component-map,
|
|
10
|
+
$prefix: $component-name
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(:host, :root, .theme):not(.theme--light) {
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
@include theme-dark-vv-dropdown-action;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.theme.theme--dark) {
|
|
21
|
+
@include theme-dark-vv-dropdown-action;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-dropdown-option);
|
|
5
|
+
$component-map: $dark-vv-dropdown-option;
|
|
6
|
+
|
|
7
|
+
@mixin theme-dark-vv-dropdown-option {
|
|
8
|
+
@include spread-map-into-props(
|
|
9
|
+
$map: $component-map,
|
|
10
|
+
$prefix: $component-name
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(:host, :root, .theme):not(.theme--light) {
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
@include theme-dark-vv-dropdown-option;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.theme.theme--dark) {
|
|
21
|
+
@include theme-dark-vv-dropdown-option;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../context' as *;
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-nav);
|
|
5
|
+
$component-map: $dark-vv-nav;
|
|
6
|
+
|
|
7
|
+
@mixin theme-dark-vv-nav {
|
|
8
|
+
@include spread-map-into-props(
|
|
9
|
+
$map: $component-map,
|
|
10
|
+
$prefix: $component-name
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(:host, :root, .theme):not(.theme--light) {
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
@include theme-dark-vv-nav;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.theme.theme--dark) {
|
|
21
|
+
@include theme-dark-vv-nav;
|
|
22
|
+
}
|
|
@@ -6,6 +6,8 @@ $dark-background-image: (
|
|
|
6
6
|
none: none,
|
|
7
7
|
chevron:
|
|
8
8
|
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(#{hex-to-rgb($dark-color-word)})' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
|
|
9
|
+
chessboard:
|
|
10
|
+
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' width='200' height='400'%3E%3Cdefs%3E%3Cpattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Crect fill='white' x='0' y='0' width='10' height='10' opacity='0.1'/%3E%3Crect fill='black' x='10' y='0' width='10' height='10'/%3E%3Crect fill='white' x='10' y='10' width='10' height='10' opacity='0.1'/%3E%3Crect fill='black' x='0' y='10' width='10' height='10'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23grid)' x='0' y='0' width='100%25' height='100%25'/%3E%3C/svg%3E"),
|
|
9
11
|
grid:
|
|
10
12
|
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(51 65 85 / 0.25)'%3E%3Cpath d='M0 .5H31.5V32'/%3E%3C/svg%3E"),
|
|
11
13
|
check:
|
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
@use '../../../settings/colors' as *;
|
|
5
5
|
|
|
6
6
|
$dark-color-scheme: dark !default;
|
|
7
|
-
$dark-color-
|
|
8
|
-
$dark-color-
|
|
9
|
-
$dark-color-surface: hsl(color.hue($dark-color-brand) 10% 5%) !default;
|
|
10
|
-
$dark-color-alpha: hsla(0deg 0% 100% / 0%) !default;
|
|
7
|
+
$dark-color-word: hsl(color.hue($color-brand) 15% 85%) !default;
|
|
8
|
+
$dark-color-surface: hsl(color.hue($color-brand) 10% 5%) !default;
|
|
11
9
|
$dark-color-surface-palette: (
|
|
12
10
|
brand: hsl(var(--color-brand-hue) var(--color-brand-saturation) 10%),
|
|
13
11
|
accent: hsl(var(--color-accent-hue) var(--color-accent-saturation) 10%),
|
|
@@ -29,30 +27,6 @@ $dark-color-surface-palette-no-vars: (
|
|
|
29
27
|
$dark-colors: (
|
|
30
28
|
scheme: $dark-color-scheme,
|
|
31
29
|
word: color-darken-map($dark-color-word, 'word', $scale: 12%, $fixed: true),
|
|
32
|
-
surface:
|
|
33
|
-
map.merge(
|
|
34
|
-
color-lighten-map(
|
|
35
|
-
$dark-color-surface,
|
|
36
|
-
'surface',
|
|
37
|
-
$scale: 5%,
|
|
38
|
-
$fixed: true
|
|
39
|
-
),
|
|
40
|
-
$dark-color-surface-palette
|
|
41
|
-
),
|
|
42
|
-
alpha: color-alpha-map($dark-color-alpha, 'alpha', $steps: 5, $scale: 5%),
|
|
43
|
-
) !default;
|
|
44
|
-
|
|
45
|
-
// dark-colors computed map
|
|
46
|
-
$dark-colors-computed: (
|
|
47
|
-
scheme: $dark-color-scheme,
|
|
48
|
-
word:
|
|
49
|
-
color-darken-map(
|
|
50
|
-
$dark-color-word,
|
|
51
|
-
'word',
|
|
52
|
-
$scale: 12%,
|
|
53
|
-
$fixed: true,
|
|
54
|
-
$noVarExport: true
|
|
55
|
-
),
|
|
56
30
|
surface:
|
|
57
31
|
map.merge(
|
|
58
32
|
color-lighten-map(
|
|
@@ -60,16 +34,8 @@ $dark-colors-computed: (
|
|
|
60
34
|
'surface',
|
|
61
35
|
$scale: 5%,
|
|
62
36
|
$fixed: true,
|
|
63
|
-
$
|
|
37
|
+
$inverted: false
|
|
64
38
|
),
|
|
65
|
-
$dark-color-surface-palette
|
|
66
|
-
),
|
|
67
|
-
alpha:
|
|
68
|
-
color-alpha-map(
|
|
69
|
-
$dark-color-alpha,
|
|
70
|
-
'alpha',
|
|
71
|
-
$steps: 5,
|
|
72
|
-
$scale: 5%,
|
|
73
|
-
$noVarExport: true
|
|
39
|
+
$dark-color-surface-palette
|
|
74
40
|
),
|
|
75
41
|
) !default;
|
|
@@ -2,5 +2,10 @@
|
|
|
2
2
|
@forward 'background';
|
|
3
3
|
@forward 'input';
|
|
4
4
|
|
|
5
|
-
@forward 'components/vv-button';
|
|
6
5
|
@forward 'components/vv-alert';
|
|
6
|
+
@forward 'components/vv-avatar';
|
|
7
|
+
@forward 'components/vv-badge';
|
|
8
|
+
@forward 'components/vv-button';
|
|
9
|
+
@forward 'components/vv-dropdown-action';
|
|
10
|
+
@forward 'components/vv-dropdown-option';
|
|
11
|
+
@forward 'components/vv-nav';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
$dark-vv-avatar: (
|
|
2
|
+
modifier: (
|
|
3
|
+
ring: (
|
|
4
|
+
color: var(--color-brand-lighten-3),
|
|
5
|
+
modifier: (
|
|
6
|
+
danger: (
|
|
7
|
+
color: var(--color-danger-lighten-5),
|
|
8
|
+
),
|
|
9
|
+
success: (
|
|
10
|
+
color: var(--color-success-lighten-3),
|
|
11
|
+
),
|
|
12
|
+
warning: (
|
|
13
|
+
color: var(--color-warning),
|
|
14
|
+
),
|
|
15
|
+
gray: (
|
|
16
|
+
color: var(--color-gray-lighten-3),
|
|
17
|
+
),
|
|
18
|
+
info: (
|
|
19
|
+
color: var(--color-info),
|
|
20
|
+
),
|
|
21
|
+
accent: (
|
|
22
|
+
color: var(--color-accent-lighten-5),
|
|
23
|
+
),
|
|
24
|
+
),
|
|
25
|
+
),
|
|
26
|
+
),
|
|
27
|
+
);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
$dark-vv-badge: (
|
|
2
|
+
modifier: (
|
|
3
|
+
outline: (
|
|
4
|
+
color: var(--color-brand-lighten-3),
|
|
5
|
+
modifier: (
|
|
6
|
+
danger: (
|
|
7
|
+
color: var(--color-danger-lighten-3),
|
|
8
|
+
),
|
|
9
|
+
success: (
|
|
10
|
+
color: var(--color-success-lighten-3),
|
|
11
|
+
),
|
|
12
|
+
warning: (
|
|
13
|
+
color: var(--color-warning),
|
|
14
|
+
),
|
|
15
|
+
info: (
|
|
16
|
+
color: var(--color-info),
|
|
17
|
+
),
|
|
18
|
+
accent: (
|
|
19
|
+
color: var(--color-accent-lighten-3),
|
|
20
|
+
),
|
|
21
|
+
gray: (
|
|
22
|
+
color: var(--color-gray-lighten-3),
|
|
23
|
+
),
|
|
24
|
+
),
|
|
25
|
+
),
|
|
26
|
+
ghost: (
|
|
27
|
+
color: var(--color-brand-lighten-3),
|
|
28
|
+
modifier: (
|
|
29
|
+
danger: (
|
|
30
|
+
color: var(--color-danger-lighten-3),
|
|
31
|
+
),
|
|
32
|
+
success: (
|
|
33
|
+
color: var(--color-success-lighten-3),
|
|
34
|
+
),
|
|
35
|
+
warning: (
|
|
36
|
+
color: var(--color-warning),
|
|
37
|
+
),
|
|
38
|
+
info: (
|
|
39
|
+
color: var(--color-info),
|
|
40
|
+
),
|
|
41
|
+
accent: (
|
|
42
|
+
color: var(--color-accent-lighten-3),
|
|
43
|
+
),
|
|
44
|
+
gray: (
|
|
45
|
+
color: var(--color-gray-lighten-3),
|
|
46
|
+
),
|
|
47
|
+
),
|
|
48
|
+
),
|
|
49
|
+
),
|
|
50
|
+
);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
$dark-vv-button: (
|
|
2
2
|
modifier: (
|
|
3
3
|
primary: (
|
|
4
|
-
border-color: var(--color-gray-darken-
|
|
5
|
-
background: var(--color-gray-darken-
|
|
4
|
+
border-color: var(--color-gray-darken-3),
|
|
5
|
+
background: var(--color-gray-darken-3),
|
|
6
6
|
state: (
|
|
7
7
|
focus-visible: (
|
|
8
8
|
outline: var(--spacing-px) solid var(--color-gray),
|
|
9
9
|
),
|
|
10
10
|
hover: (
|
|
11
|
-
background: var(--color-gray-
|
|
12
|
-
border-color: var(--color-gray-
|
|
11
|
+
background: var(--color-gray-darken-2),
|
|
12
|
+
border-color: var(--color-gray-darken-2),
|
|
13
13
|
),
|
|
14
14
|
active: (
|
|
15
|
-
background: var(--color-gray),
|
|
16
|
-
border-color: var(--color-gray),
|
|
15
|
+
background: var(--color-gray-darken-1),
|
|
16
|
+
border-color: var(--color-gray-darken-1),
|
|
17
17
|
),
|
|
18
18
|
),
|
|
19
19
|
),
|
|
20
20
|
secondary: (
|
|
21
21
|
border-color: var(--color-gray-darken-1),
|
|
22
|
-
background:
|
|
22
|
+
background: transparent,
|
|
23
23
|
text-shadow: 0 1px 0 var(--color-gray-darken-5),
|
|
24
24
|
state: (
|
|
25
25
|
focus-visible: (
|
|
@@ -52,7 +52,12 @@ $dark-vv-button: (
|
|
|
52
52
|
),
|
|
53
53
|
),
|
|
54
54
|
link: (
|
|
55
|
-
color: var(--color-brand-lighten-
|
|
55
|
+
color: var(--color-brand-lighten-3),
|
|
56
|
+
state: (
|
|
57
|
+
active: (
|
|
58
|
+
color: var(--color-brand-lighten-2),
|
|
59
|
+
),
|
|
60
|
+
),
|
|
56
61
|
),
|
|
57
62
|
),
|
|
58
63
|
) !default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
$dark-vv-dropdown-option: (
|
|
2
|
+
state: (
|
|
3
|
+
focus-visible: (
|
|
4
|
+
color: var(--color-success-lighten-3),
|
|
5
|
+
),
|
|
6
|
+
selected: (
|
|
7
|
+
color: var(--color-brand-lighten-3),
|
|
8
|
+
),
|
|
9
|
+
),
|
|
10
|
+
modifier: (
|
|
11
|
+
unselectable: (
|
|
12
|
+
state: (
|
|
13
|
+
focus-visible: (
|
|
14
|
+
color: var(--color-danger-lighten-5),
|
|
15
|
+
),
|
|
16
|
+
),
|
|
17
|
+
),
|
|
18
|
+
),
|
|
19
|
+
);
|