@rokkit/themes 1.0.0-next.44 → 1.0.0-next.46

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.
@@ -0,0 +1,299 @@
1
+ /* List styles */
2
+ .rokkit virtual-list-contents {
3
+ @apply flex flex-col;
4
+ @apply gap-1px bg-skin-inset;
5
+ }
6
+
7
+ .rokkit list {
8
+ @apply gap-1px bg-skin-subtle;
9
+ }
10
+
11
+ .rokkit list > item,
12
+ .rokkit virtual-list-contents > virtual-list-item,
13
+ .rokkit accordion div summary {
14
+ @apply leading-10 px-4 bg-skin-base text-skin-800 min-h-10;
15
+ }
16
+ .rokkit accordion > div > summary {
17
+ @apply rounded pr-2 bg-gradient from-skin-subtle to-skin-muted;
18
+ }
19
+
20
+ /* Remove default details marker from summary */
21
+ .rokkit accordion > div > summary::-webkit-details-marker {
22
+ display: none;
23
+ }
24
+
25
+ /* Nested List and Tree styles */
26
+ .rokkit :not(accordion > div) > list {
27
+ @apply rounded shadow border border-skin-400 overflow-y-scroll;
28
+ }
29
+ .rokkit :not(accordion > div) > list item {
30
+ @apply last:rounded-b first:rounded-t;
31
+ }
32
+
33
+ .rokkit accordion list item {
34
+ @apply last:rounded-b gap-2;
35
+ }
36
+ .rokkit accordion list item > a {
37
+ @apply gap-2;
38
+ }
39
+ .rokkit accordion list {
40
+ @apply rounded-b;
41
+ }
42
+
43
+ .rokkit accordion .is-expanded list {
44
+ @apply -mt-10 pt-10 rounded-t;
45
+ }
46
+ /* Styles for 'tabs' class */
47
+ .rokkit tabs {
48
+ @apply border-b-2 border-skin-muted px-1 gap-1;
49
+ }
50
+ .rokkit tabs.is-below {
51
+ @apply border-b-0 border-t-2;
52
+ }
53
+ .rokkit tabs:focus-within {
54
+ @apply outline-none border-secondary;
55
+ }
56
+ .rokkit tabs .tab {
57
+ @apply leading-9 px-3 flex-shrink-0 items-center cursor-pointer rounded-t bg-skin-base gap-3;
58
+ }
59
+ .rokkit tabs.is-below .tab {
60
+ @apply rounded-b rounded-t-none;
61
+ }
62
+ .rokkit tabs.is-centered {
63
+ @apply justify-center;
64
+ }
65
+ .rokkit tabs .tab[aria-selected='true'] {
66
+ @apply bg-skin-muted;
67
+ }
68
+ .rokkit tabs:focus-within .tab[aria-selected='true'] {
69
+ @apply bg-gradient-to-b from-primary-500 to-secondary text-skin-50;
70
+ }
71
+ .rokkit tabs.is-below:focus-within .tab[aria-selected='true'] {
72
+ @apply bg-gradient-to-t;
73
+ }
74
+
75
+ /* Styles for 'button' and 'button-group' classes */
76
+ .rokkit button,
77
+ .rokkit .button {
78
+ @apply flex min-h-9 items-center rounded-full px-6 uppercase bg-skin-muted text-skin-700 cursor-pointer;
79
+ animation: button-pop var(--animation-btn, 0.25s) ease-out;
80
+ }
81
+
82
+ .rokkit button.is-primary,
83
+ .rokkit .button.is-primary {
84
+ @apply bg-gradient-to-r from-primary to-secondary text-skin-subtle;
85
+ }
86
+
87
+ .rokkit button-group {
88
+ @apply flex items-center justify-center m-auto py-1 gap-1px;
89
+ }
90
+
91
+ .rokkit button-group button {
92
+ @apply flex px-2 pt-0.5 uppercase rounded-none focus:outline-none;
93
+ }
94
+ .rokkit button-group button:first-child {
95
+ @apply rounded-l-full pl-3;
96
+ }
97
+ .rokkit button-group button:last-child {
98
+ @apply rounded-r-full pr-3;
99
+ }
100
+
101
+ .rokkit button-group button.active {
102
+ @apply bg-gradient-to-r from-primary to-secondary text-skin-subtle;
103
+ }
104
+
105
+ /* Input and Drop-down styles */
106
+ .rokkit input-select,
107
+ .rokkit drop-down > button {
108
+ @apply border border-skin-muted rounded;
109
+ }
110
+
111
+ .rokkit drop-down > button {
112
+ @apply bg-skin-base p-0;
113
+ }
114
+ .rokkit drop-down > button > span {
115
+ @apply rounded py-0;
116
+ }
117
+ .rokkit drop-down > button > span > * {
118
+ @apply h-full items-center;
119
+ }
120
+
121
+ .rokkit input-select:focus-within,
122
+ .rokkit drop-down:focus-within > button {
123
+ @apply outline-none border-none p-2px;
124
+ @apply bg-gradient-to-r from-primary-500 to-secondary text-skin-50;
125
+ }
126
+ .rokkit input-select:focus-within > selected-item,
127
+ .rokkit drop-down:focus-within > button > span {
128
+ @apply bg-skin-muted outline-none;
129
+ }
130
+
131
+ /* Hover and Icon styles */
132
+ .rokkit input-select:hover > icon,
133
+ .rokkit drop-down:hover > icon {
134
+ @apply border-skin-500;
135
+ }
136
+
137
+ /* Scroll styles */
138
+ .rokkit input-select scroll,
139
+ .rokkit input-select virtual-list {
140
+ @apply my-1 shadow-lg rounded;
141
+ }
142
+
143
+ .rokkit input-select > selected-item > items {
144
+ @apply flex-grow flex-wrap gap-2;
145
+ }
146
+
147
+ /* Accordion styles */
148
+ .rokkit accordion {
149
+ @apply flex-grow gap-1 overflow-y-scroll;
150
+ }
151
+ .rokkit accordion > div {
152
+ @apply rounded shadow relative;
153
+ }
154
+
155
+ /* Nested List and Node styles */
156
+ .rokkit nested-list {
157
+ @apply text-skin-800;
158
+ }
159
+ .rokkit nested-list node {
160
+ @apply px-2 h-8;
161
+ }
162
+
163
+ /* Tree styles */
164
+ .rokkit tree {
165
+ @apply rounded;
166
+ }
167
+
168
+ /* Focus styles for Nested List, Tree, and Accordion */
169
+ .rokkit nested-list,
170
+ .rokkit nested-list:focus-within,
171
+ .rokkit tree:focus-within {
172
+ @apply outline-none rounded;
173
+ }
174
+
175
+ .rokkit accordion,
176
+ .rokkit list,
177
+ .rokkit virtual-list-viewport {
178
+ @apply rounded;
179
+ }
180
+
181
+ /* Remove outline from focused elements */
182
+ .rokkit accordion:focus-within list,
183
+ .rokkit drop-down:focus-within list,
184
+ .rokkit input-select:focus-within list,
185
+ .rokkit input-select:focus-within virtual-list-viewport {
186
+ @apply outline-none focus:outline-none;
187
+ }
188
+
189
+ /* Focus and Hover styles for List and Node */
190
+ .rokkit list:focus {
191
+ @apply outline outline-secondary;
192
+ }
193
+ /* .rokkit list item.is-hovering, */
194
+ /* .rokkit virtual-list item.is-hovering, */
195
+ .rokkit list item:hover,
196
+ .rokkit virtual-list-contents virtual-list-item:hover,
197
+ .rokkit node:hover {
198
+ @apply bg-skin-inset;
199
+ }
200
+
201
+ /* Selected and Hover styles for List and Node */
202
+ .rokkit list item[aria-selected='true'] > a {
203
+ @apply text-skin-50;
204
+ }
205
+ .rokkit virtual-list-item[aria-current='true'] {
206
+ @apply bg-skin-inset text-secondary;
207
+ }
208
+
209
+ .rokkit list item[aria-selected='true'],
210
+ .rokkit virtual-list-contents virtual-list-item[aria-selected='true'],
211
+ .rokkit node[aria-selected='true'] {
212
+ @apply bg-gradient-to-r from-skin-subtle to-skin-subtle text-skin-800;
213
+ }
214
+
215
+ /* Expanded and Selected styles for Accordion */
216
+ .rokkit accordion .is-expanded summary {
217
+ @apply border-b border-skin-muted rounded-b-none sticky top-0 z-1;
218
+ }
219
+
220
+ .rokkit accordion [aria-selected='true'] summary {
221
+ @apply bg-skin-subtle;
222
+ }
223
+ .rokkit accordion:focus-within [aria-selected='true'] summary {
224
+ @apply outline-none bg-gradient-to-r from-primary-500 to-secondary text-skin-50;
225
+ }
226
+
227
+ /* Border styles for Accordion */
228
+ .rokkit accordion > div {
229
+ @apply border border-skin-muted;
230
+ }
231
+
232
+ /* Folder Tree styles */
233
+ .rokkit .folder-tree {
234
+ @apply bg-skin-inset h-full;
235
+ }
236
+ .rokkit .folder-tree nested-list {
237
+ @apply bg-skin-inset h-full;
238
+ }
239
+ .rokkit node > item {
240
+ @apply px-1;
241
+ }
242
+ .rokkit node > span {
243
+ @apply flex-shrink-0;
244
+ }
245
+ .rokkit node > span > i {
246
+ @apply border-skin-muted;
247
+ }
248
+ .rokkit node > icon {
249
+ @apply text-skin-muted;
250
+ }
251
+
252
+ /* Toggle Switch styles */
253
+ .rokkit toggle-switch {
254
+ @apply min-w-12 min-h-6 rounded-full mx-auto;
255
+ @apply bg-skin-subtle border border-skin-muted;
256
+ @apply leading-loose p-2px;
257
+ }
258
+ .rokkit toggle-switch:focus-within {
259
+ @apply outline outline-secondary-500;
260
+ }
261
+ .rokkit toggle-switch item {
262
+ @apply items-center justify-center px-3 gap-1 py-0 leading-loose;
263
+ @apply min-w-6 min-h-6 rounded-full cursor-pointer;
264
+ }
265
+ .rokkit toggle-switch item > icon > i {
266
+ @apply text-lg;
267
+ }
268
+
269
+ .rokkit toggle-switch item[aria-selected='true'] {
270
+ @apply bg-gradient-to-r from-skin-muted to-skin-muted;
271
+ }
272
+
273
+ .rokkit toggle-switch.compact > item {
274
+ @apply px-0 gap-0;
275
+ }
276
+ .rokkit virtual-list-viewport {
277
+ @apply border box-content border-skin-inset;
278
+ }
279
+ .rokkit virtual-list-viewport:focus-within {
280
+ @apply outline-none;
281
+ }
282
+ .rokkit virtual-list {
283
+ @apply p-2px from-transparent to-transparent rounded border border-skin-muted;
284
+ }
285
+ .rokkit virtual-list:focus-within {
286
+ @apply bg-gradient-to-r from-primary-500 to-secondary;
287
+ }
288
+
289
+ /* Focus and Hover styles for Toggle Switch, List, Tree, and Nested List */
290
+ .rokkit toggle-switch:focus-within item[aria-selected='true'],
291
+ .rokkit list:focus-within item.is-selected,
292
+ .rokkit
293
+ virtual-list-viewport:focus-within
294
+ virtual-list-item[aria-selected='true'],
295
+ .rokkit tree:focus-within node[aria-selected='true'],
296
+ .rokkit nested-list:focus-within node[aria-selected='true'] {
297
+ @apply bg-gradient-to-r from-primary-500 to-secondary text-skin-50;
298
+ @apply hover:from-secondary-500 hover:to-primary-500 hover:text-skin-50;
299
+ }
package/src/rokkit.css ADDED
@@ -0,0 +1,6 @@
1
+ @import './base.css';
2
+
3
+ @import './rokkit/atoms.css';
4
+ @import './rokkit/molecules.css';
5
+ @import './rokkit/organisms.css';
6
+ @import './rokkit/layout.css';