@rokkit/themes 1.0.0-next.125 → 1.0.0-next.128

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 (137) hide show
  1. package/README.md +118 -9
  2. package/build.mjs +237 -0
  3. package/package.json +43 -28
  4. package/src/base/breadcrumbs.css +46 -0
  5. package/src/base/button.css +247 -0
  6. package/src/base/card.css +36 -0
  7. package/src/base/carousel.css +122 -12
  8. package/src/base/connector.css +92 -0
  9. package/src/base/display.css +91 -0
  10. package/src/base/floating-action.css +388 -0
  11. package/src/base/floating-navigation.css +381 -0
  12. package/src/base/grid.css +93 -0
  13. package/src/base/index.css +39 -0
  14. package/src/base/input.css +198 -39
  15. package/src/base/item.css +78 -0
  16. package/src/base/list.css +179 -0
  17. package/src/base/menu.css +274 -0
  18. package/src/base/pill.css +57 -0
  19. package/src/base/progress.css +28 -15
  20. package/src/base/range.css +121 -0
  21. package/src/base/rating.css +40 -0
  22. package/src/base/reveal.css +37 -0
  23. package/src/base/search-filter.css +132 -0
  24. package/src/base/select.css +411 -0
  25. package/src/base/shine.css +14 -0
  26. package/src/base/stepper.css +140 -0
  27. package/src/base/switch.css +152 -0
  28. package/src/base/table.css +143 -33
  29. package/src/base/tabs.css +171 -0
  30. package/src/base/tilt.css +14 -0
  31. package/src/base/timeline.css +84 -0
  32. package/src/base/toggle.css +138 -0
  33. package/src/base/toolbar.css +337 -0
  34. package/src/base/tree.css +195 -11
  35. package/src/base/upload-progress.css +155 -0
  36. package/src/base/upload-target.css +67 -0
  37. package/src/glass/button.css +152 -0
  38. package/src/glass/floating-action.css +61 -0
  39. package/src/glass/floating-navigation.css +74 -0
  40. package/src/glass/index.css +23 -0
  41. package/src/glass/input.css +124 -0
  42. package/src/glass/list.css +122 -0
  43. package/src/glass/menu.css +92 -0
  44. package/src/glass/range.css +61 -0
  45. package/src/glass/search-filter.css +49 -0
  46. package/src/glass/select.css +178 -0
  47. package/src/glass/switch.css +28 -0
  48. package/src/glass/table.css +87 -0
  49. package/src/glass/tabs.css +58 -0
  50. package/src/glass/timeline.css +46 -0
  51. package/src/glass/toggle.css +48 -0
  52. package/src/glass/toolbar.css +84 -0
  53. package/src/glass/tree.css +104 -0
  54. package/src/index.css +18 -0
  55. package/src/index.js +25 -2
  56. package/src/material/button.css +153 -0
  57. package/src/material/floating-action.css +60 -0
  58. package/src/material/floating-navigation.css +74 -0
  59. package/src/material/index.css +23 -0
  60. package/src/material/input.css +118 -40
  61. package/src/material/list.css +90 -64
  62. package/src/material/menu.css +92 -0
  63. package/src/material/range.css +62 -0
  64. package/src/material/search-filter.css +49 -0
  65. package/src/material/select.css +170 -0
  66. package/src/material/switch.css +28 -0
  67. package/src/material/table.css +87 -0
  68. package/src/material/tabs.css +62 -0
  69. package/src/material/timeline.css +46 -0
  70. package/src/material/toggle.css +48 -0
  71. package/src/material/toolbar.css +84 -0
  72. package/src/material/tree.css +100 -0
  73. package/src/minimal/button.css +152 -0
  74. package/src/minimal/floating-action.css +59 -0
  75. package/src/minimal/floating-navigation.css +70 -0
  76. package/src/minimal/index.css +23 -0
  77. package/src/minimal/input.css +81 -120
  78. package/src/minimal/list.css +90 -104
  79. package/src/minimal/menu.css +88 -0
  80. package/src/minimal/range.css +61 -0
  81. package/src/minimal/search-filter.css +49 -0
  82. package/src/minimal/select.css +168 -0
  83. package/src/minimal/switch.css +28 -0
  84. package/src/minimal/table.css +87 -0
  85. package/src/minimal/tabs.css +53 -31
  86. package/src/minimal/timeline.css +45 -0
  87. package/src/minimal/toggle.css +48 -0
  88. package/src/minimal/toolbar.css +84 -0
  89. package/src/minimal/tree.css +100 -0
  90. package/src/rokkit/button.css +225 -0
  91. package/src/rokkit/connector.css +11 -0
  92. package/src/rokkit/floating-action.css +65 -0
  93. package/src/rokkit/floating-navigation.css +83 -0
  94. package/src/rokkit/grid.css +46 -0
  95. package/src/rokkit/index.css +27 -0
  96. package/src/rokkit/input.css +130 -0
  97. package/src/rokkit/list.css +127 -0
  98. package/src/rokkit/menu.css +93 -0
  99. package/src/rokkit/range.css +62 -0
  100. package/src/rokkit/search-filter.css +49 -0
  101. package/src/rokkit/select.css +185 -0
  102. package/src/rokkit/switch.css +28 -0
  103. package/src/rokkit/table.css +68 -38
  104. package/src/rokkit/tabs.css +82 -0
  105. package/src/rokkit/timeline.css +46 -0
  106. package/src/rokkit/toggle.css +36 -52
  107. package/src/rokkit/toolbar.css +84 -0
  108. package/src/rokkit/tree.css +123 -0
  109. package/src/rokkit/upload-progress.css +102 -0
  110. package/src/rokkit/upload-target.css +50 -0
  111. package/src/base/alert.css +0 -30
  112. package/src/base/animation.css +0 -37
  113. package/src/base/atoms.css +0 -58
  114. package/src/base/core.css +0 -107
  115. package/src/base/layout.css +0 -65
  116. package/src/base/molecules.css +0 -109
  117. package/src/base/organisms.css +0 -66
  118. package/src/base/scrollbar.css +0 -16
  119. package/src/base/toggles.css +0 -17
  120. package/src/base.css +0 -13
  121. package/src/markdown.css +0 -955
  122. package/src/material/base.css +0 -12
  123. package/src/material/form.css +0 -30
  124. package/src/material.css +0 -9
  125. package/src/minimal/base.css +0 -8
  126. package/src/minimal/form.css +0 -87
  127. package/src/minimal.css +0 -11
  128. package/src/mixins/mixins.scss +0 -66
  129. package/src/mixins/palette.scss +0 -48
  130. package/src/prism.css +0 -102
  131. package/src/rokkit/alert.css +0 -4
  132. package/src/rokkit/atoms.css +0 -52
  133. package/src/rokkit/carousel.css +0 -19
  134. package/src/rokkit/layout.css +0 -17
  135. package/src/rokkit/molecules.css +0 -124
  136. package/src/rokkit/organisms.css +0 -307
  137. package/src/rokkit.css +0 -11
@@ -0,0 +1,49 @@
1
+ /**
2
+ * SearchFilter - Rokkit Theme Styles
3
+ *
4
+ * Rich gradients and glowing borders.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Input
9
+ ============================================================================= */
10
+
11
+ [data-style='rokkit'] [data-search-input] {
12
+ @apply text-surface-z8 border-surface-z4 border bg-transparent;
13
+ }
14
+
15
+ [data-style='rokkit'] [data-search-input]:focus {
16
+ @apply border-primary-z5 ring-1 ring-primary-z4;
17
+ }
18
+
19
+ [data-style='rokkit'] [data-search-input]::placeholder {
20
+ @apply text-surface-z5;
21
+ }
22
+
23
+ /* =============================================================================
24
+ Clear Button
25
+ ============================================================================= */
26
+
27
+ [data-style='rokkit'] [data-search-clear] {
28
+ @apply text-surface-z5;
29
+ }
30
+
31
+ [data-style='rokkit'] [data-search-clear]:hover {
32
+ @apply text-surface-z8;
33
+ }
34
+
35
+ /* =============================================================================
36
+ Tags
37
+ ============================================================================= */
38
+
39
+ [data-style='rokkit'] [data-search-tag] {
40
+ @apply text-surface-z7 from-surface-z3 to-surface-z2 border-surface-z4 border bg-gradient-to-b;
41
+ }
42
+
43
+ [data-style='rokkit'] [data-search-tag-remove] {
44
+ @apply text-surface-z5;
45
+ }
46
+
47
+ [data-style='rokkit'] [data-search-tag-remove]:hover {
48
+ @apply text-surface-z9;
49
+ }
@@ -0,0 +1,185 @@
1
+ /**
2
+ * Select - Rokkit Theme Styles
3
+ *
4
+ * Rich gradients and glowing borders.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Trigger Button
9
+ ============================================================================= */
10
+
11
+ [data-style='rokkit'] [data-select-trigger] {
12
+ @apply from-surface-z2 to-surface-z1 text-surface-z8 border-surface-z4 border bg-gradient-to-b;
13
+ }
14
+
15
+ [data-style='rokkit'] [data-select-trigger]:hover:not(:disabled) {
16
+ @apply from-surface-z3 to-surface-z2 border-surface-z5 text-surface-z10 bg-gradient-to-b;
17
+ }
18
+
19
+ [data-style='rokkit'] [data-select-trigger]:focus-visible {
20
+ @apply ring-primary-z4 ring-2 outline-none;
21
+ }
22
+
23
+ [data-style='rokkit'] [data-select][data-open='true'] [data-select-trigger] {
24
+ @apply border-primary-z5 ring-primary-z4 ring-1;
25
+ }
26
+
27
+ /* =============================================================================
28
+ Placeholder
29
+ ============================================================================= */
30
+
31
+ [data-style='rokkit'] [data-select-placeholder] {
32
+ @apply text-surface-z5;
33
+ }
34
+
35
+ /* =============================================================================
36
+ Arrow
37
+ ============================================================================= */
38
+
39
+ [data-style='rokkit'] [data-select-arrow] {
40
+ @apply text-surface-z5;
41
+ }
42
+
43
+ [data-style='rokkit'] [data-select-trigger]:hover:not(:disabled) [data-select-arrow] {
44
+ @apply text-surface-z7;
45
+ }
46
+
47
+ /* =============================================================================
48
+ Tags (MultiSelect)
49
+ ============================================================================= */
50
+
51
+ [data-style='rokkit'] [data-select-tag] {
52
+ @apply from-surface-z4 to-surface-z3 text-surface-z8 border-surface-z5 border bg-gradient-to-b;
53
+ }
54
+
55
+ [data-style='rokkit'] [data-select-tag-remove] {
56
+ @apply text-surface-z6;
57
+ }
58
+
59
+ [data-style='rokkit'] [data-select-tag-remove]:hover {
60
+ @apply text-surface-z9;
61
+ }
62
+
63
+ /* =============================================================================
64
+ Dropdown Panel
65
+ ============================================================================= */
66
+
67
+ [data-style='rokkit'] [data-select-dropdown] {
68
+ @apply from-surface-z2 to-surface-z1 border-surface-z4 border bg-gradient-to-b shadow-md;
69
+ }
70
+
71
+ /* =============================================================================
72
+ Options
73
+ ============================================================================= */
74
+
75
+ [data-style='rokkit'] [data-select-option] {
76
+ @apply text-surface-z8 rounded-none border-0 border-solid border-transparent;
77
+ }
78
+
79
+ /* Hover and focus */
80
+ [data-style='rokkit'] [data-select-option]:hover:not(:disabled),
81
+ [data-style='rokkit'] [data-select-option]:focus:not(:disabled) {
82
+ @apply from-surface-z3 to-surface-z2 text-surface-z10 bg-gradient-to-r outline-none;
83
+ }
84
+
85
+ /* Selected state — muted when dropdown not focused */
86
+ [data-style='rokkit'] [data-select-option][data-selected='true'] {
87
+ @apply bg-surface-z2 text-primary-z9 border-l-primary-z5 border-l-2;
88
+ }
89
+
90
+ /* Selected state — full gradient when dropdown has focus */
91
+ [data-style='rokkit'] [data-select-dropdown]:focus-within [data-select-option][data-selected='true'] {
92
+ @apply from-primary-z5 to-secondary-z5 text-primary-z9 border-l-primary-z5 border-l-2 bg-gradient-to-r;
93
+ }
94
+
95
+ /* Selected + hover */
96
+ [data-style='rokkit'] [data-select-option][data-selected='true']:hover:not(:disabled) {
97
+ @apply from-primary-z4 to-primary-z3 bg-gradient-to-r;
98
+ }
99
+
100
+ /* Check mark */
101
+ [data-style='rokkit'] [data-select-check] {
102
+ @apply text-primary-z6;
103
+ }
104
+
105
+ /* Checkbox */
106
+ [data-style='rokkit'] [data-select-checkbox] {
107
+ @apply from-surface-z2 to-surface-z1 border-surface-z5 border bg-gradient-to-b;
108
+ }
109
+
110
+ [data-style='rokkit'] [data-select-checkbox][data-checked='true'] {
111
+ @apply from-primary-z6 to-primary-z5 border-primary-z6 bg-gradient-to-b text-white;
112
+ }
113
+
114
+ /* Item elements */
115
+ [data-style='rokkit'] [data-select-option] [data-item-icon] {
116
+ @apply text-surface-z5;
117
+ }
118
+
119
+ [data-style='rokkit'] [data-select-option]:hover:not(:disabled) [data-item-icon] {
120
+ @apply text-surface-z7;
121
+ }
122
+
123
+ [data-style='rokkit'] [data-select-option][data-selected='true'] [data-item-icon] {
124
+ @apply text-primary-z6;
125
+ }
126
+
127
+ [data-style='rokkit'] [data-select-dropdown]:focus-within [data-select-option][data-selected='true'] [data-item-icon] {
128
+ @apply text-primary-z9;
129
+ }
130
+
131
+ [data-style='rokkit'] [data-select-option] [data-item-description] {
132
+ @apply text-surface-z5;
133
+ }
134
+
135
+ [data-style='rokkit'] [data-select-option][data-selected='true'] [data-item-description] {
136
+ @apply text-primary-z7;
137
+ }
138
+
139
+ [data-style='rokkit'] [data-select-option] [data-item-badge] {
140
+ @apply text-surface-z6 bg-surface-z2;
141
+ }
142
+
143
+ [data-style='rokkit'] [data-select-option][data-selected='true'] [data-item-badge] {
144
+ @apply text-primary-z8 bg-primary-z2;
145
+ }
146
+
147
+ /* =============================================================================
148
+ Groups
149
+ ============================================================================= */
150
+
151
+ [data-style='rokkit'] [data-select-group-label] {
152
+ @apply text-surface-z5;
153
+ }
154
+
155
+ /* =============================================================================
156
+ Divider
157
+ ============================================================================= */
158
+
159
+ [data-style='rokkit'] [data-select-divider] {
160
+ @apply via-surface-z4 bg-gradient-to-r from-transparent to-transparent;
161
+ }
162
+
163
+ /* =============================================================================
164
+ Filter Input
165
+ ============================================================================= */
166
+
167
+ [data-style='rokkit'] [data-select-filter] {
168
+ @apply bg-surface-z2;
169
+ }
170
+
171
+ [data-style='rokkit'] [data-select-filter-input] {
172
+ @apply text-surface-z8 border-surface-z4 bg-surface-z1 border;
173
+ }
174
+
175
+ [data-style='rokkit'] [data-select-filter-input]:focus {
176
+ @apply border-primary-z5 ring-primary-z4 ring-1;
177
+ }
178
+
179
+ [data-style='rokkit'] [data-select-filter-input]::placeholder {
180
+ @apply text-surface-z5;
181
+ }
182
+
183
+ [data-style='rokkit'] [data-select-empty] {
184
+ @apply text-surface-z5;
185
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Switch - Rokkit Theme Styles
3
+ */
4
+
5
+ [data-style='rokkit'] [data-switch-track] {
6
+ @apply from-surface-z3 to-surface-z2 border-surface-z4 border bg-gradient-to-b;
7
+ }
8
+
9
+ [data-style='rokkit'] [data-switch-thumb] {
10
+ @apply bg-surface-z6 shadow-sm;
11
+ }
12
+
13
+ [data-style='rokkit'] [data-switch]:focus-visible [data-switch-track] {
14
+ @apply ring-2 ring-primary-z5 ring-offset-1;
15
+ }
16
+
17
+ /* On state */
18
+ [data-style='rokkit'] [data-switch][aria-checked='true'] [data-switch-track] {
19
+ @apply from-primary-z4 to-secondary-z4 border-primary-z5 bg-gradient-to-b;
20
+ }
21
+
22
+ [data-style='rokkit'] [data-switch][aria-checked='true'] [data-switch-thumb] {
23
+ @apply bg-white shadow-md;
24
+ }
25
+
26
+ [data-style='rokkit'] [data-switch-label] {
27
+ @apply text-surface-z7;
28
+ }
@@ -1,57 +1,87 @@
1
- th,
2
- td {
3
- @apply px-5 py-3;
4
- }
5
- tr {
6
- @apply gap-1px;
7
- }
8
- th {
9
- @apply whitespace-nowrap;
1
+ /**
2
+ * Table - Rokkit Theme Styles
3
+ *
4
+ * Rich gradients and glowing borders.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Header
9
+ ============================================================================= */
10
+
11
+ [data-style='rokkit'] [data-table-header] th {
12
+ @apply text-surface-z6 border-b border-surface-z4;
10
13
  }
11
- th cell,
12
- td cell {
13
- @apply flex w-full items-center gap-2;
14
+
15
+ [data-style='rokkit'] [data-table-header-cell][data-sortable='true']:hover {
16
+ @apply text-surface-z8;
14
17
  }
15
- th[data-sortable='true'] {
16
- @apply cursor-pointer;
18
+
19
+ [data-style='rokkit'] [data-table-header-cell][data-sort-order='ascending'],
20
+ [data-style='rokkit'] [data-table-header-cell][data-sort-order='descending'] {
21
+ @apply text-primary-z7;
17
22
  }
18
- th[data-sortable='true']:hover,
19
- th[data-sortable='true']:hover icon {
20
- @apply text-primary-700;
23
+
24
+ [data-style='rokkit'] [data-table-sort-icon] {
25
+ @apply text-surface-z5;
21
26
  }
22
27
 
23
- table {
24
- @apply text-surface-700 w-full text-left text-sm rtl:text-right;
28
+ [data-style='rokkit'] [data-table-header-cell][data-sort-order='ascending'] [data-table-sort-icon],
29
+ [data-style='rokkit'] [data-table-header-cell][data-sort-order='descending'] [data-table-sort-icon] {
30
+ @apply text-primary-z6;
25
31
  }
26
- table > thead {
27
- @apply bg-surface-400 table-header-group text-xs uppercase;
32
+
33
+ /* =============================================================================
34
+ Caption
35
+ ============================================================================= */
36
+
37
+ [data-style='rokkit'] [data-table-caption] {
38
+ @apply text-surface-z7;
28
39
  }
29
- table > caption {
30
- @apply bg-surface-z2 text-surface-600 table-caption p-5 text-left text-sm font-normal rtl:text-right;
40
+
41
+ /* =============================================================================
42
+ Rows
43
+ ============================================================================= */
44
+
45
+ [data-style='rokkit'] [data-table-row] {
46
+ @apply text-surface-z8 border-b border-surface-z3;
31
47
  }
32
48
 
33
- table > tbody > tr {
34
- @apply border-surface-z1 bg-surface-z2 table-row border-b;
49
+ [data-style='rokkit'] [data-table-row]:hover {
50
+ @apply from-surface-z3 to-surface-z2 bg-gradient-to-r;
35
51
  }
36
- table.striped > tbody > tr:nth-child(even) {
37
- @apply bg-surface-z0;
52
+
53
+ [data-style='rokkit'] [data-table-row]:focus {
54
+ @apply from-surface-z3 to-surface-z2 text-surface-z10 bg-gradient-to-r outline-none;
38
55
  }
39
- table > tfoot {
40
- @apply table-footer-group;
56
+
57
+ [data-style='rokkit'] [data-table-row][data-selected='true'] {
58
+ @apply from-primary-z5 to-secondary-z5 text-primary-z9 bg-gradient-to-r;
41
59
  }
42
- table > tfoot > tr {
43
- @apply text-surface-800 table-row font-semibold;
60
+
61
+ /* =============================================================================
62
+ Striped
63
+ ============================================================================= */
64
+
65
+ [data-style='rokkit'] [data-striped='true'] [data-table-body] tr:nth-child(even) {
66
+ @apply bg-surface-z2;
44
67
  }
45
68
 
46
- rk-table-wrapper {
47
- @apply shadow-md sm:rounded-lg;
69
+ /* =============================================================================
70
+ Empty
71
+ ============================================================================= */
72
+
73
+ [data-style='rokkit'] [data-table-empty] {
74
+ @apply text-surface-z5;
48
75
  }
49
76
 
50
- td rk-cell.cell-type-integer p,
51
- td rk-cell.cell-type-number p {
52
- @apply w-full text-right;
77
+ /* =============================================================================
78
+ Cell Icon
79
+ ============================================================================= */
80
+
81
+ [data-style='rokkit'] [data-table-cell] [data-cell-icon] {
82
+ @apply text-surface-z5;
53
83
  }
54
84
 
55
- td rk-cell rk-item {
56
- @apply flex w-full;
85
+ [data-style='rokkit'] [data-table-row][data-selected='true'] [data-cell-icon] {
86
+ @apply text-primary-z7;
57
87
  }
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Tabs - Rokkit Theme Styles
3
+ *
4
+ * Rich gradients and glowing borders.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Tab List
9
+ ============================================================================= */
10
+
11
+ [data-style='rokkit'] [data-tabs-list] {
12
+ @apply border-surface-z3 gap-1 border-b-2 px-1;
13
+ }
14
+
15
+ [data-style='rokkit'] [data-tabs][data-position='after'] [data-tabs-list] {
16
+ @apply border-b-0 border-t-2;
17
+ }
18
+
19
+ [data-style='rokkit'] [data-tabs][data-orientation='vertical'] [data-tabs-list] {
20
+ @apply border-b-0 border-r-2 px-0 py-1;
21
+ }
22
+
23
+ [data-style='rokkit'] [data-tabs][data-orientation='vertical'][data-position='after'] [data-tabs-list] {
24
+ @apply border-r-0 border-l-2;
25
+ }
26
+
27
+ [data-style='rokkit'] [data-tabs-list]:focus-within {
28
+ @apply border-secondary outline-none;
29
+ }
30
+
31
+ /* =============================================================================
32
+ Tab Triggers
33
+ ============================================================================= */
34
+
35
+ [data-style='rokkit'] [data-tabs-trigger] {
36
+ @apply bg-surface-z1 flex-shrink-0 rounded-t;
37
+ }
38
+
39
+ [data-style='rokkit'] [data-tabs][data-position='after'] [data-tabs-trigger] {
40
+ @apply rounded-b rounded-t-none;
41
+ }
42
+
43
+ [data-style='rokkit'] [data-tabs-trigger]:hover:not(:disabled):not([data-disabled]) {
44
+ @apply bg-surface-z2 text-surface-z8;
45
+ }
46
+
47
+ /* Selected state */
48
+ [data-style='rokkit'] [data-tabs-trigger][data-selected] {
49
+ @apply bg-surface-z3;
50
+ }
51
+
52
+ [data-style='rokkit'] [data-tabs-list]:focus-within [data-tabs-trigger][data-selected] {
53
+ @apply from-primary-z5 to-secondary-z5 bg-gradient-to-b text-primary-z9;
54
+ }
55
+
56
+ [data-style='rokkit'] [data-tabs][data-position='after'] [data-tabs-list]:focus-within [data-tabs-trigger][data-selected] {
57
+ @apply bg-gradient-to-t;
58
+ }
59
+
60
+ /* =============================================================================
61
+ Tab Icon
62
+ ============================================================================= */
63
+
64
+ [data-style='rokkit'] [data-tabs-trigger] [data-tabs-icon] {
65
+ @apply text-surface-z5;
66
+ }
67
+
68
+ [data-style='rokkit'] [data-tabs-trigger]:hover:not(:disabled) [data-tabs-icon] {
69
+ @apply text-surface-z7;
70
+ }
71
+
72
+ [data-style='rokkit'] [data-tabs-trigger][data-selected] [data-tabs-icon] {
73
+ @apply text-primary-z7;
74
+ }
75
+
76
+ /* =============================================================================
77
+ Tab Panel
78
+ ============================================================================= */
79
+
80
+ [data-style='rokkit'] [data-tabs-content] {
81
+ @apply text-surface-z8;
82
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Timeline - Rokkit Theme Styles
3
+ *
4
+ * Rich gradients and glowing accents.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Circle
9
+ ============================================================================= */
10
+
11
+ [data-style='rokkit'] [data-timeline-circle] {
12
+ @apply border-surface-z4 text-surface-z6;
13
+ }
14
+
15
+ [data-style='rokkit'] [data-timeline-item][data-completed] [data-timeline-circle] {
16
+ @apply bg-primary border-primary text-on-primary;
17
+ }
18
+
19
+ [data-style='rokkit'] [data-timeline-item][data-active] [data-timeline-circle] {
20
+ @apply border-primary text-primary;
21
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
22
+ }
23
+
24
+ /* =============================================================================
25
+ Connector
26
+ ============================================================================= */
27
+
28
+ [data-style='rokkit'] [data-timeline-connector] {
29
+ @apply bg-surface-z3;
30
+ }
31
+
32
+ [data-style='rokkit'] [data-timeline-item][data-completed] [data-timeline-connector] {
33
+ @apply bg-primary;
34
+ }
35
+
36
+ /* =============================================================================
37
+ Body
38
+ ============================================================================= */
39
+
40
+ [data-style='rokkit'] [data-timeline-title] {
41
+ @apply text-surface-z8;
42
+ }
43
+
44
+ [data-style='rokkit'] [data-timeline-description] {
45
+ @apply text-surface-z6;
46
+ }
@@ -1,64 +1,48 @@
1
- [data-style='rokkit'] rk-switch {
2
- @apply flex cursor-pointer flex-row items-center gap-3;
3
- @apply border-surface-z3 rounded-md border p-2;
4
- }
1
+ /**
2
+ * Toggle - Rokkit Theme Styles
3
+ *
4
+ * Rich gradients and glowing borders.
5
+ */
5
6
 
6
- [data-style='rokkit'] rk-switch:hover > rk-icon {
7
- @apply text-secondary;
8
- }
9
- [data-style='rokkit'] rk-switch:focus-within,
10
- [data-style='rokkit'] rk-toggle:focus-within {
11
- @apply ring-primary-500 px-2 outline-none;
12
- }
7
+ /* =============================================================================
8
+ Toggle Container
9
+ ============================================================================= */
13
10
 
14
- [data-style='rokkit'] rk-switch.minimal {
15
- @apply border-none py-0 focus-within:ring-0;
16
- }
17
- [data-style='rokkit'] rk-switch.minimal rk-icon > i {
18
- @apply text-md h-4;
19
- }
20
- [data-style='rokkit'] rk-toggle {
21
- @apply border-surface-z2 bg-surface-z2 box-border aspect-square h-9 border;
22
- @apply flex items-center justify-center rounded-md leading-loose;
11
+ [data-style='rokkit'] [data-toggle] {
12
+ @apply from-surface-z3 to-surface-z2 border-surface-z4 rounded-lg border bg-gradient-to-b;
23
13
  }
24
14
 
25
- [data-style='rokkit'] rk-toggle:focus-within,
26
- [data-style='rokkit'] a.button.square:focus-within {
27
- @apply ring-secondary border-surface-z1 border ring-2;
28
- }
29
- [data-style='rokkit'] rk-toggle:focus-within button {
30
- @apply p-0;
31
- }
32
- [data-style='rokkit'] rk-toggle > button {
33
- @apply p-0 outline-none;
15
+ /* =============================================================================
16
+ Toggle Options
17
+ ============================================================================= */
18
+
19
+ [data-style='rokkit'] [data-toggle-option] {
20
+ @apply text-surface-z6;
34
21
  }
35
- /* [data-style='rokkit'] rk-toggle rk-icon {
36
- @apply bg-surface-z1 flex rounded p-0 leading-loose;
37
- } */
38
22
 
39
- [data-style='rokkit'] a.square {
40
- @apply aspect-square min-h-9 min-w-9;
23
+ [data-style='rokkit'] [data-toggle-option]:hover:not(:disabled):not([data-disabled='true']),
24
+ [data-style='rokkit'] [data-toggle-option]:focus:not(:disabled):not([data-disabled='true']) {
25
+ @apply from-surface-z4 to-surface-z3 text-surface-z8 bg-gradient-to-b;
41
26
  }
42
- [data-style='rokkit'] a.button {
43
- @apply p-0;
27
+
28
+ /* Selected state */
29
+ [data-style='rokkit'] [data-toggle-option][data-selected='true'] {
30
+ @apply from-primary-z5 to-secondary-z5 text-primary-z9 border-primary-z5 border bg-gradient-to-b shadow-sm;
44
31
  }
45
- [data-style='rokkit'] rk-toggle rk-icon {
46
- @apply bg-surface-z2 h-full w-full rounded-md;
32
+
33
+ /* =============================================================================
34
+ Toggle Icon
35
+ ============================================================================= */
36
+
37
+ [data-style='rokkit'] [data-toggle-option] [data-toggle-icon] {
38
+ @apply text-surface-z5;
47
39
  }
48
40
 
49
- /* [data-style='rokkit'] rk-toggle > button {
50
- @apply items-center justify-center rounded-md p-0;
41
+ [data-style='rokkit'] [data-toggle-option]:hover:not(:disabled) [data-toggle-icon],
42
+ [data-style='rokkit'] [data-toggle-option]:focus:not(:disabled) [data-toggle-icon] {
43
+ @apply text-surface-z7;
51
44
  }
52
- [data-style='rokkit'] rk-toggle > button > rk-icon {
53
- @apply aspect-square items-center justify-center;
54
- } */
55
- /* [data-style='rokkit'] rk-toggle button {
56
- @apply m-0 h-full w-full p-0;
57
- } */
58
45
 
59
- /* [data-style='rokkit'] rk-toggle.small {
60
- @apply p-2px flex aspect-square flex-col items-center justify-center;
61
- } */
62
- /* [data-style="rokkit"] rk-toggle:focus-within button {
63
- @apply bg-surface-z1 text-surface hover:text-primary rounded-sm;
64
- } */
46
+ [data-style='rokkit'] [data-toggle-option][data-selected='true'] [data-toggle-icon] {
47
+ @apply text-primary-z7;
48
+ }