@rokkit/themes 1.0.0-next.13 → 1.0.0-next.131
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 +118 -9
- package/build.mjs +237 -0
- package/package.json +45 -52
- package/src/base/breadcrumbs.css +47 -0
- package/src/base/button.css +247 -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 +381 -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 +40 -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 +202 -0
- package/src/base/upload-progress.css +155 -0
- package/src/base/upload-target.css +67 -0
- package/src/glass/button.css +152 -0
- package/src/glass/card.css +63 -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 +124 -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 +104 -0
- package/src/index.css +18 -0
- package/src/index.js +25 -2
- package/src/material/button.css +153 -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 +143 -0
- package/src/material/list.css +122 -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 +87 -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 +84 -0
- package/src/material/tree.css +100 -0
- package/src/minimal/button.css +152 -0
- package/src/minimal/card.css +59 -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 +115 -0
- package/src/minimal/list.css +122 -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 +168 -0
- package/src/minimal/switch.css +28 -0
- package/src/minimal/table.css +87 -0
- package/src/minimal/tabs.css +66 -0
- package/src/minimal/timeline.css +45 -0
- package/src/minimal/toggle.css +48 -0
- package/src/minimal/toolbar.css +84 -0
- package/src/minimal/tree.css +100 -0
- package/src/palette.css +7 -0
- package/src/rokkit/button.css +225 -0
- package/src/rokkit/card.css +62 -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 +130 -0
- package/src/rokkit/list.css +127 -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 +185 -0
- package/src/rokkit/switch.css +28 -0
- package/src/rokkit/table.css +87 -0
- package/src/rokkit/tabs.css +82 -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 +123 -0
- package/src/rokkit/upload-progress.css +102 -0
- package/src/rokkit/upload-target.css +50 -0
- package/LICENSE +0 -21
- package/src/constants.js +0 -4
- package/src/utils.js +0 -88
|
@@ -0,0 +1,225 @@
|
|
|
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'] [data-button][data-style='gradient']:hover:not(:disabled):not([data-disabled]) {
|
|
105
|
+
filter: brightness(1.1);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* =============================================================================
|
|
109
|
+
Link Style
|
|
110
|
+
============================================================================= */
|
|
111
|
+
|
|
112
|
+
[data-style='rokkit'] [data-button][data-style='link'][data-variant='default'],
|
|
113
|
+
[data-style='rokkit'] [data-button][data-style='link']:not([data-variant]) {
|
|
114
|
+
@apply text-surface-z7;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[data-style='rokkit'] [data-button][data-style='link'][data-variant='primary'] {
|
|
118
|
+
@apply text-primary-z6;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-style='rokkit'] [data-button][data-style='link'][data-variant='secondary'] {
|
|
122
|
+
@apply text-secondary-z6;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[data-style='rokkit'] [data-button][data-style='link'][data-variant='danger'] {
|
|
126
|
+
@apply text-danger-z4;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
[data-style='rokkit'] [data-button][data-style='link']:hover:not(:disabled):not([data-disabled]) {
|
|
130
|
+
@apply text-primary-z7;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* =============================================================================
|
|
134
|
+
Hover States
|
|
135
|
+
============================================================================= */
|
|
136
|
+
|
|
137
|
+
/* Default style hover */
|
|
138
|
+
[data-style='rokkit'] [data-button][data-style='default']:hover:not(:disabled):not([data-disabled]),
|
|
139
|
+
[data-style='rokkit'] [data-button]:not([data-style]):hover:not(:disabled):not([data-disabled]) {
|
|
140
|
+
@apply opacity-90;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Outline style hover */
|
|
144
|
+
[data-style='rokkit'] [data-button][data-style='outline']:hover:not(:disabled):not([data-disabled])[data-variant='default'],
|
|
145
|
+
[data-style='rokkit'] [data-button][data-style='outline']:hover:not(:disabled):not([data-disabled]):not([data-variant]) {
|
|
146
|
+
@apply from-surface-z2 to-surface-z1 bg-gradient-to-b;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
[data-style='rokkit'] [data-button][data-style='outline']:hover:not(:disabled):not([data-disabled])[data-variant='primary'] {
|
|
150
|
+
@apply from-primary-z2 to-primary-z1 bg-gradient-to-b;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
[data-style='rokkit'] [data-button][data-style='outline']:hover:not(:disabled):not([data-disabled])[data-variant='secondary'] {
|
|
154
|
+
@apply from-secondary-z2 to-secondary-z1 bg-gradient-to-b;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[data-style='rokkit'] [data-button][data-style='outline']:hover:not(:disabled):not([data-disabled])[data-variant='danger'] {
|
|
158
|
+
@apply from-danger-z2 to-danger-z1 bg-gradient-to-b;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Ghost style hover */
|
|
162
|
+
[data-style='rokkit'] [data-button][data-style='ghost']:hover:not(:disabled):not([data-disabled])[data-variant='default'],
|
|
163
|
+
[data-style='rokkit'] [data-button][data-style='ghost']:hover:not(:disabled):not([data-disabled]):not([data-variant]) {
|
|
164
|
+
@apply bg-surface-z2;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
[data-style='rokkit'] [data-button][data-style='ghost']:hover:not(:disabled):not([data-disabled])[data-variant='primary'] {
|
|
168
|
+
@apply bg-primary-z1;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
[data-style='rokkit'] [data-button][data-style='ghost']:hover:not(:disabled):not([data-disabled])[data-variant='secondary'] {
|
|
172
|
+
@apply bg-secondary-z1;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
[data-style='rokkit'] [data-button][data-style='ghost']:hover:not(:disabled):not([data-disabled])[data-variant='danger'] {
|
|
176
|
+
@apply bg-danger-z1;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* =============================================================================
|
|
180
|
+
Active/Pressed State
|
|
181
|
+
============================================================================= */
|
|
182
|
+
|
|
183
|
+
[data-style='rokkit'] [data-button]:active:not(:disabled):not([data-disabled]) {
|
|
184
|
+
@apply scale-95;
|
|
185
|
+
animation: button-pop 0.25s ease-out;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* =============================================================================
|
|
189
|
+
Focus
|
|
190
|
+
============================================================================= */
|
|
191
|
+
|
|
192
|
+
[data-style='rokkit'] [data-button]:focus-visible {
|
|
193
|
+
@apply ring-primary-z4 ring-2 outline-none;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* =============================================================================
|
|
197
|
+
Icon Colors
|
|
198
|
+
============================================================================= */
|
|
199
|
+
|
|
200
|
+
[data-style='rokkit'] [data-button] [data-item-icon],
|
|
201
|
+
[data-style='rokkit'] [data-button] [data-button-icon-right] {
|
|
202
|
+
color: inherit;
|
|
203
|
+
opacity: 0.8;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
[data-style='rokkit'] [data-button]:hover [data-item-icon],
|
|
207
|
+
[data-style='rokkit'] [data-button]:hover [data-button-icon-right] {
|
|
208
|
+
opacity: 1;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* =============================================================================
|
|
212
|
+
Button Group
|
|
213
|
+
============================================================================= */
|
|
214
|
+
|
|
215
|
+
[data-style='rokkit'] [data-button-group] {
|
|
216
|
+
@apply gap-px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
[data-style='rokkit'] [data-button-group] [data-button]:first-child {
|
|
220
|
+
@apply rounded-l-lg rounded-r-none;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
[data-style='rokkit'] [data-button-group] [data-button]:last-child {
|
|
224
|
+
@apply rounded-l-none rounded-r-lg;
|
|
225
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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: transform 0.2s ease, box-shadow 0.2s ease;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-style='rokkit'] [data-card][data-card-interactive]:hover {
|
|
21
|
+
@apply shadow-xl;
|
|
22
|
+
transform: translateY(-2px);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-style='rokkit'] [data-card][data-card-interactive]:active {
|
|
26
|
+
@apply shadow-lg;
|
|
27
|
+
transform: translateY(0);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* =============================================================================
|
|
31
|
+
Card Sections
|
|
32
|
+
============================================================================= */
|
|
33
|
+
|
|
34
|
+
[data-style='rokkit'] [data-card-header] {
|
|
35
|
+
@apply border-surface-z4 border-b;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-style='rokkit'] [data-card-body] {
|
|
39
|
+
@apply text-surface-z8;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-style='rokkit'] [data-card-footer] {
|
|
43
|
+
@apply border-surface-z4 border-t text-surface-z7;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* =============================================================================
|
|
47
|
+
Focus States
|
|
48
|
+
============================================================================= */
|
|
49
|
+
|
|
50
|
+
[data-style='rokkit'] [data-card][data-card-interactive]:focus-visible {
|
|
51
|
+
@apply ring-primary-z5 ring-2 outline-none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* =============================================================================
|
|
55
|
+
Disabled State
|
|
56
|
+
============================================================================= */
|
|
57
|
+
|
|
58
|
+
[data-style='rokkit'] [data-card][data-card-interactive][data-disabled],
|
|
59
|
+
[data-style='rokkit'] [data-card][data-card-interactive]:disabled {
|
|
60
|
+
@apply opacity-50 cursor-not-allowed;
|
|
61
|
+
transform: none;
|
|
62
|
+
}
|
|
@@ -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 bg-gradient-to-b text-surface-z10;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-style='rokkit'] [data-floating-nav-item][data-active] {
|
|
48
|
+
@apply from-primary-z5/10 to-primary-z5/5 bg-gradient-to-b text-primary-z7;
|
|
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,130 @@
|
|
|
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'] [data-input-root] input:not([type='checkbox'], [type='radio'], [type='color']),
|
|
43
|
+
[data-style='rokkit'] [data-input-root] select {
|
|
44
|
+
@apply bg-surface-z2 text-surface-z8 rounded-md border-none px-3 focus:outline-none;
|
|
45
|
+
font-size: 0.875rem;
|
|
46
|
+
height: 2.25rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-style='rokkit'] [data-input-root] textarea {
|
|
50
|
+
@apply bg-surface-z2 text-surface-z8 rounded-md border-none px-3 py-2 focus:outline-none;
|
|
51
|
+
font-size: 0.875rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Select inside input-root: remove trigger styles since input-root provides the border */
|
|
55
|
+
[data-style='rokkit'] [data-input-root] [data-select-trigger] {
|
|
56
|
+
@apply border-none bg-surface-z2 text-surface-z8 rounded-md shadow-none ring-0 focus:outline-none;
|
|
57
|
+
background-image: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Suppress standalone select open-state ring/border when inside input-root */
|
|
61
|
+
[data-style='rokkit'] [data-input-root] [data-select][data-open='true'] [data-select-trigger] {
|
|
62
|
+
@apply border-none ring-0 shadow-none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-style='rokkit'] [data-input-root] input::placeholder,
|
|
66
|
+
[data-style='rokkit'] [data-input-root] textarea::placeholder {
|
|
67
|
+
@apply text-surface-z5;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Checkbox field */
|
|
71
|
+
[data-style='rokkit'] [data-field-type='checkbox'] [data-field] {
|
|
72
|
+
@apply flex items-center leading-loose;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Checkbox icon: theme-colored */
|
|
76
|
+
[data-style='rokkit'] [data-checkbox-icon] {
|
|
77
|
+
@apply text-surface-z5 cursor-pointer transition-colors text-lg rounded;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-style='rokkit'] [data-checkbox-icon]:focus-visible {
|
|
81
|
+
@apply outline-2 outline-primary-z4 outline-offset-2;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[data-style='rokkit'] [data-checkbox-root][data-variant='custom']:has(input:checked) [data-checkbox-icon] {
|
|
85
|
+
@apply text-primary-z6;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-style='rokkit'] [data-field] textarea {
|
|
89
|
+
@apply resize-vertical min-h-20 py-2;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Color input */
|
|
93
|
+
[data-style='rokkit'] [data-field-type='color'] [data-input-root] {
|
|
94
|
+
@apply overflow-hidden;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-style='rokkit'] [data-field-type='color'] input[type='color'] {
|
|
98
|
+
@apply bg-surface-z2 flex min-h-11 flex-1 rounded-md focus:outline-none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Description and message */
|
|
102
|
+
[data-style='rokkit'] [data-description],
|
|
103
|
+
[data-style='rokkit'] [data-message] {
|
|
104
|
+
@apply text-surface-z6;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[data-style='rokkit'] [data-message] {
|
|
108
|
+
@apply rounded-md px-2 py-1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Validation state messages */
|
|
112
|
+
[data-style='rokkit'] [data-field-state='success'] [data-message] {
|
|
113
|
+
@apply bg-success text-success opacity-10;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[data-style='rokkit'] [data-field-state='warning'] [data-message] {
|
|
117
|
+
@apply bg-warning text-warning opacity-10;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[data-style='rokkit'] [data-field-state='info'] [data-message] {
|
|
121
|
+
@apply bg-info text-info opacity-10;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[data-style='rokkit'] [data-field-state='error'] [data-message] {
|
|
125
|
+
@apply bg-error text-error opacity-10;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[data-style='rokkit'] [data-field-root][data-field-state='fail'] [data-input-root] {
|
|
129
|
+
@apply bg-error text-error opacity-10;
|
|
130
|
+
}
|