@rokkit/themes 1.0.0-next.14 → 1.0.0-next.140
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/LICENSE +1 -1
- package/README.md +106 -9
- package/build.mjs +235 -0
- package/dist/base.css +4934 -0
- package/dist/glass.css +1400 -0
- package/dist/index.css +10991 -0
- package/dist/material.css +1435 -0
- package/dist/minimal.css +1389 -0
- package/dist/rokkit.css +1829 -0
- package/package.json +53 -52
- package/src/base/breadcrumbs.css +47 -0
- package/src/base/button.css +254 -0
- package/src/base/card.css +36 -0
- package/src/base/carousel.css +128 -0
- package/src/base/connector.css +92 -0
- package/src/base/display.css +91 -0
- package/src/base/floating-action.css +388 -0
- package/src/base/floating-navigation.css +405 -0
- package/src/base/graph-paper.css +83 -0
- package/src/base/grid.css +93 -0
- package/src/base/index.css +40 -0
- package/src/base/input.css +238 -0
- package/src/base/item.css +78 -0
- package/src/base/list.css +179 -0
- package/src/base/menu.css +274 -0
- package/src/base/pill.css +57 -0
- package/src/base/progress.css +34 -0
- package/src/base/range.css +121 -0
- package/src/base/rating.css +42 -0
- package/src/base/reveal.css +37 -0
- package/src/base/search-filter.css +132 -0
- package/src/base/select.css +411 -0
- package/src/base/shine.css +14 -0
- package/src/base/stepper.css +140 -0
- package/src/base/switch.css +152 -0
- package/src/base/table.css +159 -0
- package/src/base/tabs.css +171 -0
- package/src/base/tilt.css +14 -0
- package/src/base/timeline.css +84 -0
- package/src/base/toggle.css +138 -0
- package/src/base/toolbar.css +337 -0
- package/src/base/tree.css +235 -0
- package/src/base/upload-progress.css +155 -0
- package/src/base/upload-target.css +67 -0
- package/src/glass/button.css +153 -0
- package/src/glass/card.css +66 -0
- package/src/glass/floating-action.css +61 -0
- package/src/glass/floating-navigation.css +74 -0
- package/src/glass/index.css +23 -0
- package/src/glass/input.css +126 -0
- package/src/glass/list.css +122 -0
- package/src/glass/menu.css +92 -0
- package/src/glass/range.css +61 -0
- package/src/glass/search-filter.css +49 -0
- package/src/glass/select.css +178 -0
- package/src/glass/switch.css +28 -0
- package/src/glass/table.css +87 -0
- package/src/glass/tabs.css +58 -0
- package/src/glass/timeline.css +46 -0
- package/src/glass/toggle.css +48 -0
- package/src/glass/toolbar.css +84 -0
- package/src/glass/tree.css +110 -0
- package/src/index.css +18 -0
- package/src/index.js +25 -2
- package/src/material/button.css +157 -0
- package/src/material/card.css +61 -0
- package/src/material/floating-action.css +60 -0
- package/src/material/floating-navigation.css +74 -0
- package/src/material/index.css +23 -0
- package/src/material/input.css +159 -0
- package/src/material/list.css +126 -0
- package/src/material/menu.css +92 -0
- package/src/material/range.css +62 -0
- package/src/material/search-filter.css +49 -0
- package/src/material/select.css +170 -0
- package/src/material/switch.css +28 -0
- package/src/material/table.css +91 -0
- package/src/material/tabs.css +62 -0
- package/src/material/timeline.css +46 -0
- package/src/material/toggle.css +48 -0
- package/src/material/toolbar.css +85 -0
- package/src/material/tree.css +103 -0
- package/src/minimal/button.css +155 -0
- package/src/minimal/card.css +61 -0
- package/src/minimal/floating-action.css +59 -0
- package/src/minimal/floating-navigation.css +70 -0
- package/src/minimal/index.css +23 -0
- package/src/minimal/input.css +119 -0
- package/src/minimal/list.css +126 -0
- package/src/minimal/menu.css +88 -0
- package/src/minimal/range.css +61 -0
- package/src/minimal/search-filter.css +49 -0
- package/src/minimal/select.css +170 -0
- package/src/minimal/switch.css +28 -0
- package/src/minimal/table.css +89 -0
- package/src/minimal/tabs.css +68 -0
- package/src/minimal/timeline.css +45 -0
- package/src/minimal/toggle.css +48 -0
- package/src/minimal/toolbar.css +85 -0
- package/src/minimal/tree.css +106 -0
- package/src/palette.css +7 -0
- package/src/rokkit/button.css +254 -0
- package/src/rokkit/card.css +64 -0
- package/src/rokkit/connector.css +11 -0
- package/src/rokkit/floating-action.css +65 -0
- package/src/rokkit/floating-navigation.css +83 -0
- package/src/rokkit/grid.css +46 -0
- package/src/rokkit/index.css +27 -0
- package/src/rokkit/input.css +134 -0
- package/src/rokkit/list.css +132 -0
- package/src/rokkit/menu.css +93 -0
- package/src/rokkit/range.css +62 -0
- package/src/rokkit/search-filter.css +49 -0
- package/src/rokkit/select.css +190 -0
- package/src/rokkit/switch.css +28 -0
- package/src/rokkit/table.css +89 -0
- package/src/rokkit/tabs.css +87 -0
- package/src/rokkit/timeline.css +46 -0
- package/src/rokkit/toggle.css +48 -0
- package/src/rokkit/toolbar.css +84 -0
- package/src/rokkit/tree.css +149 -0
- package/src/rokkit/upload-progress.css +102 -0
- package/src/rokkit/upload-target.css +50 -0
- package/src/constants.js +0 -4
- package/src/utils.js +0 -88
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button - Rokkit Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Rich gradients and glowing borders.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
Default Style (filled)
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
/* Default variant */
|
|
12
|
+
[data-style='rokkit'] [data-button][data-style='default'][data-variant='default'],
|
|
13
|
+
[data-style='rokkit'] [data-button]:not([data-style])[data-variant='default'],
|
|
14
|
+
[data-style='rokkit'] [data-button][data-style='default']:not([data-variant]),
|
|
15
|
+
[data-style='rokkit'] [data-button]:not([data-style]):not([data-variant]) {
|
|
16
|
+
@apply from-surface-z3 to-surface-z2 border-surface-z4 text-surface-z8 border bg-gradient-to-b;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Primary variant */
|
|
20
|
+
[data-style='rokkit'] [data-button][data-style='default'][data-variant='primary'],
|
|
21
|
+
[data-style='rokkit'] [data-button]:not([data-style])[data-variant='primary'] {
|
|
22
|
+
@apply from-primary-z5 to-secondary-z5 border-primary-z5 text-on-primary border bg-gradient-to-b;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Secondary variant */
|
|
26
|
+
[data-style='rokkit'] [data-button][data-style='default'][data-variant='secondary'],
|
|
27
|
+
[data-style='rokkit'] [data-button]:not([data-style])[data-variant='secondary'] {
|
|
28
|
+
@apply from-secondary-z4 to-secondary-z3 border-secondary-z5 text-on-secondary border bg-gradient-to-b;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Danger variant */
|
|
32
|
+
[data-style='rokkit'] [data-button][data-style='default'][data-variant='danger'],
|
|
33
|
+
[data-style='rokkit'] [data-button]:not([data-style])[data-variant='danger'] {
|
|
34
|
+
@apply from-danger-z4 to-danger-z3 border-danger-z5 text-on-danger border bg-gradient-to-b;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* =============================================================================
|
|
38
|
+
Outline Style
|
|
39
|
+
============================================================================= */
|
|
40
|
+
|
|
41
|
+
[data-style='rokkit'] [data-button][data-style='outline'][data-variant='default'],
|
|
42
|
+
[data-style='rokkit'] [data-button][data-style='outline']:not([data-variant]) {
|
|
43
|
+
@apply border-surface-z4 text-surface-z7 border bg-transparent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-style='rokkit'] [data-button][data-style='outline'][data-variant='primary'] {
|
|
47
|
+
@apply border-primary-z4 text-primary-z6 border bg-transparent;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[data-style='rokkit'] [data-button][data-style='outline'][data-variant='secondary'] {
|
|
51
|
+
@apply border-secondary-z4 text-secondary-z6 border bg-transparent;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-style='rokkit'] [data-button][data-style='outline'][data-variant='danger'] {
|
|
55
|
+
@apply border-danger-z4 text-danger-z4 border bg-transparent;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* =============================================================================
|
|
59
|
+
Ghost Style
|
|
60
|
+
============================================================================= */
|
|
61
|
+
|
|
62
|
+
[data-style='rokkit'] [data-button][data-style='ghost'] {
|
|
63
|
+
@apply border-transparent bg-transparent;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[data-style='rokkit'] [data-button][data-style='ghost'][data-variant='default'],
|
|
67
|
+
[data-style='rokkit'] [data-button][data-style='ghost']:not([data-variant]) {
|
|
68
|
+
@apply text-surface-z7;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-style='rokkit'] [data-button][data-style='ghost'][data-variant='primary'] {
|
|
72
|
+
@apply text-primary-z6;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[data-style='rokkit'] [data-button][data-style='ghost'][data-variant='secondary'] {
|
|
76
|
+
@apply text-secondary-z6;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[data-style='rokkit'] [data-button][data-style='ghost'][data-variant='danger'] {
|
|
80
|
+
@apply text-danger-z4;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* =============================================================================
|
|
84
|
+
Gradient Style
|
|
85
|
+
============================================================================= */
|
|
86
|
+
|
|
87
|
+
[data-style='rokkit'] [data-button][data-style='gradient'][data-variant='default'],
|
|
88
|
+
[data-style='rokkit'] [data-button][data-style='gradient']:not([data-variant]) {
|
|
89
|
+
@apply from-surface-z4 to-surface-z2 text-surface-z10 bg-gradient-to-br;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-style='rokkit'] [data-button][data-style='gradient'][data-variant='primary'] {
|
|
93
|
+
@apply from-primary-z5 to-primary-z3 text-on-primary bg-gradient-to-br;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-style='rokkit'] [data-button][data-style='gradient'][data-variant='secondary'] {
|
|
97
|
+
@apply from-secondary-z5 to-secondary-z3 text-on-secondary bg-gradient-to-br;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[data-style='rokkit'] [data-button][data-style='gradient'][data-variant='danger'] {
|
|
101
|
+
@apply from-danger-z5 to-danger-z3 text-on-danger bg-gradient-to-br;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[data-style='rokkit']
|
|
105
|
+
[data-button][data-style='gradient']:hover:not(:disabled):not([data-disabled]) {
|
|
106
|
+
filter: brightness(1.1);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* =============================================================================
|
|
110
|
+
Link Style
|
|
111
|
+
============================================================================= */
|
|
112
|
+
|
|
113
|
+
[data-style='rokkit'] [data-button][data-style='link'][data-variant='default'],
|
|
114
|
+
[data-style='rokkit'] [data-button][data-style='link']:not([data-variant]) {
|
|
115
|
+
@apply text-surface-z7;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[data-style='rokkit'] [data-button][data-style='link'][data-variant='primary'] {
|
|
119
|
+
@apply text-primary-z6;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[data-style='rokkit'] [data-button][data-style='link'][data-variant='secondary'] {
|
|
123
|
+
@apply text-secondary-z6;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
[data-style='rokkit'] [data-button][data-style='link'][data-variant='danger'] {
|
|
127
|
+
@apply text-danger-z4;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
[data-style='rokkit'] [data-button][data-style='link']:hover:not(:disabled):not([data-disabled]) {
|
|
131
|
+
@apply text-primary-z7;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* =============================================================================
|
|
135
|
+
Hover States
|
|
136
|
+
============================================================================= */
|
|
137
|
+
|
|
138
|
+
/* Default style hover */
|
|
139
|
+
[data-style='rokkit'] [data-button][data-style='default']:hover:not(:disabled):not([data-disabled]),
|
|
140
|
+
[data-style='rokkit'] [data-button]:not([data-style]):hover:not(:disabled):not([data-disabled]) {
|
|
141
|
+
@apply opacity-90;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* Outline style hover */
|
|
145
|
+
[data-style='rokkit']
|
|
146
|
+
[data-button][data-style='outline']:hover:not(:disabled):not(
|
|
147
|
+
[data-disabled]
|
|
148
|
+
)[data-variant='default'],
|
|
149
|
+
[data-style='rokkit']
|
|
150
|
+
[data-button][data-style='outline']:hover:not(:disabled):not([data-disabled]):not(
|
|
151
|
+
[data-variant]
|
|
152
|
+
) {
|
|
153
|
+
@apply from-surface-z2 to-surface-z1 bg-gradient-to-b;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
[data-style='rokkit']
|
|
157
|
+
[data-button][data-style='outline']:hover:not(:disabled):not(
|
|
158
|
+
[data-disabled]
|
|
159
|
+
)[data-variant='primary'] {
|
|
160
|
+
@apply from-primary-z2 to-primary-z1 bg-gradient-to-b;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
[data-style='rokkit']
|
|
164
|
+
[data-button][data-style='outline']:hover:not(:disabled):not(
|
|
165
|
+
[data-disabled]
|
|
166
|
+
)[data-variant='secondary'] {
|
|
167
|
+
@apply from-secondary-z2 to-secondary-z1 bg-gradient-to-b;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
[data-style='rokkit']
|
|
171
|
+
[data-button][data-style='outline']:hover:not(:disabled):not(
|
|
172
|
+
[data-disabled]
|
|
173
|
+
)[data-variant='danger'] {
|
|
174
|
+
@apply from-danger-z2 to-danger-z1 bg-gradient-to-b;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* Ghost style hover */
|
|
178
|
+
[data-style='rokkit']
|
|
179
|
+
[data-button][data-style='ghost']:hover:not(:disabled):not(
|
|
180
|
+
[data-disabled]
|
|
181
|
+
)[data-variant='default'],
|
|
182
|
+
[data-style='rokkit']
|
|
183
|
+
[data-button][data-style='ghost']:hover:not(:disabled):not([data-disabled]):not([data-variant]) {
|
|
184
|
+
@apply bg-surface-z2;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
[data-style='rokkit']
|
|
188
|
+
[data-button][data-style='ghost']:hover:not(:disabled):not(
|
|
189
|
+
[data-disabled]
|
|
190
|
+
)[data-variant='primary'] {
|
|
191
|
+
@apply bg-primary-z1;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
[data-style='rokkit']
|
|
195
|
+
[data-button][data-style='ghost']:hover:not(:disabled):not(
|
|
196
|
+
[data-disabled]
|
|
197
|
+
)[data-variant='secondary'] {
|
|
198
|
+
@apply bg-secondary-z1;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
[data-style='rokkit']
|
|
202
|
+
[data-button][data-style='ghost']:hover:not(:disabled):not(
|
|
203
|
+
[data-disabled]
|
|
204
|
+
)[data-variant='danger'] {
|
|
205
|
+
@apply bg-danger-z1;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* =============================================================================
|
|
209
|
+
Active/Pressed State
|
|
210
|
+
============================================================================= */
|
|
211
|
+
|
|
212
|
+
[data-style='rokkit'] [data-button]:active:not(:disabled):not([data-disabled]) {
|
|
213
|
+
@apply scale-95;
|
|
214
|
+
animation: button-pop 0.25s ease-out;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* =============================================================================
|
|
218
|
+
Focus
|
|
219
|
+
============================================================================= */
|
|
220
|
+
|
|
221
|
+
[data-style='rokkit'] [data-button]:focus-visible {
|
|
222
|
+
@apply ring-primary-z4 ring-2 outline-none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* =============================================================================
|
|
226
|
+
Icon Colors
|
|
227
|
+
============================================================================= */
|
|
228
|
+
|
|
229
|
+
[data-style='rokkit'] [data-button] [data-item-icon],
|
|
230
|
+
[data-style='rokkit'] [data-button] [data-button-icon-right] {
|
|
231
|
+
color: inherit;
|
|
232
|
+
opacity: 0.8;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
[data-style='rokkit'] [data-button]:hover [data-item-icon],
|
|
236
|
+
[data-style='rokkit'] [data-button]:hover [data-button-icon-right] {
|
|
237
|
+
opacity: 1;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* =============================================================================
|
|
241
|
+
Button Group
|
|
242
|
+
============================================================================= */
|
|
243
|
+
|
|
244
|
+
[data-style='rokkit'] [data-button-group] {
|
|
245
|
+
@apply gap-px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
[data-style='rokkit'] [data-button-group] [data-button]:first-child {
|
|
249
|
+
@apply rounded-l-lg rounded-r-none;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
[data-style='rokkit'] [data-button-group] [data-button]:last-child {
|
|
253
|
+
@apply rounded-l-none rounded-r-lg;
|
|
254
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
* Card - Rokkit Theme Styles
|
|
2
|
+
*
|
|
3
|
+
* Rich gradients, elevated shadows, and vibrant surface styling.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* =============================================================================
|
|
7
|
+
Base Card Styles
|
|
8
|
+
============================================================================= */
|
|
9
|
+
|
|
10
|
+
[data-style='rokkit'] [data-card] {
|
|
11
|
+
@apply from-surface-z2 to-surface-z1 border-surface-z5 text-surface-z9 border bg-gradient-to-b shadow-lg;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Interactive cards (buttons) */
|
|
15
|
+
[data-style='rokkit'] [data-card][data-card-interactive] {
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
transition:
|
|
18
|
+
transform 0.2s ease,
|
|
19
|
+
box-shadow 0.2s ease;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-style='rokkit'] [data-card][data-card-interactive]:hover {
|
|
23
|
+
@apply shadow-xl;
|
|
24
|
+
transform: translateY(-2px);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-style='rokkit'] [data-card][data-card-interactive]:active {
|
|
28
|
+
@apply shadow-lg;
|
|
29
|
+
transform: translateY(0);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* =============================================================================
|
|
33
|
+
Card Sections
|
|
34
|
+
============================================================================= */
|
|
35
|
+
|
|
36
|
+
[data-style='rokkit'] [data-card-header] {
|
|
37
|
+
@apply border-surface-z4 border-b;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-style='rokkit'] [data-card-body] {
|
|
41
|
+
@apply text-surface-z8;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-style='rokkit'] [data-card-footer] {
|
|
45
|
+
@apply border-surface-z4 text-surface-z7 border-t;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* =============================================================================
|
|
49
|
+
Focus States
|
|
50
|
+
============================================================================= */
|
|
51
|
+
|
|
52
|
+
[data-style='rokkit'] [data-card][data-card-interactive]:focus-visible {
|
|
53
|
+
@apply ring-primary-z5 ring-2 outline-none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* =============================================================================
|
|
57
|
+
Disabled State
|
|
58
|
+
============================================================================= */
|
|
59
|
+
|
|
60
|
+
[data-style='rokkit'] [data-card][data-card-interactive][data-disabled],
|
|
61
|
+
[data-style='rokkit'] [data-card][data-card-interactive]:disabled {
|
|
62
|
+
@apply cursor-not-allowed opacity-50;
|
|
63
|
+
transform: none;
|
|
64
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connector - Rokkit Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Visual theming for tree line connectors.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
[data-style='rokkit'] [data-connector] [data-connector-v],
|
|
8
|
+
[data-style='rokkit'] [data-connector] [data-connector-h],
|
|
9
|
+
[data-style='rokkit'] [data-connector] [data-connector-corner] {
|
|
10
|
+
@apply border-surface-z3;
|
|
11
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FloatingAction - Rokkit Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Rich gradients and glowing borders.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
FAB Trigger Button
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='rokkit'] [data-fab-trigger] {
|
|
12
|
+
@apply from-primary-z5 to-secondary-z5 ring-primary-600 bg-gradient-to-b text-white shadow-lg ring-1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-style='rokkit'] [data-fab-trigger]:hover:not(:disabled) {
|
|
16
|
+
@apply from-primary-400 to-primary-500 ring-primary-500 bg-gradient-to-b shadow-xl ring-1;
|
|
17
|
+
transform: scale(1.05);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-style='rokkit'] [data-fab-trigger]:focus-visible {
|
|
21
|
+
@apply ring-primary-400 shadow-lg ring-3 outline-none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-style='rokkit'] [data-fab][data-open='true'] [data-fab-trigger] {
|
|
25
|
+
@apply from-surface-z4 to-surface-z3 text-surface-z10 ring-surface-z5 bg-gradient-to-b shadow-lg ring-1;
|
|
26
|
+
transform: rotate(45deg);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-style='rokkit'] [data-fab][data-open='true'] [data-fab-trigger]:hover:not(:disabled) {
|
|
30
|
+
@apply from-surface-z5 to-surface-z4 bg-gradient-to-b;
|
|
31
|
+
transform: rotate(45deg) scale(1.05);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* =============================================================================
|
|
35
|
+
FAB Items
|
|
36
|
+
============================================================================= */
|
|
37
|
+
|
|
38
|
+
[data-style='rokkit'] [data-fab-item] {
|
|
39
|
+
@apply from-surface-z1 to-surface-z0 text-surface-z8 ring-surface-z2 bg-gradient-to-b shadow-md ring-1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-style='rokkit'] [data-fab-item]:hover:not(:disabled) {
|
|
43
|
+
@apply from-surface-z2 to-surface-z1 text-surface-z10 ring-surface-z3 bg-gradient-to-b shadow-lg ring-1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-style='rokkit'] [data-fab-item]:focus-visible {
|
|
47
|
+
@apply ring-primary-400 shadow-md ring-2 outline-none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Item icon */
|
|
51
|
+
[data-style='rokkit'] [data-fab-item] [data-fab-item-icon] {
|
|
52
|
+
@apply text-primary-z6;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-style='rokkit'] [data-fab-item]:hover:not(:disabled) [data-fab-item-icon] {
|
|
56
|
+
@apply text-primary-z7;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* =============================================================================
|
|
60
|
+
Backdrop
|
|
61
|
+
============================================================================= */
|
|
62
|
+
|
|
63
|
+
[data-style='rokkit'] [data-fab-backdrop] {
|
|
64
|
+
background: rgba(0, 0, 0, 0.4);
|
|
65
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FloatingNavigation - Rokkit Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Rich gradients and glowing borders.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
Container
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='rokkit'] [data-floating-nav] {
|
|
12
|
+
@apply from-surface-z1 to-surface-z0 ring-surface-z3 bg-gradient-to-b shadow-xl ring-1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* =============================================================================
|
|
16
|
+
Header
|
|
17
|
+
============================================================================= */
|
|
18
|
+
|
|
19
|
+
[data-style='rokkit'] [data-floating-nav-title] {
|
|
20
|
+
@apply text-surface-z6;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-style='rokkit'] [data-floating-nav-pin] {
|
|
24
|
+
@apply text-surface-z6;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-style='rokkit'] [data-floating-nav-pin]:hover {
|
|
28
|
+
@apply text-primary-z6;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-style='rokkit'] [data-floating-nav-pin][aria-pressed='true'] {
|
|
32
|
+
@apply text-primary-z7;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* =============================================================================
|
|
36
|
+
Items
|
|
37
|
+
============================================================================= */
|
|
38
|
+
|
|
39
|
+
[data-style='rokkit'] [data-floating-nav-item] {
|
|
40
|
+
@apply text-surface-z7;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-style='rokkit'] [data-floating-nav-item]:hover {
|
|
44
|
+
@apply from-surface-z2 to-surface-z1 text-surface-z10 bg-gradient-to-b;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-style='rokkit'] [data-floating-nav-item][data-active] {
|
|
48
|
+
@apply from-primary-z5/10 to-primary-z5/5 text-primary-z7 bg-gradient-to-b;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-style='rokkit'] [data-floating-nav-item]:focus-visible {
|
|
52
|
+
@apply ring-primary-400 ring-2 outline-none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Icon */
|
|
56
|
+
[data-style='rokkit'] [data-floating-nav-icon] {
|
|
57
|
+
@apply text-surface-z6;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[data-style='rokkit'] [data-floating-nav-item]:hover [data-floating-nav-icon] {
|
|
61
|
+
@apply text-primary-z6;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-style='rokkit'] [data-floating-nav-item][data-active] [data-floating-nav-icon] {
|
|
65
|
+
@apply text-primary-z7;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Label */
|
|
69
|
+
[data-style='rokkit'] [data-floating-nav-label] {
|
|
70
|
+
@apply text-surface-z7;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-style='rokkit'] [data-floating-nav-item][data-active] [data-floating-nav-label] {
|
|
74
|
+
@apply text-primary-z7 font-medium;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* =============================================================================
|
|
78
|
+
Active Indicator
|
|
79
|
+
============================================================================= */
|
|
80
|
+
|
|
81
|
+
[data-style='rokkit'] [data-floating-nav-indicator] {
|
|
82
|
+
@apply from-primary-z5 to-primary-z6 bg-gradient-to-b shadow-sm;
|
|
83
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grid - Rokkit Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Tile borders, hover/focus effects, selection highlight.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
Grid Tiles
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='rokkit'] [data-grid] [data-grid-item] {
|
|
12
|
+
@apply border-surface-z3 text-surface-z7;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-style='rokkit'] [data-grid] [data-grid-item]:hover:not(:disabled):not([data-disabled]) {
|
|
16
|
+
@apply border-surface-z5 bg-surface-z2 text-surface-z9;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-style='rokkit'] [data-grid] [data-grid-item]:focus:not(:disabled):not([data-disabled]) {
|
|
20
|
+
@apply border-primary-z5 bg-surface-z2 text-surface-z9 outline-none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Active / selected tile */
|
|
24
|
+
[data-style='rokkit'] [data-grid] [data-grid-item][data-active] {
|
|
25
|
+
@apply border-primary-z5 bg-primary-z2 text-primary-z9;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-style='rokkit'] [data-grid] [data-grid-item][data-active]:hover:not(:disabled) {
|
|
29
|
+
@apply bg-primary-z3;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* =============================================================================
|
|
33
|
+
Item Elements
|
|
34
|
+
============================================================================= */
|
|
35
|
+
|
|
36
|
+
[data-style='rokkit'] [data-grid] [data-grid-item] [data-item-icon] {
|
|
37
|
+
@apply text-surface-z5;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-style='rokkit'] [data-grid] [data-grid-item]:hover:not(:disabled) [data-item-icon] {
|
|
41
|
+
@apply text-surface-z7;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-style='rokkit'] [data-grid] [data-grid-item][data-active] [data-item-icon] {
|
|
45
|
+
@apply text-primary-z6;
|
|
46
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @rokkit/themes - Rokkit Theme
|
|
3
|
+
*
|
|
4
|
+
* Rich gradients, glowing borders, and vibrant accents.
|
|
5
|
+
* Default theme — no wrapper needed.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@import './button.css';
|
|
9
|
+
@import './toolbar.css';
|
|
10
|
+
@import './tabs.css';
|
|
11
|
+
@import './toggle.css';
|
|
12
|
+
@import './switch.css';
|
|
13
|
+
@import './list.css';
|
|
14
|
+
@import './tree.css';
|
|
15
|
+
@import './connector.css';
|
|
16
|
+
@import './select.css';
|
|
17
|
+
@import './menu.css';
|
|
18
|
+
@import './floating-action.css';
|
|
19
|
+
@import './input.css';
|
|
20
|
+
@import './table.css';
|
|
21
|
+
@import './search-filter.css';
|
|
22
|
+
@import './range.css';
|
|
23
|
+
@import './timeline.css';
|
|
24
|
+
@import './floating-navigation.css';
|
|
25
|
+
@import './grid.css';
|
|
26
|
+
@import './upload-target.css';
|
|
27
|
+
@import './upload-progress.css';
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/* Rokkit Theme - Form field and input styles */
|
|
2
|
+
|
|
3
|
+
/* Field root: text color, spacing, rounded */
|
|
4
|
+
[data-style='rokkit'] [data-field-root] {
|
|
5
|
+
@apply text-surface-z9 gap-1 rounded-md transition-all;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Disabled state */
|
|
9
|
+
[data-style='rokkit'] [data-field-root][data-field-disabled] [data-input-root] {
|
|
10
|
+
@apply bg-surface-z3 text-surface-z6 cursor-not-allowed;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Labels */
|
|
14
|
+
[data-style='rokkit'] [data-field] > label {
|
|
15
|
+
@apply text-surface-z7;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-style='rokkit'] [data-form-root] label {
|
|
19
|
+
@apply text-surface-z7;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Info field value */
|
|
23
|
+
[data-style='rokkit'] [data-field-info] {
|
|
24
|
+
@apply text-primary-z6 font-medium;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Separator */
|
|
28
|
+
[data-style='rokkit'] [data-form-separator] {
|
|
29
|
+
@apply border-surface-z2;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Input root: gradient border wrapper */
|
|
33
|
+
[data-style='rokkit'] [data-input-root] {
|
|
34
|
+
@apply bg-surface-z4 flex items-center rounded-md p-px transition-all;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[data-style='rokkit'] [data-input-root]:focus-within {
|
|
38
|
+
@apply from-primary-500 to-secondary-500 border-transparent bg-gradient-to-r;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Standard inputs inside wrapper */
|
|
42
|
+
[data-style='rokkit']
|
|
43
|
+
[data-input-root]
|
|
44
|
+
input:not([type='checkbox'], [type='radio'], [type='color']),
|
|
45
|
+
[data-style='rokkit'] [data-input-root] select {
|
|
46
|
+
@apply bg-surface-z2 text-surface-z8 rounded-md border-none px-3 focus:outline-none;
|
|
47
|
+
font-size: 0.875rem;
|
|
48
|
+
height: 2.25rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-style='rokkit'] [data-input-root] textarea {
|
|
52
|
+
@apply bg-surface-z2 text-surface-z8 rounded-md border-none px-3 py-2 focus:outline-none;
|
|
53
|
+
font-size: 0.875rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Select inside input-root: remove trigger styles since input-root provides the border */
|
|
57
|
+
[data-style='rokkit'] [data-input-root] [data-select-trigger] {
|
|
58
|
+
@apply bg-surface-z2 text-surface-z8 rounded-md border-none shadow-none ring-0 focus:outline-none;
|
|
59
|
+
background-image: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Suppress standalone select open-state ring/border when inside input-root */
|
|
63
|
+
[data-style='rokkit'] [data-input-root] [data-select][data-open='true'] [data-select-trigger] {
|
|
64
|
+
@apply border-none shadow-none ring-0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-style='rokkit'] [data-input-root] input::placeholder,
|
|
68
|
+
[data-style='rokkit'] [data-input-root] textarea::placeholder {
|
|
69
|
+
@apply text-surface-z5;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Checkbox field */
|
|
73
|
+
[data-style='rokkit'] [data-field-type='checkbox'] [data-field] {
|
|
74
|
+
@apply flex items-center leading-loose;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Checkbox icon: theme-colored */
|
|
78
|
+
[data-style='rokkit'] [data-checkbox-icon] {
|
|
79
|
+
@apply text-surface-z5 cursor-pointer rounded text-lg transition-colors;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[data-style='rokkit'] [data-checkbox-icon]:focus-visible {
|
|
83
|
+
@apply outline-primary-z4 outline-2 outline-offset-2;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-style='rokkit']
|
|
87
|
+
[data-checkbox-root][data-variant='custom']:has(input:checked)
|
|
88
|
+
[data-checkbox-icon] {
|
|
89
|
+
@apply text-primary-z6;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-style='rokkit'] [data-field] textarea {
|
|
93
|
+
@apply resize-vertical min-h-20 py-2;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Color input */
|
|
97
|
+
[data-style='rokkit'] [data-field-type='color'] [data-input-root] {
|
|
98
|
+
@apply overflow-hidden;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[data-style='rokkit'] [data-field-type='color'] input[type='color'] {
|
|
102
|
+
@apply bg-surface-z2 flex min-h-11 flex-1 rounded-md focus:outline-none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Description and message */
|
|
106
|
+
[data-style='rokkit'] [data-description],
|
|
107
|
+
[data-style='rokkit'] [data-message] {
|
|
108
|
+
@apply text-surface-z6;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[data-style='rokkit'] [data-message] {
|
|
112
|
+
@apply rounded-md px-2 py-1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Validation state messages */
|
|
116
|
+
[data-style='rokkit'] [data-field-state='success'] [data-message] {
|
|
117
|
+
@apply bg-success text-success opacity-10;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[data-style='rokkit'] [data-field-state='warning'] [data-message] {
|
|
121
|
+
@apply bg-warning text-warning opacity-10;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[data-style='rokkit'] [data-field-state='info'] [data-message] {
|
|
125
|
+
@apply bg-info text-info opacity-10;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[data-style='rokkit'] [data-field-state='error'] [data-message] {
|
|
129
|
+
@apply bg-error text-error opacity-10;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
[data-style='rokkit'] [data-field-root][data-field-state='fail'] [data-input-root] {
|
|
133
|
+
@apply bg-error text-error opacity-10;
|
|
134
|
+
}
|