@rokkit/themes 1.0.4 → 1.1.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/README.md +11 -19
- package/build.mjs +7 -21
- package/package.json +24 -132
- package/src/base/carousel.css +2 -2
- package/src/base/code-block.css +76 -0
- package/src/base/display.css +16 -8
- package/src/base/frame.css +36 -0
- package/src/base/index.css +2 -0
- package/src/base/input.css +57 -14
- package/src/base/nav-content.css +3 -3
- package/src/base/stepper.css +16 -14
- package/src/base/tabs.css +15 -2
- package/src/base/typography.css +32 -13
- package/src/frosted/button.css +27 -32
- package/src/frosted/card.css +8 -12
- package/src/frosted/chart.css +6 -6
- package/src/frosted/code-block.css +33 -0
- package/src/frosted/dropdown.css +9 -14
- package/src/frosted/floating-action.css +10 -10
- package/src/frosted/floating-navigation.css +13 -13
- package/src/frosted/frame.css +17 -0
- package/src/frosted/index.css +2 -0
- package/src/frosted/input.css +16 -17
- package/src/frosted/list.css +46 -21
- package/src/frosted/menu.css +13 -17
- package/src/frosted/message.css +8 -8
- package/src/frosted/range.css +8 -8
- package/src/frosted/search-filter.css +8 -8
- package/src/frosted/select.css +31 -31
- package/src/frosted/status-list.css +17 -17
- package/src/frosted/step-indicator.css +8 -9
- package/src/frosted/swatch.css +3 -3
- package/src/frosted/switch.css +3 -4
- package/src/frosted/table.css +16 -16
- package/src/frosted/tabs.css +8 -8
- package/src/frosted/timeline.css +5 -6
- package/src/frosted/toc.css +4 -4
- package/src/frosted/toggle.css +7 -7
- package/src/frosted/toolbar.css +15 -15
- package/src/frosted/tree.css +19 -19
- package/src/index.css +2 -0
- package/src/index.js +0 -1
- package/src/material/button.css +29 -29
- package/src/material/card.css +12 -12
- package/src/material/chart.css +6 -6
- package/src/material/code-block.css +33 -0
- package/src/material/dropdown.css +11 -11
- package/src/material/floating-action.css +10 -10
- package/src/material/floating-navigation.css +13 -13
- package/src/material/frame.css +17 -0
- package/src/material/index.css +2 -0
- package/src/material/input.css +21 -21
- package/src/material/list.css +34 -20
- package/src/material/menu.css +16 -16
- package/src/material/message.css +8 -8
- package/src/material/range.css +8 -8
- package/src/material/search-filter.css +8 -8
- package/src/material/select.css +31 -31
- package/src/material/status-list.css +17 -17
- package/src/material/step-indicator.css +8 -9
- package/src/material/swatch.css +3 -3
- package/src/material/switch.css +6 -6
- package/src/material/table.css +16 -16
- package/src/material/tabs.css +8 -8
- package/src/material/timeline.css +5 -6
- package/src/material/toc.css +4 -4
- package/src/material/toggle.css +7 -7
- package/src/material/toolbar.css +11 -11
- package/src/material/tree.css +17 -17
- package/src/minimal/button.css +30 -30
- package/src/minimal/card.css +13 -13
- package/src/minimal/chart.css +6 -6
- package/src/minimal/code-block.css +33 -0
- package/src/minimal/dropdown.css +11 -11
- package/src/minimal/floating-action.css +10 -10
- package/src/minimal/floating-navigation.css +12 -12
- package/src/minimal/frame.css +17 -0
- package/src/minimal/index.css +2 -0
- package/src/minimal/input.css +24 -24
- package/src/minimal/list.css +63 -23
- package/src/minimal/menu.css +15 -15
- package/src/minimal/message.css +8 -8
- package/src/minimal/range.css +7 -7
- package/src/minimal/search-filter.css +8 -8
- package/src/minimal/select.css +27 -39
- package/src/minimal/status-list.css +17 -17
- package/src/minimal/step-indicator.css +8 -8
- package/src/minimal/swatch.css +3 -3
- package/src/minimal/switch.css +6 -6
- package/src/minimal/table.css +16 -16
- package/src/minimal/tabs.css +14 -14
- package/src/minimal/timeline.css +4 -4
- package/src/minimal/toc.css +4 -4
- package/src/minimal/toggle.css +7 -7
- package/src/minimal/toolbar.css +14 -14
- package/src/minimal/tree.css +24 -18
- package/src/rokkit/avatar.css +6 -6
- package/src/rokkit/badge.css +5 -5
- package/src/rokkit/button.css +55 -37
- package/src/rokkit/card.css +11 -11
- package/src/rokkit/chart.css +6 -6
- package/src/rokkit/code-block.css +33 -0
- package/src/rokkit/connector.css +1 -1
- package/src/rokkit/divider.css +5 -5
- package/src/rokkit/dropdown.css +11 -11
- package/src/rokkit/floating-action.css +11 -11
- package/src/rokkit/floating-navigation.css +15 -15
- package/src/rokkit/frame.css +17 -0
- package/src/rokkit/grid.css +8 -8
- package/src/rokkit/index.css +2 -1
- package/src/rokkit/input.css +17 -17
- package/src/rokkit/list.css +46 -21
- package/src/rokkit/menu.css +14 -14
- package/src/rokkit/message.css +12 -12
- package/src/rokkit/range.css +10 -10
- package/src/rokkit/search-filter.css +8 -8
- package/src/rokkit/select.css +34 -34
- package/src/rokkit/status-list.css +17 -17
- package/src/rokkit/step-indicator.css +8 -9
- package/src/rokkit/swatch.css +3 -3
- package/src/rokkit/switch.css +6 -6
- package/src/rokkit/table.css +16 -16
- package/src/rokkit/tabs.css +31 -28
- package/src/rokkit/timeline.css +5 -6
- package/src/rokkit/toc.css +4 -4
- package/src/rokkit/toggle.css +21 -10
- package/src/rokkit/toolbar.css +15 -15
- package/src/rokkit/tooltip.css +1 -1
- package/src/rokkit/tree.css +23 -23
- package/src/rokkit/upload-progress.css +18 -18
- package/src/rokkit/upload-target.css +8 -8
- package/src/zen-sumi/button.css +176 -0
- package/src/zen-sumi/card.css +104 -0
- package/src/zen-sumi/chart.css +41 -0
- package/src/zen-sumi/code-block.css +35 -0
- package/src/zen-sumi/dropdown.css +53 -0
- package/src/zen-sumi/floating-action.css +68 -0
- package/src/zen-sumi/floating-navigation.css +74 -0
- package/src/zen-sumi/frame.css +20 -0
- package/src/zen-sumi/index.css +53 -0
- package/src/zen-sumi/input.css +171 -0
- package/src/zen-sumi/list.css +128 -0
- package/src/zen-sumi/menu.css +91 -0
- package/src/zen-sumi/message.css +37 -0
- package/src/zen-sumi/range.css +62 -0
- package/src/zen-sumi/search-filter.css +49 -0
- package/src/zen-sumi/select.css +160 -0
- package/src/zen-sumi/status-list.css +66 -0
- package/src/zen-sumi/step-indicator.css +40 -0
- package/src/zen-sumi/swatch.css +21 -0
- package/src/zen-sumi/switch.css +34 -0
- package/src/zen-sumi/table.css +118 -0
- package/src/zen-sumi/tabs.css +78 -0
- package/src/zen-sumi/timeline.css +46 -0
- package/src/zen-sumi/toc.css +22 -0
- package/src/zen-sumi/toggle.css +59 -0
- package/src/zen-sumi/toolbar.css +86 -0
- package/src/zen-sumi/tree.css +137 -0
- package/dist/ant-design.css +0 -2129
- package/dist/base.css +0 -6506
- package/dist/bits-ui.css +0 -2113
- package/dist/carbon.css +0 -2123
- package/dist/daisy-ui.css +0 -2138
- package/dist/frosted.css +0 -1953
- package/dist/grada-ui.css +0 -1915
- package/dist/index.css +0 -27359
- package/dist/material.css +0 -1924
- package/dist/minimal.css +0 -1978
- package/dist/rokkit.css +0 -2471
- package/dist/shadcn.css +0 -2099
- package/src/ant-design/button.css +0 -190
- package/src/ant-design/card.css +0 -100
- package/src/ant-design/chart.css +0 -34
- package/src/ant-design/connector.css +0 -11
- package/src/ant-design/dropdown.css +0 -50
- package/src/ant-design/floating-action.css +0 -63
- package/src/ant-design/floating-navigation.css +0 -70
- package/src/ant-design/grid.css +0 -46
- package/src/ant-design/index.css +0 -35
- package/src/ant-design/input.css +0 -151
- package/src/ant-design/list.css +0 -126
- package/src/ant-design/menu.css +0 -88
- package/src/ant-design/message.css +0 -35
- package/src/ant-design/range.css +0 -61
- package/src/ant-design/search-filter.css +0 -49
- package/src/ant-design/select.css +0 -158
- package/src/ant-design/status-list.css +0 -66
- package/src/ant-design/step-indicator.css +0 -38
- package/src/ant-design/switch.css +0 -29
- package/src/ant-design/table.css +0 -91
- package/src/ant-design/tabs.css +0 -153
- package/src/ant-design/timeline.css +0 -45
- package/src/ant-design/toc.css +0 -18
- package/src/ant-design/toggle.css +0 -48
- package/src/ant-design/toolbar.css +0 -85
- package/src/ant-design/tree.css +0 -137
- package/src/ant-design/upload-progress.css +0 -102
- package/src/ant-design/upload-target.css +0 -50
- package/src/bits-ui/button.css +0 -176
- package/src/bits-ui/card.css +0 -99
- package/src/bits-ui/chart.css +0 -34
- package/src/bits-ui/connector.css +0 -11
- package/src/bits-ui/dropdown.css +0 -50
- package/src/bits-ui/floating-action.css +0 -63
- package/src/bits-ui/floating-navigation.css +0 -70
- package/src/bits-ui/grid.css +0 -46
- package/src/bits-ui/index.css +0 -35
- package/src/bits-ui/input.css +0 -154
- package/src/bits-ui/list.css +0 -126
- package/src/bits-ui/menu.css +0 -88
- package/src/bits-ui/message.css +0 -35
- package/src/bits-ui/range.css +0 -61
- package/src/bits-ui/search-filter.css +0 -49
- package/src/bits-ui/select.css +0 -158
- package/src/bits-ui/status-list.css +0 -66
- package/src/bits-ui/step-indicator.css +0 -40
- package/src/bits-ui/switch.css +0 -29
- package/src/bits-ui/table.css +0 -89
- package/src/bits-ui/tabs.css +0 -151
- package/src/bits-ui/timeline.css +0 -45
- package/src/bits-ui/toc.css +0 -18
- package/src/bits-ui/toggle.css +0 -48
- package/src/bits-ui/toolbar.css +0 -85
- package/src/bits-ui/tree.css +0 -135
- package/src/bits-ui/upload-progress.css +0 -102
- package/src/bits-ui/upload-target.css +0 -50
- package/src/carbon/button.css +0 -186
- package/src/carbon/card.css +0 -97
- package/src/carbon/chart.css +0 -34
- package/src/carbon/connector.css +0 -11
- package/src/carbon/dropdown.css +0 -50
- package/src/carbon/floating-action.css +0 -63
- package/src/carbon/floating-navigation.css +0 -70
- package/src/carbon/grid.css +0 -46
- package/src/carbon/index.css +0 -34
- package/src/carbon/input.css +0 -148
- package/src/carbon/list.css +0 -124
- package/src/carbon/menu.css +0 -88
- package/src/carbon/message.css +0 -37
- package/src/carbon/range.css +0 -61
- package/src/carbon/search-filter.css +0 -49
- package/src/carbon/select.css +0 -158
- package/src/carbon/status-list.css +0 -66
- package/src/carbon/step-indicator.css +0 -40
- package/src/carbon/switch.css +0 -31
- package/src/carbon/table.css +0 -93
- package/src/carbon/tabs.css +0 -151
- package/src/carbon/timeline.css +0 -45
- package/src/carbon/toc.css +0 -22
- package/src/carbon/toggle.css +0 -48
- package/src/carbon/toolbar.css +0 -84
- package/src/carbon/tree.css +0 -135
- package/src/carbon/upload-progress.css +0 -102
- package/src/carbon/upload-target.css +0 -50
- package/src/daisy-ui/button.css +0 -196
- package/src/daisy-ui/card.css +0 -99
- package/src/daisy-ui/chart.css +0 -34
- package/src/daisy-ui/connector.css +0 -11
- package/src/daisy-ui/dropdown.css +0 -50
- package/src/daisy-ui/floating-action.css +0 -63
- package/src/daisy-ui/floating-navigation.css +0 -70
- package/src/daisy-ui/grid.css +0 -46
- package/src/daisy-ui/index.css +0 -34
- package/src/daisy-ui/input.css +0 -148
- package/src/daisy-ui/list.css +0 -127
- package/src/daisy-ui/menu.css +0 -88
- package/src/daisy-ui/message.css +0 -37
- package/src/daisy-ui/range.css +0 -61
- package/src/daisy-ui/search-filter.css +0 -49
- package/src/daisy-ui/select.css +0 -158
- package/src/daisy-ui/status-list.css +0 -66
- package/src/daisy-ui/step-indicator.css +0 -37
- package/src/daisy-ui/switch.css +0 -31
- package/src/daisy-ui/table.css +0 -91
- package/src/daisy-ui/tabs.css +0 -153
- package/src/daisy-ui/timeline.css +0 -45
- package/src/daisy-ui/toc.css +0 -22
- package/src/daisy-ui/toggle.css +0 -48
- package/src/daisy-ui/toolbar.css +0 -85
- package/src/daisy-ui/tree.css +0 -137
- package/src/daisy-ui/upload-progress.css +0 -102
- package/src/daisy-ui/upload-target.css +0 -50
- package/src/grada-ui/button.css +0 -249
- package/src/grada-ui/card.css +0 -96
- package/src/grada-ui/chart.css +0 -34
- package/src/grada-ui/dropdown.css +0 -58
- package/src/grada-ui/floating-action.css +0 -66
- package/src/grada-ui/floating-navigation.css +0 -69
- package/src/grada-ui/index.css +0 -56
- package/src/grada-ui/input.css +0 -154
- package/src/grada-ui/list.css +0 -124
- package/src/grada-ui/menu.css +0 -81
- package/src/grada-ui/message.css +0 -48
- package/src/grada-ui/range.css +0 -59
- package/src/grada-ui/search-filter.css +0 -47
- package/src/grada-ui/select.css +0 -190
- package/src/grada-ui/status-list.css +0 -66
- package/src/grada-ui/step-indicator.css +0 -37
- package/src/grada-ui/switch.css +0 -35
- package/src/grada-ui/table.css +0 -79
- package/src/grada-ui/tabs.css +0 -59
- package/src/grada-ui/timeline.css +0 -46
- package/src/grada-ui/toc.css +0 -24
- package/src/grada-ui/toggle.css +0 -47
- package/src/grada-ui/toolbar.css +0 -91
- package/src/grada-ui/tree.css +0 -100
- package/src/rokkit/stack.css +0 -6
- package/src/shadcn/button.css +0 -175
- package/src/shadcn/card.css +0 -99
- package/src/shadcn/chart.css +0 -34
- package/src/shadcn/connector.css +0 -11
- package/src/shadcn/dropdown.css +0 -50
- package/src/shadcn/floating-action.css +0 -63
- package/src/shadcn/floating-navigation.css +0 -70
- package/src/shadcn/grid.css +0 -46
- package/src/shadcn/index.css +0 -35
- package/src/shadcn/input.css +0 -143
- package/src/shadcn/list.css +0 -124
- package/src/shadcn/menu.css +0 -88
- package/src/shadcn/message.css +0 -35
- package/src/shadcn/range.css +0 -61
- package/src/shadcn/search-filter.css +0 -49
- package/src/shadcn/select.css +0 -158
- package/src/shadcn/status-list.css +0 -66
- package/src/shadcn/step-indicator.css +0 -37
- package/src/shadcn/switch.css +0 -31
- package/src/shadcn/table.css +0 -89
- package/src/shadcn/tabs.css +0 -151
- package/src/shadcn/timeline.css +0 -45
- package/src/shadcn/toc.css +0 -20
- package/src/shadcn/toggle.css +0 -48
- package/src/shadcn/toolbar.css +0 -84
- package/src/shadcn/tree.css +0 -135
- package/src/shadcn/upload-progress.css +0 -102
- package/src/shadcn/upload-target.css +0 -50
package/src/base/input.css
CHANGED
|
@@ -12,12 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
/* Separator between form fields */
|
|
14
14
|
[data-form-separator] {
|
|
15
|
-
|
|
15
|
+
border-top-color: var(--paper-mute);
|
|
16
|
+
@apply my-1 border-t;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
/* Form group (fieldset for nested objects) */
|
|
19
20
|
[data-form-group] {
|
|
20
|
-
|
|
21
|
+
border-left-color: var(--paper-mute);
|
|
22
|
+
@apply m-0 flex flex-col gap-3 border-l border-none p-0 pl-3;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
[data-form-group-label] {
|
|
@@ -46,7 +48,8 @@
|
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
[data-severity='error'] [data-validation-count] {
|
|
49
|
-
|
|
51
|
+
background-color: var(--error-soft);
|
|
52
|
+
color: var(--error);
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
[data-severity='warning'] > [data-validation-group-header] {
|
|
@@ -54,7 +57,8 @@
|
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
[data-severity='warning'] [data-validation-count] {
|
|
57
|
-
|
|
60
|
+
background-color: var(--warning-soft);
|
|
61
|
+
color: var(--warning);
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
[data-severity='info'] > [data-validation-group-header] {
|
|
@@ -62,7 +66,8 @@
|
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
[data-severity='info'] [data-validation-count] {
|
|
65
|
-
|
|
69
|
+
background-color: var(--info-soft);
|
|
70
|
+
color: var(--info);
|
|
66
71
|
}
|
|
67
72
|
|
|
68
73
|
[data-severity='success'] > [data-validation-group-header] {
|
|
@@ -70,7 +75,8 @@
|
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
[data-severity='success'] [data-validation-count] {
|
|
73
|
-
|
|
78
|
+
background-color: var(--success-soft);
|
|
79
|
+
color: var(--success);
|
|
74
80
|
}
|
|
75
81
|
|
|
76
82
|
[data-validation-item] {
|
|
@@ -78,7 +84,11 @@
|
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
button[data-validation-item] {
|
|
81
|
-
@apply
|
|
87
|
+
@apply cursor-pointer border-none bg-transparent;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
button[data-validation-item]:hover {
|
|
91
|
+
background-color: var(--paper-soft);
|
|
82
92
|
}
|
|
83
93
|
|
|
84
94
|
/* Form actions (submit/reset buttons) */
|
|
@@ -88,11 +98,21 @@ button[data-validation-item] {
|
|
|
88
98
|
|
|
89
99
|
button[data-form-submit],
|
|
90
100
|
button[data-form-reset] {
|
|
91
|
-
|
|
101
|
+
border-color: var(--paper-mute);
|
|
102
|
+
background-color: var(--paper-soft);
|
|
103
|
+
@apply cursor-pointer rounded border px-4 py-1.5 text-sm transition-colors;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
button[data-form-submit]:hover,
|
|
107
|
+
button[data-form-reset]:hover {
|
|
108
|
+
background-color: var(--paper-mute);
|
|
92
109
|
}
|
|
93
110
|
|
|
94
111
|
button[data-form-submit] {
|
|
95
|
-
|
|
112
|
+
background-color: var(--primary);
|
|
113
|
+
color: var(--on-primary);
|
|
114
|
+
border-color: var(--primary);
|
|
115
|
+
@apply hover:opacity-90;
|
|
96
116
|
}
|
|
97
117
|
|
|
98
118
|
button[data-form-submit]:disabled,
|
|
@@ -122,6 +142,24 @@ button[data-form-reset]:disabled {
|
|
|
122
142
|
@apply flex-row items-center justify-between gap-2;
|
|
123
143
|
}
|
|
124
144
|
|
|
145
|
+
/* Inline layout variant — opt in per field via the `variant='inline'`
|
|
146
|
+
prop on InputField (or the equivalent `variant` field on a
|
|
147
|
+
FormRenderer layout element). Label sits in a fixed leading column,
|
|
148
|
+
the input takes the remaining row. Useful for control-panel
|
|
149
|
+
contexts (playground knobs, settings dialogs, tweak editors) where
|
|
150
|
+
the form-page rhythm reads as overkill. */
|
|
151
|
+
[data-field-root][data-field-layout='inline'] > [data-field] {
|
|
152
|
+
@apply flex-row items-center gap-3;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
[data-field-root][data-field-layout='inline'] > [data-field] > label {
|
|
156
|
+
@apply flex-none w-32 text-xs;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
[data-field-root][data-field-layout='inline'] > [data-field] > :not(label) {
|
|
160
|
+
@apply flex-1 min-w-0;
|
|
161
|
+
}
|
|
162
|
+
|
|
125
163
|
/* Select: stretch to fill input wrapper — display:flex eliminates inline-block gap */
|
|
126
164
|
[data-input-root] [data-select] {
|
|
127
165
|
@apply flex-1 self-stretch;
|
|
@@ -192,13 +230,17 @@ button[data-form-reset]:disabled {
|
|
|
192
230
|
@apply focus:outline-none;
|
|
193
231
|
}
|
|
194
232
|
|
|
195
|
-
/* Range slider thumb */
|
|
233
|
+
/* Range slider thumb — theme layer sets --range-thumb via @apply on [data-range-thumb] */
|
|
234
|
+
input[type='range'] {
|
|
235
|
+
--range-thumb: var(--color-primary);
|
|
236
|
+
}
|
|
237
|
+
|
|
196
238
|
input[type='range']::-webkit-slider-thumb {
|
|
197
239
|
appearance: none;
|
|
198
240
|
height: 16px;
|
|
199
241
|
width: 16px;
|
|
200
242
|
border-radius: 50%;
|
|
201
|
-
background:
|
|
243
|
+
background: var(--range-thumb);
|
|
202
244
|
cursor: pointer;
|
|
203
245
|
}
|
|
204
246
|
|
|
@@ -206,7 +248,7 @@ input[type='range']::-moz-range-thumb {
|
|
|
206
248
|
height: 16px;
|
|
207
249
|
width: 16px;
|
|
208
250
|
border-radius: 50%;
|
|
209
|
-
background:
|
|
251
|
+
background: var(--range-thumb);
|
|
210
252
|
cursor: pointer;
|
|
211
253
|
border: none;
|
|
212
254
|
}
|
|
@@ -246,7 +288,8 @@ input[type='radio'] {
|
|
|
246
288
|
}
|
|
247
289
|
|
|
248
290
|
input[type='radio']:checked {
|
|
249
|
-
border-color:
|
|
291
|
+
border-color: var(--primary);
|
|
292
|
+
color: var(--primary);
|
|
250
293
|
}
|
|
251
294
|
|
|
252
295
|
input[type='radio']:checked::before {
|
|
@@ -255,7 +298,7 @@ input[type='radio']:checked::before {
|
|
|
255
298
|
width: 0.5rem;
|
|
256
299
|
height: 0.5rem;
|
|
257
300
|
border-radius: 50%;
|
|
258
|
-
background:
|
|
301
|
+
background: currentColor;
|
|
259
302
|
position: absolute;
|
|
260
303
|
top: 50%;
|
|
261
304
|
left: 50%;
|
package/src/base/nav-content.css
CHANGED
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
|
|
22
22
|
[data-nav-content][data-orientation='horizontal'] [data-nav-content-nav] {
|
|
23
23
|
width: var(--nav-size, 280px);
|
|
24
|
-
border-right: 1px solid var(--
|
|
24
|
+
border-right: 1px solid var(--paper-mute);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
[data-nav-content][data-orientation='vertical'] [data-nav-content-nav] {
|
|
28
|
-
border-bottom: 1px solid var(--
|
|
28
|
+
border-bottom: 1px solid var(--paper-mute);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
[data-nav-content-main] {
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
[data-nav-content][data-collapsible][data-orientation='horizontal'] [data-nav-content-nav] {
|
|
44
44
|
width: 100%;
|
|
45
45
|
border-right: none;
|
|
46
|
-
border-bottom: 1px solid var(--
|
|
46
|
+
border-bottom: 1px solid var(--paper-mute);
|
|
47
47
|
}
|
|
48
48
|
}
|
package/src/base/stepper.css
CHANGED
|
@@ -47,32 +47,32 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
[data-stepper-step][data-completed] [data-stepper-circle] {
|
|
50
|
-
background-color: var(--
|
|
51
|
-
border-color: var(--
|
|
52
|
-
color:
|
|
50
|
+
background-color: var(--primary);
|
|
51
|
+
border-color: var(--primary);
|
|
52
|
+
color: var(--paper);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
[data-stepper-step][data-active] [data-stepper-circle] {
|
|
56
|
-
border-color: var(--
|
|
57
|
-
color: var(--
|
|
58
|
-
|
|
56
|
+
border-color: var(--primary);
|
|
57
|
+
color: var(--primary);
|
|
58
|
+
@apply ring-primary/20 ring-3;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/* ─── Connector line ─── */
|
|
62
62
|
|
|
63
63
|
[data-stepper-connector] {
|
|
64
|
+
background-color: var(--paper-mute);
|
|
64
65
|
flex: 1;
|
|
65
66
|
height: 2px;
|
|
66
67
|
min-width: 2rem;
|
|
67
68
|
align-self: center;
|
|
68
69
|
/* Vertically center with the circle (half of 2.5rem) */
|
|
69
70
|
margin-top: 1.25rem;
|
|
70
|
-
background-color: var(--color-surface-300, #d1d5db);
|
|
71
71
|
transition: background-color 0.2s ease;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
[data-stepper-connector][data-completed] {
|
|
75
|
-
background-color: var(--
|
|
75
|
+
background-color: var(--primary);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/* Vertical orientation connectors */
|
|
@@ -104,10 +104,12 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
[data-stepper-dot] {
|
|
107
|
+
border-color: var(--paper-edge);
|
|
107
108
|
width: 0.5rem;
|
|
108
109
|
height: 0.5rem;
|
|
109
110
|
border-radius: 9999px;
|
|
110
|
-
border: 1px
|
|
111
|
+
border-width: 1px;
|
|
112
|
+
border-style: solid;
|
|
111
113
|
background: transparent;
|
|
112
114
|
cursor: pointer;
|
|
113
115
|
padding: 0;
|
|
@@ -122,14 +124,14 @@
|
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
[data-stepper-dot][data-completed] {
|
|
125
|
-
background-color: var(--
|
|
126
|
-
border-color: var(--
|
|
127
|
+
background-color: var(--primary);
|
|
128
|
+
border-color: var(--primary);
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
[data-stepper-dot][data-active] {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
background-color: var(--primary);
|
|
133
|
+
border-color: var(--primary);
|
|
134
|
+
@apply ring-primary/25 ring-2;
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
/* ─── Content area ─── */
|
package/src/base/tabs.css
CHANGED
|
@@ -45,9 +45,15 @@
|
|
|
45
45
|
|
|
46
46
|
[data-tabs][data-orientation='vertical'] [data-tabs-list] {
|
|
47
47
|
flex-direction: column;
|
|
48
|
+
/* In vertical mode the list is a flex item perpendicular to the
|
|
49
|
+
* row-direction parent. Stretching it gives `justify-content` a
|
|
50
|
+
* height to distribute — without this the column collapses to
|
|
51
|
+
* fit-content and `align=center / end` have no spare space to
|
|
52
|
+
* move the tabs into. */
|
|
53
|
+
align-self: stretch;
|
|
48
54
|
}
|
|
49
55
|
|
|
50
|
-
/* Alignment */
|
|
56
|
+
/* Alignment — main-axis distribution within the list */
|
|
51
57
|
[data-tabs][data-align='center'] [data-tabs-list] {
|
|
52
58
|
justify-content: center;
|
|
53
59
|
}
|
|
@@ -66,7 +72,14 @@
|
|
|
66
72
|
gap: 0.375rem;
|
|
67
73
|
padding: 0.5rem 0.75rem;
|
|
68
74
|
cursor: pointer;
|
|
69
|
-
border: none
|
|
75
|
+
/* `border: none` expands to `border-width: medium` (= 3px) which leaks
|
|
76
|
+
* a 3px ring on every side as soon as a theme sets `border-style: solid`.
|
|
77
|
+
* Spell the safe baseline out: zero width on all sides, solid style so
|
|
78
|
+
* any `border-{side}-[Npx]` from a theme renders without needing to
|
|
79
|
+
* re-declare the style. */
|
|
80
|
+
border-width: 0;
|
|
81
|
+
border-style: solid;
|
|
82
|
+
border-color: currentcolor;
|
|
70
83
|
background: transparent;
|
|
71
84
|
font-weight: 500;
|
|
72
85
|
font-size: 0.875rem;
|
package/src/base/typography.css
CHANGED
|
@@ -2,25 +2,37 @@
|
|
|
2
2
|
* Typography & Shape Tokens
|
|
3
3
|
*
|
|
4
4
|
* CSS custom properties for font families and border-radius scale.
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* Canonical names match the named-token vocabulary's semantic intent:
|
|
7
|
+
* --font-display — heading / display typeface
|
|
8
|
+
* --font-ui — body / UI typeface
|
|
9
|
+
* --font-mono — code, eyebrows, kbd shortcuts
|
|
10
|
+
*
|
|
11
|
+
* Legacy aliases `--font-heading` and `--font-sans` are emitted as
|
|
12
|
+
* `var(--font-display)` and `var(--font-ui)` for backward compatibility
|
|
13
|
+
* with any consumer that still reads the old names. Both stay in sync.
|
|
14
|
+
*
|
|
15
|
+
* Override these in your application stylesheet or via the preset's
|
|
16
|
+
* `typography: { display, ui, mono }` config to customize.
|
|
6
17
|
*
|
|
7
18
|
* @example
|
|
8
19
|
* :root {
|
|
9
|
-
* --font-
|
|
10
|
-
* --font-
|
|
11
|
-
* --font-
|
|
12
|
-
*
|
|
13
|
-
* --radius-sm: 0; --* sharp corners *--
|
|
14
|
-
* --radius-md: 0;
|
|
15
|
-
* --radius-lg: 0;
|
|
20
|
+
* --font-display: 'Fraunces', serif;
|
|
21
|
+
* --font-ui: 'Inter', system-ui, sans-serif;
|
|
22
|
+
* --font-mono: 'JetBrains Mono', monospace;
|
|
16
23
|
* }
|
|
17
24
|
*/
|
|
18
25
|
|
|
19
|
-
:root
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
/* Defaults wrapped in :where() so specificity is 0 — any explicit :root
|
|
27
|
+
declaration (from the preset emit, an app stylesheet, or another theme)
|
|
28
|
+
wins without needing extra weight. Without :where(), this file would
|
|
29
|
+
override later preset emissions since both are :root, same specificity,
|
|
30
|
+
and the source order has this CSS loading after the preset preflight. */
|
|
31
|
+
:where(:root) {
|
|
32
|
+
/* Font families — canonical names */
|
|
33
|
+
--font-display: 'Open Sans', sans-serif;
|
|
34
|
+
--font-ui: 'Open Sans', -apple-system, system-ui, 'Segoe UI', ui-serif, sans-serif;
|
|
35
|
+
--font-mono: 'Victor Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
|
|
24
36
|
|
|
25
37
|
/* Border-radius scale */
|
|
26
38
|
--radius-sm: 0.25rem;
|
|
@@ -29,3 +41,10 @@
|
|
|
29
41
|
--radius-xl: 0.75rem;
|
|
30
42
|
--radius-full: 9999px;
|
|
31
43
|
}
|
|
44
|
+
|
|
45
|
+
/* Legacy aliases — outside the :where() so they ALWAYS reflect whichever
|
|
46
|
+
--font-display / --font-ui value won in the cascade (default or preset). */
|
|
47
|
+
:root {
|
|
48
|
+
--font-heading: var(--font-display);
|
|
49
|
+
--font-sans: var(--font-ui);
|
|
50
|
+
}
|
package/src/frosted/button.css
CHANGED
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
[data-style='frosted'] [data-button]:not([data-style])[data-variant='default'],
|
|
14
14
|
[data-style='frosted'] [data-button][data-style='default']:not([data-variant]),
|
|
15
15
|
[data-style='frosted'] [data-button]:not([data-style]):not([data-variant]) {
|
|
16
|
-
@apply text-
|
|
17
|
-
background: color-mix(in srgb, var(--color-surface-z4, #888) 28%, transparent);
|
|
16
|
+
@apply text-ink border backdrop-blur-xl bg-paper-edge/28;
|
|
18
17
|
border-color: rgba(255, 255, 255, 0.22);
|
|
19
18
|
box-shadow:
|
|
20
19
|
inset 0 1px 0 rgba(255, 255, 255, 0.2),
|
|
@@ -23,8 +22,7 @@
|
|
|
23
22
|
|
|
24
23
|
[data-style='frosted'] [data-button][data-style='default'][data-variant='primary'],
|
|
25
24
|
[data-style='frosted'] [data-button]:not([data-style])[data-variant='primary'] {
|
|
26
|
-
@apply text-on-primary border backdrop-blur-xl;
|
|
27
|
-
background: color-mix(in srgb, var(--color-primary-500, #6366f1) 60%, transparent);
|
|
25
|
+
@apply text-on-primary border backdrop-blur-xl bg-primary/60;
|
|
28
26
|
border-color: rgba(255, 255, 255, 0.25);
|
|
29
27
|
box-shadow:
|
|
30
28
|
inset 0 1px 0 rgba(255, 255, 255, 0.25),
|
|
@@ -33,8 +31,7 @@
|
|
|
33
31
|
|
|
34
32
|
[data-style='frosted'] [data-button][data-style='default'][data-variant='secondary'],
|
|
35
33
|
[data-style='frosted'] [data-button]:not([data-style])[data-variant='secondary'] {
|
|
36
|
-
@apply text-on-
|
|
37
|
-
background: color-mix(in srgb, var(--color-secondary-500, #ec4899) 60%, transparent);
|
|
34
|
+
@apply text-on-primary border backdrop-blur-xl bg-accent/60;
|
|
38
35
|
border-color: rgba(255, 255, 255, 0.25);
|
|
39
36
|
box-shadow:
|
|
40
37
|
inset 0 1px 0 rgba(255, 255, 255, 0.25),
|
|
@@ -43,8 +40,7 @@
|
|
|
43
40
|
|
|
44
41
|
[data-style='frosted'] [data-button][data-style='default'][data-variant='accent'],
|
|
45
42
|
[data-style='frosted'] [data-button]:not([data-style])[data-variant='accent'] {
|
|
46
|
-
@apply text-on-accent border backdrop-blur-xl;
|
|
47
|
-
background: color-mix(in srgb, var(--color-accent-500, #f59e0b) 60%, transparent);
|
|
43
|
+
@apply text-on-accent border backdrop-blur-xl bg-accent/60;
|
|
48
44
|
border-color: rgba(255, 255, 255, 0.25);
|
|
49
45
|
box-shadow:
|
|
50
46
|
inset 0 1px 0 rgba(255, 255, 255, 0.25),
|
|
@@ -53,8 +49,7 @@
|
|
|
53
49
|
|
|
54
50
|
[data-style='frosted'] [data-button][data-style='default'][data-variant='danger'],
|
|
55
51
|
[data-style='frosted'] [data-button]:not([data-style])[data-variant='danger'] {
|
|
56
|
-
@apply text-on-danger border backdrop-blur-xl;
|
|
57
|
-
background: color-mix(in srgb, var(--color-danger-500, #ef4444) 60%, transparent);
|
|
52
|
+
@apply text-on-danger border backdrop-blur-xl bg-danger/60;
|
|
58
53
|
border-color: rgba(255, 255, 255, 0.25);
|
|
59
54
|
box-shadow:
|
|
60
55
|
inset 0 1px 0 rgba(255, 255, 255, 0.25),
|
|
@@ -67,28 +62,28 @@
|
|
|
67
62
|
|
|
68
63
|
[data-style='frosted'] [data-button][data-style='outline'][data-variant='default'],
|
|
69
64
|
[data-style='frosted'] [data-button][data-style='outline']:not([data-variant]) {
|
|
70
|
-
@apply text-
|
|
65
|
+
@apply text-ink-mute border bg-transparent;
|
|
71
66
|
border-color: rgba(255, 255, 255, 0.28);
|
|
72
67
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
|
|
73
68
|
}
|
|
74
69
|
|
|
75
70
|
[data-style='frosted'] [data-button][data-style='outline'][data-variant='primary'] {
|
|
76
|
-
@apply text-primary
|
|
71
|
+
@apply text-primary border bg-transparent;
|
|
77
72
|
border-color: rgba(255, 255, 255, 0.28);
|
|
78
73
|
}
|
|
79
74
|
|
|
80
75
|
[data-style='frosted'] [data-button][data-style='outline'][data-variant='secondary'] {
|
|
81
|
-
@apply text-
|
|
76
|
+
@apply text-accent border bg-transparent;
|
|
82
77
|
border-color: rgba(255, 255, 255, 0.28);
|
|
83
78
|
}
|
|
84
79
|
|
|
85
80
|
[data-style='frosted'] [data-button][data-style='outline'][data-variant='accent'] {
|
|
86
|
-
@apply text-accent
|
|
81
|
+
@apply text-accent border bg-transparent;
|
|
87
82
|
border-color: rgba(255, 255, 255, 0.28);
|
|
88
83
|
}
|
|
89
84
|
|
|
90
85
|
[data-style='frosted'] [data-button][data-style='outline'][data-variant='danger'] {
|
|
91
|
-
@apply text-danger
|
|
86
|
+
@apply text-danger border bg-transparent;
|
|
92
87
|
border-color: rgba(255, 255, 255, 0.28);
|
|
93
88
|
}
|
|
94
89
|
|
|
@@ -102,23 +97,23 @@
|
|
|
102
97
|
|
|
103
98
|
[data-style='frosted'] [data-button][data-style='ghost'][data-variant='default'],
|
|
104
99
|
[data-style='frosted'] [data-button][data-style='ghost']:not([data-variant]) {
|
|
105
|
-
@apply text-
|
|
100
|
+
@apply text-ink-mute;
|
|
106
101
|
}
|
|
107
102
|
|
|
108
103
|
[data-style='frosted'] [data-button][data-style='ghost'][data-variant='primary'] {
|
|
109
|
-
@apply text-primary
|
|
104
|
+
@apply text-primary;
|
|
110
105
|
}
|
|
111
106
|
|
|
112
107
|
[data-style='frosted'] [data-button][data-style='ghost'][data-variant='secondary'] {
|
|
113
|
-
@apply text-
|
|
108
|
+
@apply text-accent;
|
|
114
109
|
}
|
|
115
110
|
|
|
116
111
|
[data-style='frosted'] [data-button][data-style='ghost'][data-variant='accent'] {
|
|
117
|
-
@apply text-accent
|
|
112
|
+
@apply text-accent;
|
|
118
113
|
}
|
|
119
114
|
|
|
120
115
|
[data-style='frosted'] [data-button][data-style='ghost'][data-variant='danger'] {
|
|
121
|
-
@apply text-danger
|
|
116
|
+
@apply text-danger;
|
|
122
117
|
}
|
|
123
118
|
|
|
124
119
|
/* =============================================================================
|
|
@@ -127,31 +122,31 @@
|
|
|
127
122
|
|
|
128
123
|
[data-style='frosted'] [data-button][data-style='gradient'][data-variant='default'],
|
|
129
124
|
[data-style='frosted'] [data-button][data-style='gradient']:not([data-variant]) {
|
|
130
|
-
@apply from-
|
|
125
|
+
@apply from-paper-mute/70 to-paper-soft/50 text-ink bg-gradient-to-br backdrop-blur-xl;
|
|
131
126
|
border-color: rgba(255, 255, 255, 0.2);
|
|
132
127
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
|
133
128
|
}
|
|
134
129
|
|
|
135
130
|
[data-style='frosted'] [data-button][data-style='gradient'][data-variant='primary'] {
|
|
136
|
-
@apply from-primary
|
|
131
|
+
@apply from-primary/80 to-primary/60 text-on-primary bg-gradient-to-br backdrop-blur-xl;
|
|
137
132
|
border-color: rgba(255, 255, 255, 0.25);
|
|
138
133
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
|
139
134
|
}
|
|
140
135
|
|
|
141
136
|
[data-style='frosted'] [data-button][data-style='gradient'][data-variant='secondary'] {
|
|
142
|
-
@apply from-
|
|
137
|
+
@apply from-accent/80 to-accent/60 text-on-primary bg-gradient-to-br backdrop-blur-xl;
|
|
143
138
|
border-color: rgba(255, 255, 255, 0.25);
|
|
144
139
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
|
145
140
|
}
|
|
146
141
|
|
|
147
142
|
[data-style='frosted'] [data-button][data-style='gradient'][data-variant='accent'] {
|
|
148
|
-
@apply from-accent
|
|
143
|
+
@apply from-accent/80 to-accent/60 text-on-accent bg-gradient-to-br backdrop-blur-xl;
|
|
149
144
|
border-color: rgba(255, 255, 255, 0.25);
|
|
150
145
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
|
151
146
|
}
|
|
152
147
|
|
|
153
148
|
[data-style='frosted'] [data-button][data-style='gradient'][data-variant='danger'] {
|
|
154
|
-
@apply from-danger
|
|
149
|
+
@apply from-danger/80 to-danger/60 text-on-danger bg-gradient-to-br backdrop-blur-xl;
|
|
155
150
|
border-color: rgba(255, 255, 255, 0.25);
|
|
156
151
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
|
157
152
|
}
|
|
@@ -167,27 +162,27 @@
|
|
|
167
162
|
|
|
168
163
|
[data-style='frosted'] [data-button][data-style='link'][data-variant='default'],
|
|
169
164
|
[data-style='frosted'] [data-button][data-style='link']:not([data-variant]) {
|
|
170
|
-
@apply text-
|
|
165
|
+
@apply text-ink-mute;
|
|
171
166
|
}
|
|
172
167
|
|
|
173
168
|
[data-style='frosted'] [data-button][data-style='link'][data-variant='primary'] {
|
|
174
|
-
@apply text-primary
|
|
169
|
+
@apply text-primary;
|
|
175
170
|
}
|
|
176
171
|
|
|
177
172
|
[data-style='frosted'] [data-button][data-style='link'][data-variant='secondary'] {
|
|
178
|
-
@apply text-
|
|
173
|
+
@apply text-accent;
|
|
179
174
|
}
|
|
180
175
|
|
|
181
176
|
[data-style='frosted'] [data-button][data-style='link'][data-variant='accent'] {
|
|
182
|
-
@apply text-accent
|
|
177
|
+
@apply text-accent;
|
|
183
178
|
}
|
|
184
179
|
|
|
185
180
|
[data-style='frosted'] [data-button][data-style='link'][data-variant='danger'] {
|
|
186
|
-
@apply text-danger
|
|
181
|
+
@apply text-danger;
|
|
187
182
|
}
|
|
188
183
|
|
|
189
184
|
[data-style='frosted'] [data-button][data-style='link']:hover:not(:disabled):not([data-disabled]) {
|
|
190
|
-
@apply text-primary
|
|
185
|
+
@apply text-primary;
|
|
191
186
|
}
|
|
192
187
|
|
|
193
188
|
/* =============================================================================
|
|
@@ -196,7 +191,7 @@
|
|
|
196
191
|
|
|
197
192
|
[data-style='frosted'] [data-button][data-style='default']:hover:not(:disabled):not([data-disabled]),
|
|
198
193
|
[data-style='frosted'] [data-button]:not([data-style]):hover:not(:disabled):not([data-disabled]) {
|
|
199
|
-
|
|
194
|
+
@apply bg-paper-edge/38;
|
|
200
195
|
border-color: rgba(255, 255, 255, 0.3);
|
|
201
196
|
box-shadow:
|
|
202
197
|
inset 0 1px 0 rgba(255, 255, 255, 0.28),
|
package/src/frosted/card.css
CHANGED
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
============================================================================= */
|
|
11
11
|
|
|
12
12
|
[data-style='frosted'] [data-card] {
|
|
13
|
-
@apply text-
|
|
14
|
-
background: color-mix(in srgb, var(--color-surface-z3, #888) 30%, transparent);
|
|
13
|
+
@apply text-ink border shadow-lg backdrop-blur-xl bg-paper-mute/30;
|
|
15
14
|
border-color: rgba(255, 255, 255, 0.18);
|
|
16
15
|
box-shadow:
|
|
17
16
|
inset 0 1px 0 rgba(255, 255, 255, 0.22),
|
|
@@ -28,7 +27,7 @@
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
[data-style='frosted'] [data-card][data-card-interactive]:hover {
|
|
31
|
-
|
|
30
|
+
@apply bg-paper-mute/42;
|
|
32
31
|
box-shadow:
|
|
33
32
|
inset 0 1px 0 rgba(255, 255, 255, 0.28),
|
|
34
33
|
0 16px 40px rgba(0, 0, 0, 0.14);
|
|
@@ -51,11 +50,11 @@
|
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
[data-style='frosted'] [data-card-body] {
|
|
54
|
-
@apply text-
|
|
53
|
+
@apply text-ink-mute;
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
[data-style='frosted'] [data-card-footer] {
|
|
58
|
-
@apply text-
|
|
57
|
+
@apply text-ink-mute;
|
|
59
58
|
border-top: 1px solid rgba(255, 255, 255, 0.12);
|
|
60
59
|
}
|
|
61
60
|
|
|
@@ -86,8 +85,7 @@
|
|
|
86
85
|
|
|
87
86
|
/* Primary — tinted primary glass */
|
|
88
87
|
[data-style='frosted'] [data-card][data-variant='primary'] {
|
|
89
|
-
@apply text-on-primary border shadow-lg backdrop-blur-xl;
|
|
90
|
-
background: color-mix(in srgb, var(--color-primary-500, #6366f1) 45%, transparent);
|
|
88
|
+
@apply text-on-primary border shadow-lg backdrop-blur-xl bg-primary/45;
|
|
91
89
|
border-color: rgba(255, 255, 255, 0.22);
|
|
92
90
|
box-shadow:
|
|
93
91
|
inset 0 1px 0 rgba(255, 255, 255, 0.28),
|
|
@@ -105,8 +103,7 @@
|
|
|
105
103
|
|
|
106
104
|
/* Secondary — tinted secondary glass */
|
|
107
105
|
[data-style='frosted'] [data-card][data-variant='secondary'] {
|
|
108
|
-
@apply text-on-
|
|
109
|
-
background: color-mix(in srgb, var(--color-secondary-500, #ec4899) 45%, transparent);
|
|
106
|
+
@apply text-on-primary border shadow-lg backdrop-blur-xl bg-accent/45;
|
|
110
107
|
border-color: rgba(255, 255, 255, 0.22);
|
|
111
108
|
box-shadow:
|
|
112
109
|
inset 0 1px 0 rgba(255, 255, 255, 0.28),
|
|
@@ -119,12 +116,11 @@
|
|
|
119
116
|
}
|
|
120
117
|
|
|
121
118
|
[data-style='frosted'] [data-card][data-variant='secondary'] [data-card-body] {
|
|
122
|
-
@apply text-on-
|
|
119
|
+
@apply text-on-primary/80;
|
|
123
120
|
}
|
|
124
121
|
|
|
125
122
|
/* Tertiary — barely-there frosted glass */
|
|
126
123
|
[data-style='frosted'] [data-card][data-variant='tertiary'] {
|
|
127
|
-
@apply text-
|
|
128
|
-
background: color-mix(in srgb, var(--color-surface-z3, #888) 16%, transparent);
|
|
124
|
+
@apply text-ink-mute border backdrop-blur-xl bg-paper-mute/16;
|
|
129
125
|
border-color: rgba(255, 255, 255, 0.12);
|
|
130
126
|
}
|
package/src/frosted/chart.css
CHANGED
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
[data-style='frosted'] [data-chart-axis-line],
|
|
6
6
|
[data-style='frosted'] [data-chart-tick] line {
|
|
7
|
-
@apply stroke-
|
|
7
|
+
@apply stroke-paper-mute;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
[data-style='frosted'] [data-chart-tick-label] {
|
|
11
|
-
@apply fill-
|
|
11
|
+
@apply fill-ink-soft;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
[data-style='frosted'] [data-chart-grid-line] {
|
|
15
|
-
@apply stroke-
|
|
15
|
+
@apply stroke-paper-mute;
|
|
16
16
|
stroke-opacity: 0.5;
|
|
17
17
|
stroke-dasharray: 2 4;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
[data-style='frosted'] [data-chart-legend-label] {
|
|
21
|
-
@apply fill-
|
|
21
|
+
@apply fill-ink-soft;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
[data-style='frosted'] [data-chart-legend-item]:hover {
|
|
25
|
-
@apply text-
|
|
25
|
+
@apply text-ink-mute;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
[data-style='frosted'] [data-plot-element='bar'][data-dimmed],
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
[data-style='frosted'] [data-facet-title] {
|
|
37
|
-
@apply text-
|
|
37
|
+
@apply text-ink-soft;
|
|
38
38
|
}
|