@rokkit/themes 1.1.7 → 1.1.9
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/package.json +3 -3
- package/src/base/index.css +1 -0
- package/src/base/palette-manager.css +244 -0
- package/src/base/pill.css +3 -2
- package/src/base/stepper.css +6 -0
- package/src/base/toggle.css +47 -0
- package/src/frosted/grid.css +26 -0
- package/src/frosted/index.css +6 -0
- package/src/frosted/palette-manager.css +97 -0
- package/src/frosted/pill.css +17 -0
- package/src/frosted/progress.css +13 -0
- package/src/frosted/rating.css +13 -0
- package/src/frosted/table.css +10 -0
- package/src/frosted/toggle.css +26 -0
- package/src/frosted/tooltip.css +7 -0
- package/src/material/grid.css +26 -0
- package/src/material/index.css +6 -0
- package/src/material/palette-manager.css +97 -0
- package/src/material/pill.css +17 -0
- package/src/material/progress.css +13 -0
- package/src/material/rating.css +13 -0
- package/src/material/table.css +10 -0
- package/src/material/toggle.css +26 -0
- package/src/material/tooltip.css +7 -0
- package/src/minimal/grid.css +26 -0
- package/src/minimal/index.css +6 -0
- package/src/minimal/palette-manager.css +97 -0
- package/src/minimal/pill.css +17 -0
- package/src/minimal/progress.css +13 -0
- package/src/minimal/rating.css +13 -0
- package/src/minimal/table.css +10 -0
- package/src/minimal/toggle.css +26 -0
- package/src/minimal/tooltip.css +7 -0
- package/src/rokkit/index.css +4 -0
- package/src/rokkit/palette-manager.css +97 -0
- package/src/rokkit/pill.css +17 -0
- package/src/rokkit/progress.css +13 -0
- package/src/rokkit/rating.css +13 -0
- package/src/rokkit/table.css +10 -0
- package/src/rokkit/toggle.css +26 -0
- package/src/zen-sumi/grid.css +26 -0
- package/src/zen-sumi/index.css +6 -0
- package/src/zen-sumi/palette-manager.css +97 -0
- package/src/zen-sumi/pill.css +17 -0
- package/src/zen-sumi/progress.css +13 -0
- package/src/zen-sumi/rating.css +13 -0
- package/src/zen-sumi/table.css +10 -0
- package/src/zen-sumi/toggle.css +26 -0
- package/src/zen-sumi/tooltip.css +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokkit/themes",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Theme styles for @rokkit/ui components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
"build": "bun run build.mjs"
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
|
-
"@rokkit/core": "1.1.
|
|
106
|
+
"@rokkit/core": "1.1.9"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@rokkit/unocss": "1.1.
|
|
109
|
+
"@rokkit/unocss": "1.1.9",
|
|
110
110
|
"magic-string": "^0.30.21",
|
|
111
111
|
"unocss": "^66.5.1"
|
|
112
112
|
},
|
package/src/base/index.css
CHANGED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PaletteManager — Base STRUCTURAL styles only.
|
|
3
|
+
*
|
|
4
|
+
* Headless base: this file owns layout/structure (display, flex/grid, gap,
|
|
5
|
+
* padding, sizing, border-width/style, border-radius, font metrics, cursor,
|
|
6
|
+
* transition, overflow, etc.). All COLOR (background/text/border-color, focus
|
|
7
|
+
* ring color, placeholder color) lives in the per-style theme layers
|
|
8
|
+
* (rokkit / minimal / material / frosted / zen-sumi) via @apply token classes.
|
|
9
|
+
*
|
|
10
|
+
* The shade-swatch background uses the component-supplied inline
|
|
11
|
+
* `--preset-color` variable — that is component-driven, not a theme token, so
|
|
12
|
+
* it stays here.
|
|
13
|
+
*
|
|
14
|
+
* Parts (from PaletteManager.svelte):
|
|
15
|
+
* data-palette-manager / data-compact — root container
|
|
16
|
+
* data-palette-presets / -label / -list — preset section
|
|
17
|
+
* data-palette-preset / -swatch / -name — preset card (--preset-color)
|
|
18
|
+
* data-palette-custom / -label / -list / -item — saved custom palettes
|
|
19
|
+
* data-palette-editor — role rows wrapper
|
|
20
|
+
* data-palette-role / -label / -controls — single role row
|
|
21
|
+
* data-palette-color-select / -color-input — color pickers
|
|
22
|
+
* data-palette-hex-toggle — toggle preset/hex entry
|
|
23
|
+
* data-palette-shades / -shade (data-shade) — generated shade ramp
|
|
24
|
+
* data-palette-actions / -save / -apply — footer buttons
|
|
25
|
+
* data-palette-*-icon — glyph spans
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/* =============================================================================
|
|
29
|
+
Container
|
|
30
|
+
============================================================================= */
|
|
31
|
+
|
|
32
|
+
[data-palette-manager] {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
gap: 1rem;
|
|
36
|
+
padding: 1rem;
|
|
37
|
+
border-width: 1px;
|
|
38
|
+
border-style: solid;
|
|
39
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
40
|
+
font-size: 0.875rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-palette-manager][data-compact] {
|
|
44
|
+
gap: 0.625rem;
|
|
45
|
+
padding: 0.625rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* =============================================================================
|
|
49
|
+
Section labels (presets / custom)
|
|
50
|
+
============================================================================= */
|
|
51
|
+
|
|
52
|
+
[data-palette-presets-label],
|
|
53
|
+
[data-palette-custom-label] {
|
|
54
|
+
display: block;
|
|
55
|
+
margin-bottom: 0.5rem;
|
|
56
|
+
font-size: 0.75rem;
|
|
57
|
+
font-weight: 600;
|
|
58
|
+
text-transform: uppercase;
|
|
59
|
+
letter-spacing: 0.05em;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* =============================================================================
|
|
63
|
+
Presets
|
|
64
|
+
============================================================================= */
|
|
65
|
+
|
|
66
|
+
[data-palette-presets-list] {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-wrap: wrap;
|
|
69
|
+
gap: 0.5rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-palette-preset] {
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: 0.5rem;
|
|
76
|
+
padding: 0.375rem 0.625rem;
|
|
77
|
+
border-width: 1px;
|
|
78
|
+
border-style: solid;
|
|
79
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
80
|
+
font-size: 0.8125rem;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
transition:
|
|
83
|
+
background-color 150ms ease,
|
|
84
|
+
border-color 150ms ease,
|
|
85
|
+
color 150ms ease;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-palette-preset-swatch] {
|
|
89
|
+
width: 1rem;
|
|
90
|
+
height: 1rem;
|
|
91
|
+
flex-shrink: 0;
|
|
92
|
+
border-radius: 9999px;
|
|
93
|
+
border-width: 1px;
|
|
94
|
+
border-style: solid;
|
|
95
|
+
background-color: var(--preset-color, var(--primary));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-palette-preset-name] {
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* =============================================================================
|
|
103
|
+
Custom palettes
|
|
104
|
+
============================================================================= */
|
|
105
|
+
|
|
106
|
+
[data-palette-custom-list] {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-wrap: wrap;
|
|
109
|
+
gap: 0.5rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[data-palette-custom-item] {
|
|
113
|
+
padding: 0.375rem 0.625rem;
|
|
114
|
+
border-width: 1px;
|
|
115
|
+
border-style: solid;
|
|
116
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
117
|
+
font-size: 0.8125rem;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
transition:
|
|
120
|
+
background-color 150ms ease,
|
|
121
|
+
border-color 150ms ease,
|
|
122
|
+
color 150ms ease;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* =============================================================================
|
|
126
|
+
Editor / role rows
|
|
127
|
+
============================================================================= */
|
|
128
|
+
|
|
129
|
+
[data-palette-editor] {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
gap: 0.625rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
[data-palette-role] {
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
gap: 0.75rem;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[data-palette-role-label] {
|
|
142
|
+
flex: 0 0 6rem;
|
|
143
|
+
font-size: 0.8125rem;
|
|
144
|
+
font-weight: 500;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
[data-palette-role-controls] {
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
gap: 0.375rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* =============================================================================
|
|
154
|
+
Color pickers
|
|
155
|
+
============================================================================= */
|
|
156
|
+
|
|
157
|
+
[data-palette-color-select],
|
|
158
|
+
[data-palette-color-input] {
|
|
159
|
+
padding: 0.3125rem 0.5rem;
|
|
160
|
+
border-width: 1px;
|
|
161
|
+
border-style: solid;
|
|
162
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
163
|
+
font-size: 0.8125rem;
|
|
164
|
+
line-height: 1.2;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
[data-palette-color-select]:focus-visible,
|
|
168
|
+
[data-palette-color-input]:focus-visible {
|
|
169
|
+
outline-width: 2px;
|
|
170
|
+
outline-style: solid;
|
|
171
|
+
outline-offset: 1px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
[data-palette-hex-toggle] {
|
|
175
|
+
display: inline-flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
justify-content: center;
|
|
178
|
+
width: 1.75rem;
|
|
179
|
+
height: 1.75rem;
|
|
180
|
+
padding: 0;
|
|
181
|
+
border-width: 1px;
|
|
182
|
+
border-style: solid;
|
|
183
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
transition:
|
|
186
|
+
background-color 150ms ease,
|
|
187
|
+
color 150ms ease;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* =============================================================================
|
|
191
|
+
Shade ramp
|
|
192
|
+
============================================================================= */
|
|
193
|
+
|
|
194
|
+
[data-palette-shades] {
|
|
195
|
+
display: inline-flex;
|
|
196
|
+
margin-left: auto;
|
|
197
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
198
|
+
overflow: hidden;
|
|
199
|
+
border-width: 1px;
|
|
200
|
+
border-style: solid;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
[data-palette-shade] {
|
|
204
|
+
width: 1rem;
|
|
205
|
+
height: 1rem;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* =============================================================================
|
|
209
|
+
Actions
|
|
210
|
+
============================================================================= */
|
|
211
|
+
|
|
212
|
+
[data-palette-actions] {
|
|
213
|
+
display: flex;
|
|
214
|
+
flex-wrap: wrap;
|
|
215
|
+
gap: 0.5rem;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
[data-palette-save],
|
|
219
|
+
[data-palette-apply] {
|
|
220
|
+
display: inline-flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: 0.375rem;
|
|
223
|
+
padding: 0.4375rem 0.875rem;
|
|
224
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
225
|
+
font-size: 0.8125rem;
|
|
226
|
+
font-weight: 500;
|
|
227
|
+
cursor: pointer;
|
|
228
|
+
transition:
|
|
229
|
+
background-color 150ms ease,
|
|
230
|
+
border-color 150ms ease,
|
|
231
|
+
color 150ms ease;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* Save = secondary / outlined */
|
|
235
|
+
[data-palette-save] {
|
|
236
|
+
border-width: 1px;
|
|
237
|
+
border-style: solid;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* Apply = primary action */
|
|
241
|
+
[data-palette-apply] {
|
|
242
|
+
border-width: 1px;
|
|
243
|
+
border-style: solid;
|
|
244
|
+
}
|
package/src/base/pill.css
CHANGED
|
@@ -35,9 +35,10 @@
|
|
|
35
35
|
border-radius: 9999px;
|
|
36
36
|
cursor: pointer;
|
|
37
37
|
background: transparent;
|
|
38
|
-
color: inherit;
|
|
39
38
|
opacity: 0.6;
|
|
40
|
-
transition:
|
|
39
|
+
transition:
|
|
40
|
+
opacity 0.15s ease,
|
|
41
|
+
color 0.15s ease;
|
|
41
42
|
font-size: 0.75rem;
|
|
42
43
|
flex-shrink: 0;
|
|
43
44
|
}
|
package/src/base/stepper.css
CHANGED
|
@@ -52,6 +52,12 @@
|
|
|
52
52
|
color: var(--paper);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/* Check glyph inside a completed circle follows the circle's color
|
|
56
|
+
(var(--paper) on a --primary background → correct contrast). */
|
|
57
|
+
[data-stepper-check-icon] {
|
|
58
|
+
color: inherit;
|
|
59
|
+
}
|
|
60
|
+
|
|
55
61
|
[data-stepper-step][data-active] [data-stepper-circle] {
|
|
56
62
|
border-color: var(--primary);
|
|
57
63
|
color: var(--primary);
|
package/src/base/toggle.css
CHANGED
|
@@ -136,3 +136,50 @@
|
|
|
136
136
|
overflow: hidden;
|
|
137
137
|
text-overflow: ellipsis;
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
/* =============================================================================
|
|
141
|
+
Button Variant — single cycling control
|
|
142
|
+
The `button` variant renders one <button data-toggle-variant="button"> with
|
|
143
|
+
the icon as a direct child (no [data-toggle-option]). Give it real control
|
|
144
|
+
structure + sizing here; color lives in the style themes (variant-agnostic).
|
|
145
|
+
============================================================================= */
|
|
146
|
+
|
|
147
|
+
[data-toggle][data-toggle-variant='button'] {
|
|
148
|
+
justify-content: center;
|
|
149
|
+
padding: 0;
|
|
150
|
+
border: 1px solid transparent;
|
|
151
|
+
border-radius: 0.375rem;
|
|
152
|
+
font-weight: 500;
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
transition: all 150ms ease;
|
|
155
|
+
user-select: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
[data-toggle][data-toggle-variant='button']:focus,
|
|
159
|
+
[data-toggle][data-toggle-variant='button']:focus-visible {
|
|
160
|
+
outline: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
[data-toggle][data-toggle-variant='button']:disabled,
|
|
164
|
+
[data-toggle][data-toggle-variant='button'][data-toggle-disabled='true'] {
|
|
165
|
+
pointer-events: none;
|
|
166
|
+
opacity: 0.5;
|
|
167
|
+
cursor: not-allowed;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* Square control sized to match the option height scale */
|
|
171
|
+
[data-toggle][data-toggle-variant='button'][data-toggle-size='sm'] {
|
|
172
|
+
height: 1.5rem;
|
|
173
|
+
min-width: 1.5rem;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
[data-toggle][data-toggle-variant='button'][data-toggle-size='md'],
|
|
177
|
+
[data-toggle][data-toggle-variant='button']:not([data-toggle-size]) {
|
|
178
|
+
height: 2rem;
|
|
179
|
+
min-width: 2rem;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
[data-toggle][data-toggle-variant='button'][data-toggle-size='lg'] {
|
|
183
|
+
height: 2.5rem;
|
|
184
|
+
min-width: 2.5rem;
|
|
185
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grid - Glass Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Tile borders, hover/focus effects, selection highlight.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
[data-style='frosted'] [data-grid-item] {
|
|
8
|
+
@apply border-paper-edge text-ink-mute;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-style='frosted'] [data-grid-item]:hover:not(:disabled):not([data-disabled]),
|
|
12
|
+
[data-style='frosted'] [data-grid-item]:focus:not(:disabled):not([data-disabled]) {
|
|
13
|
+
@apply border-ink-soft bg-paper-mute text-ink;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-style='frosted'] [data-grid-item][data-active] {
|
|
17
|
+
@apply border-primary text-primary;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-style='frosted'] [data-grid-item] [data-item-icon] {
|
|
21
|
+
@apply text-ink-soft;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-style='frosted'] [data-grid-item][data-active] [data-item-icon] {
|
|
25
|
+
@apply text-primary;
|
|
26
|
+
}
|
package/src/frosted/index.css
CHANGED
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
@import './dropdown.css';
|
|
19
19
|
@import './floating-action.css';
|
|
20
20
|
@import './table.css';
|
|
21
|
+
@import './grid.css';
|
|
22
|
+
@import './tooltip.css';
|
|
21
23
|
@import './search-filter.css';
|
|
22
24
|
@import './range.css';
|
|
23
25
|
@import './timeline.css';
|
|
@@ -31,3 +33,7 @@
|
|
|
31
33
|
@import './step-indicator.css';
|
|
32
34
|
@import './chart.css';
|
|
33
35
|
@import './swatch.css';
|
|
36
|
+
@import './palette-manager.css';
|
|
37
|
+
@import './progress.css';
|
|
38
|
+
@import './pill.css';
|
|
39
|
+
@import './rating.css';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PaletteManager — Glass Theme
|
|
3
|
+
* Color layer for the headless base structure in base/palette-manager.css.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* Container */
|
|
7
|
+
[data-style='frosted'] [data-palette-manager] {
|
|
8
|
+
@apply bg-paper text-ink border-paper-edge;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Section labels */
|
|
12
|
+
[data-style='frosted'] [data-palette-presets-label],
|
|
13
|
+
[data-style='frosted'] [data-palette-custom-label] {
|
|
14
|
+
@apply text-ink-mute;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Presets */
|
|
18
|
+
[data-style='frosted'] [data-palette-preset] {
|
|
19
|
+
@apply bg-paper-soft text-ink border-paper-edge;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-style='frosted'] [data-palette-preset]:hover {
|
|
23
|
+
@apply bg-paper-mute;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[data-style='frosted'] [data-palette-preset][data-active] {
|
|
27
|
+
@apply text-primary border-primary;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-style='frosted'] [data-palette-preset-swatch] {
|
|
31
|
+
@apply border-paper-edge;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Custom palettes */
|
|
35
|
+
[data-style='frosted'] [data-palette-custom-item] {
|
|
36
|
+
@apply bg-paper-soft text-ink-mute border-paper-edge;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-style='frosted'] [data-palette-custom-item]:hover {
|
|
40
|
+
@apply bg-paper-mute text-ink;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-style='frosted'] [data-palette-custom-item][data-active] {
|
|
44
|
+
@apply text-primary border-primary;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Role rows */
|
|
48
|
+
[data-style='frosted'] [data-palette-role-label] {
|
|
49
|
+
@apply text-ink;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Color pickers */
|
|
53
|
+
[data-style='frosted'] [data-palette-color-select],
|
|
54
|
+
[data-style='frosted'] [data-palette-color-input] {
|
|
55
|
+
@apply bg-paper-soft text-ink border-paper-edge;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[data-style='frosted'] [data-palette-color-input]::placeholder {
|
|
59
|
+
@apply text-ink-faint;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-style='frosted'] [data-palette-color-select]:focus-visible,
|
|
63
|
+
[data-style='frosted'] [data-palette-color-input]:focus-visible {
|
|
64
|
+
@apply outline-focus-ring border-focus-ring;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Hex toggle */
|
|
68
|
+
[data-style='frosted'] [data-palette-hex-toggle] {
|
|
69
|
+
@apply bg-paper-soft text-ink-mute border-paper-edge;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-style='frosted'] [data-palette-hex-toggle]:hover {
|
|
73
|
+
@apply bg-paper-mute text-ink;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Shade ramp */
|
|
77
|
+
[data-style='frosted'] [data-palette-shades] {
|
|
78
|
+
@apply border-paper-edge;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Actions — Save = secondary / outlined */
|
|
82
|
+
[data-style='frosted'] [data-palette-save] {
|
|
83
|
+
@apply bg-paper-soft text-ink-mute border-paper-edge;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-style='frosted'] [data-palette-save]:hover {
|
|
87
|
+
@apply bg-paper-mute text-ink;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Actions — Apply = primary */
|
|
91
|
+
[data-style='frosted'] [data-palette-apply] {
|
|
92
|
+
@apply bg-primary text-on-primary border-primary;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
[data-style='frosted'] [data-palette-apply]:hover {
|
|
96
|
+
@apply bg-accent border-accent;
|
|
97
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pill - Frosted Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Muted surface chip with soft remove affordance.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
[data-style='frosted'] [data-pill] {
|
|
8
|
+
@apply bg-paper-mute text-ink;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-style='frosted'] [data-pill-remove] {
|
|
12
|
+
@apply text-ink-soft;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-style='frosted'] [data-pill-remove]:hover:not(:disabled) {
|
|
16
|
+
@apply text-ink;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rating - Frosted Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Faint empty icons, warning-toned filled icons.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
[data-style='frosted'] [data-rating-icon] {
|
|
8
|
+
@apply text-ink-faint;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-style='frosted'] [data-rating-item][data-filled] [data-rating-icon] {
|
|
12
|
+
@apply text-warning;
|
|
13
|
+
}
|
package/src/frosted/table.css
CHANGED
|
@@ -58,6 +58,16 @@
|
|
|
58
58
|
@apply text-primary bg-primary/40;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/* Keyboard-focused row + synthesised TreeTable group row */
|
|
62
|
+
[data-style='frosted'] [data-table] tr[data-table-row][data-focused] {
|
|
63
|
+
@apply bg-paper-mute;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[data-style='frosted'] [data-table] tr[data-table-row][data-group] {
|
|
67
|
+
@apply bg-paper-soft text-ink;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
}
|
|
70
|
+
|
|
61
71
|
/* =============================================================================
|
|
62
72
|
Striped
|
|
63
73
|
============================================================================= */
|
package/src/frosted/toggle.css
CHANGED
|
@@ -46,3 +46,29 @@
|
|
|
46
46
|
[data-style='frosted'] [data-toggle-option][data-selected='true'] [data-toggle-icon] {
|
|
47
47
|
@apply text-primary;
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
/* =============================================================================
|
|
51
|
+
Button Variant — single cycling control (variant-agnostic color)
|
|
52
|
+
Higher specificity than the [data-toggle] container rule above, so it
|
|
53
|
+
neutralises the group-pill chrome and gives the single button the same
|
|
54
|
+
flipping icon treatment an unselected option gets.
|
|
55
|
+
============================================================================= */
|
|
56
|
+
|
|
57
|
+
[data-style='frosted'] [data-toggle][data-toggle-variant='button'] {
|
|
58
|
+
@apply border-transparent bg-transparent text-ink-soft;
|
|
59
|
+
background-image: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-style='frosted'] [data-toggle][data-toggle-variant='button']:hover:not(:disabled):not([data-toggle-disabled='true']),
|
|
63
|
+
[data-style='frosted'] [data-toggle][data-toggle-variant='button']:focus-visible:not(:disabled):not([data-toggle-disabled='true']) {
|
|
64
|
+
@apply bg-paper-mute text-ink-mute;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-style='frosted'] [data-toggle][data-toggle-variant='button'] [data-toggle-icon] {
|
|
68
|
+
@apply text-ink-soft;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-style='frosted'] [data-toggle][data-toggle-variant='button']:hover:not(:disabled) [data-toggle-icon],
|
|
72
|
+
[data-style='frosted'] [data-toggle][data-toggle-variant='button']:focus-visible:not(:disabled) [data-toggle-icon] {
|
|
73
|
+
@apply text-ink-mute;
|
|
74
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grid - Material Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Tile borders, hover/focus effects, selection highlight.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
[data-style='material'] [data-grid-item] {
|
|
8
|
+
@apply border-paper-edge text-ink-mute;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-style='material'] [data-grid-item]:hover:not(:disabled):not([data-disabled]),
|
|
12
|
+
[data-style='material'] [data-grid-item]:focus:not(:disabled):not([data-disabled]) {
|
|
13
|
+
@apply border-ink-soft bg-paper-mute text-ink;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-style='material'] [data-grid-item][data-active] {
|
|
17
|
+
@apply border-primary text-primary;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-style='material'] [data-grid-item] [data-item-icon] {
|
|
21
|
+
@apply text-ink-soft;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-style='material'] [data-grid-item][data-active] [data-item-icon] {
|
|
25
|
+
@apply text-primary;
|
|
26
|
+
}
|
package/src/material/index.css
CHANGED
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
@import './dropdown.css';
|
|
19
19
|
@import './floating-action.css';
|
|
20
20
|
@import './table.css';
|
|
21
|
+
@import './grid.css';
|
|
22
|
+
@import './tooltip.css';
|
|
21
23
|
@import './search-filter.css';
|
|
22
24
|
@import './range.css';
|
|
23
25
|
@import './timeline.css';
|
|
@@ -31,3 +33,7 @@
|
|
|
31
33
|
@import './step-indicator.css';
|
|
32
34
|
@import './chart.css';
|
|
33
35
|
@import './swatch.css';
|
|
36
|
+
@import './palette-manager.css';
|
|
37
|
+
@import './progress.css';
|
|
38
|
+
@import './pill.css';
|
|
39
|
+
@import './rating.css';
|