@rokkit/themes 1.0.0-next.100

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.
Files changed (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +13 -0
  3. package/package.json +54 -0
  4. package/src/base/alert.css +30 -0
  5. package/src/base/animation.css +22 -0
  6. package/src/base/atoms.css +58 -0
  7. package/src/base/carousel.css +18 -0
  8. package/src/base/core.css +92 -0
  9. package/src/base/layout.css +65 -0
  10. package/src/base/molecules.css +126 -0
  11. package/src/base/organisms.css +26 -0
  12. package/src/base/scrollbar.css +16 -0
  13. package/src/base/table.css +49 -0
  14. package/src/base/tree.css +18 -0
  15. package/src/base.css +11 -0
  16. package/src/constants.js +8 -0
  17. package/src/index.js +3 -0
  18. package/src/markdown.css +955 -0
  19. package/src/material/base.css +12 -0
  20. package/src/material/form.css +30 -0
  21. package/src/material/input.css +65 -0
  22. package/src/material/list.css +96 -0
  23. package/src/material.css +9 -0
  24. package/src/minimal/base.css +8 -0
  25. package/src/minimal/form.css +87 -0
  26. package/src/minimal/input.css +154 -0
  27. package/src/minimal/list.css +136 -0
  28. package/src/minimal/tabs.css +44 -0
  29. package/src/minimal.css +11 -0
  30. package/src/mixins/mixins.scss +66 -0
  31. package/src/mixins/palette.scss +48 -0
  32. package/src/palette.css +25 -0
  33. package/src/prism.css +102 -0
  34. package/src/rokkit/alert.css +4 -0
  35. package/src/rokkit/atoms.css +69 -0
  36. package/src/rokkit/carousel.css +19 -0
  37. package/src/rokkit/input.css +36 -0
  38. package/src/rokkit/layout.css +17 -0
  39. package/src/rokkit/molecules.css +119 -0
  40. package/src/rokkit/organisms.css +315 -0
  41. package/src/rokkit/table.css +57 -0
  42. package/src/rokkit/toggle.css +18 -0
  43. package/src/rokkit.css +11 -0
@@ -0,0 +1,315 @@
1
+ /* List styles */
2
+ .rokkit virtual-list-contents {
3
+ @apply flex flex-col;
4
+ @apply gap-1px bg-neutral-inset;
5
+ }
6
+
7
+ .rokkit list {
8
+ @apply gap-1px bg-neutral-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-neutral-base text-neutral-800 min-h-10;
15
+ }
16
+ .rokkit accordion > div > summary {
17
+ @apply rounded pr-2 bg-gradient from-neutral-subtle to-neutral-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-neutral-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-neutral-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-neutral-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-neutral-muted;
67
+ }
68
+ .rokkit tabs:focus-within .tab[aria-selected='true'] {
69
+ @apply bg-gradient-to-b from-primary to-secondary text-white;
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 gap-3 uppercase bg-neutral-muted text-neutral-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-white;
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-white;
103
+ }
104
+
105
+ /* Input and Drop-down styles */
106
+ .rokkit input-select,
107
+ .rokkit drop-down > button {
108
+ @apply rounded;
109
+ /* @apply border border-neutral-muted; */
110
+ }
111
+
112
+ .rokkit drop-down > button {
113
+ @apply bg-neutral-base p-0;
114
+ }
115
+ .rokkit drop-down > button > span {
116
+ @apply rounded py-0;
117
+ }
118
+ .rokkit drop-down > button > span > * {
119
+ @apply h-full items-center;
120
+ }
121
+
122
+ .rokkit :not(field) > input-select {
123
+ @apply bg-neutral-base border border-neutral-muted p-2px;
124
+ }
125
+ .rokkit :not(field) > input-select > selected-item {
126
+ @apply bg-neutral-subtle;
127
+ }
128
+ .rokkit :not(field) > input-select:focus-within,
129
+ .rokkit drop-down:focus-within > button {
130
+ /* @apply p-2px; */
131
+ @apply outline-none border-none;
132
+ @apply bg-gradient-to-r from-primary to-secondary text-white;
133
+ }
134
+ /* .rokkit :not(field) > input-select:focus-within > selected-item,
135
+ .rokkit drop-down:focus-within > button > span {
136
+ @apply bg-neutral-muted outline-none min-h-10;
137
+ } */
138
+
139
+ /* Hover and Icon styles */
140
+ /* .rokkit input-select:hover > icon,
141
+ .rokkit drop-down:hover > icon {
142
+ @apply border-neutral;
143
+ } */
144
+
145
+ /* Scroll styles */
146
+ .rokkit input-select scroll,
147
+ .rokkit input-select virtual-list {
148
+ @apply my-1 shadow-lg rounded;
149
+ }
150
+
151
+ /* .rokkit input-select > selected-item > items {
152
+ @apply flex-grow flex-wrap gap-2;
153
+ } */
154
+
155
+ /* Accordion styles */
156
+ .rokkit accordion {
157
+ @apply flex-grow gap-1 overflow-y-scroll;
158
+ }
159
+ .rokkit accordion > div {
160
+ @apply rounded shadow relative;
161
+ }
162
+
163
+ /* Nested List and Node styles */
164
+ .rokkit nested-list {
165
+ @apply text-neutral-800;
166
+ }
167
+ .rokkit nested-list node > div {
168
+ @apply px-2 h-8;
169
+ }
170
+
171
+ /* Tree styles */
172
+ .rokkit tree {
173
+ @apply rounded;
174
+ }
175
+
176
+ /* Focus styles for Nested List, Tree, and Accordion */
177
+ .rokkit nested-list,
178
+ .rokkit nested-list:focus-within,
179
+ .rokkit tree:focus-within {
180
+ @apply outline-none rounded;
181
+ }
182
+
183
+ .rokkit accordion,
184
+ .rokkit list,
185
+ .rokkit virtual-list-viewport {
186
+ @apply rounded;
187
+ }
188
+
189
+ /* Remove outline from focused elements */
190
+ .rokkit accordion:focus-within list,
191
+ .rokkit drop-down:focus-within list,
192
+ .rokkit input-select:focus-within list,
193
+ .rokkit input-select:focus-within virtual-list-viewport {
194
+ @apply outline-none focus:outline-none;
195
+ }
196
+
197
+ /* Focus and Hover styles for List and Node */
198
+ .rokkit list:focus {
199
+ @apply outline outline-secondary;
200
+ }
201
+ /* .rokkit list item.is-hovering, */
202
+ /* .rokkit virtual-list item.is-hovering, */
203
+ .rokkit list item:hover,
204
+ .rokkit virtual-list-contents virtual-list-item:hover,
205
+ .rokkit node > div:hover {
206
+ @apply bg-neutral-subtle;
207
+ }
208
+
209
+ /* Selected and Hover styles for List and Node */
210
+ .rokkit list item[aria-selected='true'] > a {
211
+ @apply text-white;
212
+ }
213
+ .rokkit virtual-list-item[aria-current='true'] {
214
+ @apply bg-neutral-inset text-secondary;
215
+ }
216
+
217
+ /* Expanded and Selected styles for Accordion */
218
+ .rokkit accordion .is-expanded summary {
219
+ @apply border-b border-neutral-muted rounded-b-none sticky top-0 z-1;
220
+ }
221
+
222
+ .rokkit accordion [aria-selected='true'] summary {
223
+ @apply bg-neutral-subtle;
224
+ }
225
+ .rokkit accordion:focus-within [aria-selected='true'] summary {
226
+ @apply outline-none bg-gradient-to-r from-primary to-secondary text-white;
227
+ }
228
+
229
+ /* Border styles for Accordion */
230
+ .rokkit accordion > div {
231
+ @apply border border-neutral-muted;
232
+ }
233
+
234
+ /* Folder Tree styles */
235
+ .rokkit .folder-tree {
236
+ @apply bg-neutral-inset h-full;
237
+ }
238
+ .rokkit .folder-tree nested-list {
239
+ @apply bg-neutral-inset h-full;
240
+ }
241
+ .rokkit node > div > item {
242
+ @apply px-1;
243
+ }
244
+ .rokkit node > div > span {
245
+ @apply flex-shrink-0;
246
+ }
247
+ .rokkit node > div > span > i {
248
+ @apply border-neutral-muted;
249
+ }
250
+ .rokkit node > div > icon > i {
251
+ @apply text-neutral-elevated;
252
+ }
253
+
254
+ /* Toggle Switch styles */
255
+ .rokkit toggle-switch {
256
+ @apply min-w-12 rounded-full mx-auto;
257
+ @apply bg-neutral-subtle border border-neutral-muted;
258
+ @apply leading-loose p-2px;
259
+ }
260
+ .rokkit toggle-switch:focus-within {
261
+ @apply outline outline-secondary;
262
+ }
263
+ .rokkit toggle-switch item {
264
+ @apply items-center justify-center px-3 gap-1 py-0 leading-loose;
265
+ @apply min-w-6 min-h-6 rounded-full cursor-pointer;
266
+ }
267
+ .rokkit toggle-switch item > icon > i {
268
+ @apply text-lg;
269
+ }
270
+
271
+ .rokkit toggle-switch item[aria-selected='true'] {
272
+ @apply bg-gradient-to-r from-neutral-muted to-neutral-muted;
273
+ }
274
+
275
+ .rokkit toggle-switch.compact > item {
276
+ @apply px-0 gap-0;
277
+ }
278
+ .rokkit virtual-list-viewport {
279
+ @apply border box-content border-neutral-inset;
280
+ }
281
+ .rokkit virtual-list-viewport:focus-within {
282
+ @apply outline-none;
283
+ }
284
+ .rokkit virtual-list {
285
+ @apply p-2px from-transparent to-transparent rounded border border-neutral-muted;
286
+ }
287
+ .rokkit virtual-list:focus-within {
288
+ @apply bg-gradient-to-r from-primary to-secondary;
289
+ }
290
+
291
+ .rokkit list item[aria-selected='true'],
292
+ .rokkit virtual-list-contents virtual-list-item[aria-selected='true'],
293
+ .rokkit node[aria-selected='true'] > div {
294
+ @apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle text-neutral-800;
295
+ }
296
+ /* Focus and Hover styles for Toggle Switch, List, Tree, and Nested List */
297
+ .rokkit toggle-switch:focus-within item[aria-selected='true'],
298
+ .rokkit list:focus-within item[aria-selected='true'],
299
+ .rokkit virtual-list-viewport:focus-within virtual-list-item[aria-selected='true'],
300
+ .rokkit tree:focus-within node[aria-selected='true'] > div,
301
+ .rokkit nested-list:focus-within node[aria-selected='true'] > div {
302
+ @apply bg-gradient-to-r from-primary to-secondary text-white;
303
+ @apply hover:from-secondary hover:to-primary;
304
+ }
305
+
306
+ .rokkit toggle-switch[aria-disabled='true'] {
307
+ @apply bg-neutral-muted text-neutral-500 cursor-not-allowed;
308
+ }
309
+ .rokkit input-select > selected-item > items {
310
+ @apply flex-grow flex-wrap gap-2;
311
+ }
312
+
313
+ .rokkit container:focus-within {
314
+ @apply outline-none;
315
+ }
@@ -0,0 +1,57 @@
1
+ th,
2
+ td {
3
+ @apply px-5 py-3;
4
+ }
5
+ tr {
6
+ @apply gap-1px;
7
+ }
8
+ th {
9
+ @apply whitespace-nowrap;
10
+ }
11
+ th cell,
12
+ td cell {
13
+ @apply flex w-full items-center gap-2;
14
+ }
15
+ th[data-sortable='true'] {
16
+ @apply cursor-pointer;
17
+ }
18
+ th[data-sortable='true']:hover,
19
+ th[data-sortable='true']:hover icon {
20
+ @apply text-primary-700;
21
+ }
22
+
23
+ table {
24
+ @apply w-full text-sm text-left rtl:text-right text-neutral-700;
25
+ }
26
+ table > thead {
27
+ @apply table-header-group text-xs uppercase bg-neutral-400;
28
+ }
29
+ table > caption {
30
+ @apply table-caption p-5 text-sm font-normal text-left rtl:text-right bg-neutral-subtle text-neutral-600;
31
+ }
32
+
33
+ table > tbody > tr {
34
+ @apply table-row border-b border-neutral-base bg-neutral-subtle;
35
+ }
36
+ table.striped > tbody > tr:nth-child(even) {
37
+ @apply bg-neutral-inset;
38
+ }
39
+ table > tfoot {
40
+ @apply table-footer-group;
41
+ }
42
+ table > tfoot > tr {
43
+ @apply table-row font-semibold text-neutral-800;
44
+ }
45
+
46
+ table-wrapper {
47
+ @apply shadow-md sm:rounded-lg;
48
+ }
49
+
50
+ td cell.cell-type-integer p,
51
+ td cell.cell-type-number p {
52
+ @apply text-right w-full;
53
+ }
54
+
55
+ td cell item {
56
+ @apply flex w-full;
57
+ }
@@ -0,0 +1,18 @@
1
+ .rokkit toggle {
2
+ @apply flex flex-row items-center gap-3 cursor-pointer;
3
+ @apply rounded-md border border-neutral-muted p-2;
4
+ }
5
+
6
+ .rokkit toggle:hover > icon {
7
+ @apply text-secondary;
8
+ }
9
+ .rokkit toggle:focus-within {
10
+ @apply outline-none ring-2 ring-primary-500;
11
+ }
12
+
13
+ .rokkit toggle.minimal {
14
+ @apply py-0 border-none focus-within:ring-0;
15
+ }
16
+ .rokkit toggle.minimal icon > i {
17
+ @apply h-4;
18
+ }
package/src/rokkit.css ADDED
@@ -0,0 +1,11 @@
1
+ @import './base.css';
2
+
3
+ @import './rokkit/atoms.css';
4
+ @import './rokkit/alert.css';
5
+ @import './rokkit/input.css';
6
+ @import './rokkit/molecules.css';
7
+ @import './rokkit/organisms.css';
8
+ @import './rokkit/layout.css';
9
+ @import './rokkit/toggle.css';
10
+ @import './rokkit/table.css';
11
+ @import './rokkit/carousel.css';