@rokkit/themes 1.0.0-next.124 → 1.0.0-next.127

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 (130) hide show
  1. package/README.md +118 -9
  2. package/package.json +31 -27
  3. package/src/base/breadcrumbs.css +46 -0
  4. package/src/base/button.css +243 -0
  5. package/src/base/card.css +36 -0
  6. package/src/base/carousel.css +122 -12
  7. package/src/base/connector.css +106 -0
  8. package/src/base/display.css +91 -0
  9. package/src/base/floating-action.css +388 -0
  10. package/src/base/floating-navigation.css +381 -0
  11. package/src/base/index.css +36 -0
  12. package/src/base/input.css +194 -39
  13. package/src/base/item.css +52 -0
  14. package/src/base/list.css +258 -0
  15. package/src/base/menu.css +322 -0
  16. package/src/base/pill.css +57 -0
  17. package/src/base/progress.css +28 -15
  18. package/src/base/range.css +121 -0
  19. package/src/base/rating.css +40 -0
  20. package/src/base/reveal.css +37 -0
  21. package/src/base/search-filter.css +132 -0
  22. package/src/base/select.css +411 -0
  23. package/src/base/shine.css +14 -0
  24. package/src/base/stepper.css +140 -0
  25. package/src/base/switch.css +152 -0
  26. package/src/base/table.css +143 -33
  27. package/src/base/tabs.css +171 -0
  28. package/src/base/tilt.css +14 -0
  29. package/src/base/timeline.css +84 -0
  30. package/src/base/toggle.css +134 -0
  31. package/src/base/toolbar.css +337 -0
  32. package/src/base/tree.css +156 -11
  33. package/src/glass/button.css +152 -0
  34. package/src/glass/floating-action.css +61 -0
  35. package/src/glass/floating-navigation.css +74 -0
  36. package/src/glass/index.css +23 -0
  37. package/src/glass/input.css +124 -0
  38. package/src/glass/list.css +122 -0
  39. package/src/glass/menu.css +92 -0
  40. package/src/glass/range.css +61 -0
  41. package/src/glass/search-filter.css +49 -0
  42. package/src/glass/select.css +178 -0
  43. package/src/glass/switch.css +28 -0
  44. package/src/glass/table.css +87 -0
  45. package/src/glass/tabs.css +58 -0
  46. package/src/glass/timeline.css +46 -0
  47. package/src/glass/toggle.css +48 -0
  48. package/src/glass/toolbar.css +84 -0
  49. package/src/glass/tree.css +104 -0
  50. package/src/index.css +18 -0
  51. package/src/index.js +25 -2
  52. package/src/material/button.css +153 -0
  53. package/src/material/floating-action.css +60 -0
  54. package/src/material/floating-navigation.css +74 -0
  55. package/src/material/index.css +23 -0
  56. package/src/material/input.css +118 -40
  57. package/src/material/list.css +90 -64
  58. package/src/material/menu.css +92 -0
  59. package/src/material/range.css +62 -0
  60. package/src/material/search-filter.css +49 -0
  61. package/src/material/select.css +170 -0
  62. package/src/material/switch.css +28 -0
  63. package/src/material/table.css +87 -0
  64. package/src/material/tabs.css +62 -0
  65. package/src/material/timeline.css +46 -0
  66. package/src/material/toggle.css +48 -0
  67. package/src/material/toolbar.css +84 -0
  68. package/src/material/tree.css +100 -0
  69. package/src/minimal/button.css +152 -0
  70. package/src/minimal/floating-action.css +59 -0
  71. package/src/minimal/floating-navigation.css +70 -0
  72. package/src/minimal/index.css +23 -0
  73. package/src/minimal/input.css +81 -120
  74. package/src/minimal/list.css +90 -104
  75. package/src/minimal/menu.css +88 -0
  76. package/src/minimal/range.css +61 -0
  77. package/src/minimal/search-filter.css +49 -0
  78. package/src/minimal/select.css +168 -0
  79. package/src/minimal/switch.css +28 -0
  80. package/src/minimal/table.css +87 -0
  81. package/src/minimal/tabs.css +53 -31
  82. package/src/minimal/timeline.css +45 -0
  83. package/src/minimal/toggle.css +48 -0
  84. package/src/minimal/toolbar.css +84 -0
  85. package/src/minimal/tree.css +100 -0
  86. package/src/rokkit/button.css +225 -0
  87. package/src/rokkit/connector.css +11 -0
  88. package/src/rokkit/floating-action.css +65 -0
  89. package/src/rokkit/floating-navigation.css +83 -0
  90. package/src/rokkit/index.css +24 -0
  91. package/src/rokkit/input.css +130 -0
  92. package/src/rokkit/list.css +141 -0
  93. package/src/rokkit/menu.css +123 -0
  94. package/src/rokkit/range.css +62 -0
  95. package/src/rokkit/search-filter.css +49 -0
  96. package/src/rokkit/select.css +185 -0
  97. package/src/rokkit/switch.css +28 -0
  98. package/src/rokkit/table.css +68 -38
  99. package/src/rokkit/tabs.css +82 -0
  100. package/src/rokkit/timeline.css +46 -0
  101. package/src/rokkit/toggle.css +36 -52
  102. package/src/rokkit/toolbar.css +84 -0
  103. package/src/rokkit/tree.css +123 -0
  104. package/src/base/alert.css +0 -30
  105. package/src/base/animation.css +0 -37
  106. package/src/base/atoms.css +0 -58
  107. package/src/base/core.css +0 -107
  108. package/src/base/layout.css +0 -65
  109. package/src/base/molecules.css +0 -109
  110. package/src/base/organisms.css +0 -66
  111. package/src/base/scrollbar.css +0 -16
  112. package/src/base/toggles.css +0 -17
  113. package/src/base.css +0 -13
  114. package/src/markdown.css +0 -955
  115. package/src/material/base.css +0 -12
  116. package/src/material/form.css +0 -30
  117. package/src/material.css +0 -9
  118. package/src/minimal/base.css +0 -8
  119. package/src/minimal/form.css +0 -87
  120. package/src/minimal.css +0 -11
  121. package/src/mixins/mixins.scss +0 -66
  122. package/src/mixins/palette.scss +0 -48
  123. package/src/prism.css +0 -102
  124. package/src/rokkit/alert.css +0 -4
  125. package/src/rokkit/atoms.css +0 -52
  126. package/src/rokkit/carousel.css +0 -19
  127. package/src/rokkit/layout.css +0 -17
  128. package/src/rokkit/molecules.css +0 -124
  129. package/src/rokkit/organisms.css +0 -307
  130. package/src/rokkit.css +0 -11
@@ -0,0 +1,123 @@
1
+ /**
2
+ * Menu - Rokkit Theme Styles
3
+ *
4
+ * Rich gradients and glowing borders.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Menu Trigger
9
+ ============================================================================= */
10
+
11
+ [data-style='rokkit'] [data-menu-trigger] {
12
+ @apply from-surface-z3 to-surface-z2 border-surface-z4 text-surface-z8 border bg-gradient-to-b;
13
+ }
14
+
15
+ [data-style='rokkit'] [data-menu-trigger]:hover:not(:disabled) {
16
+ @apply from-surface-z4 to-surface-z3 text-surface-z10 border-surface-z5 bg-gradient-to-b;
17
+ }
18
+
19
+ [data-style='rokkit'] [data-menu-trigger]:focus-visible {
20
+ @apply outline-none;
21
+ }
22
+
23
+ [data-style='rokkit'] [data-menu][data-open='true'] [data-menu-trigger] {
24
+ @apply from-primary-z5 to-secondary-z5 border-primary-z5 bg-gradient-to-b;
25
+ }
26
+
27
+ /* Trigger elements */
28
+ [data-style='rokkit'] [data-menu-trigger] [data-menu-icon] {
29
+ @apply text-surface-z5;
30
+ }
31
+
32
+ [data-style='rokkit'] [data-menu-trigger]:hover:not(:disabled) [data-menu-icon] {
33
+ @apply text-surface-z7;
34
+ }
35
+
36
+ [data-style='rokkit'] [data-menu-trigger] [data-menu-arrow] {
37
+ @apply text-surface-z5;
38
+ }
39
+
40
+ /* =============================================================================
41
+ Menu Dropdown
42
+ ============================================================================= */
43
+
44
+ [data-style='rokkit'] [data-menu-dropdown] {
45
+ @apply from-surface-z2 to-surface-z1 border-surface-z4 border bg-gradient-to-b shadow-md;
46
+ }
47
+
48
+ [data-style='rokkit'] [data-menu-dropdown]:focus-within {
49
+ @apply outline-none;
50
+ }
51
+
52
+ /* =============================================================================
53
+ Menu Items
54
+ ============================================================================= */
55
+
56
+ [data-style='rokkit'] [data-menu-item] {
57
+ @apply text-surface-z8 rounded-none border-0 border-solid border-transparent;
58
+ }
59
+
60
+ [data-style='rokkit'] [data-menu-item]:hover:not(:disabled):not([data-disabled='true']),
61
+ [data-style='rokkit'] [data-menu-item]:focus:not(:disabled):not([data-disabled='true']) {
62
+ @apply from-surface-z3 to-surface-z2 text-surface-z10 bg-gradient-to-r outline-none;
63
+ }
64
+
65
+ /* Item elements */
66
+ [data-style='rokkit'] [data-menu-item] [data-item-icon],
67
+ [data-style='rokkit'] [data-menu-item] > [data-menu-item-icon] {
68
+ @apply text-surface-z5;
69
+ }
70
+
71
+ [data-style='rokkit'] [data-menu-item]:hover:not(:disabled) [data-item-icon],
72
+ [data-style='rokkit'] [data-menu-item]:hover:not(:disabled) > [data-menu-item-icon],
73
+ [data-style='rokkit'] [data-menu-item]:focus:not(:disabled) [data-item-icon],
74
+ [data-style='rokkit'] [data-menu-item]:focus:not(:disabled) > [data-menu-item-icon] {
75
+ @apply text-primary-z6;
76
+ }
77
+
78
+ [data-style='rokkit'] [data-menu-item] [data-item-description],
79
+ [data-style='rokkit'] [data-menu-item] > [data-menu-item-content] > [data-menu-item-description] {
80
+ @apply text-surface-z5;
81
+ }
82
+
83
+ /* Item shortcut */
84
+ [data-style='rokkit'] [data-menu-item] > [data-menu-item-shortcut] {
85
+ @apply text-surface-z5 bg-surface-z2 border-surface-z4 border;
86
+ }
87
+
88
+ [data-style='rokkit'] [data-menu-item]:hover:not(:disabled) > [data-menu-item-shortcut],
89
+ [data-style='rokkit'] [data-menu-item]:focus:not(:disabled) > [data-menu-item-shortcut] {
90
+ @apply text-surface-z7 bg-surface-z3 border-surface-z5;
91
+ }
92
+
93
+ /* =============================================================================
94
+ Custom Snippet Wrapper
95
+ ============================================================================= */
96
+
97
+ [data-style='rokkit'] [data-menu-item-custom] > button,
98
+ [data-style='rokkit'] [data-menu-item-custom] > a {
99
+ @apply text-surface-z9;
100
+ }
101
+
102
+ [data-style='rokkit'] [data-menu-item-custom] > button:hover:not(:disabled),
103
+ [data-style='rokkit'] [data-menu-item-custom] > a:hover,
104
+ [data-style='rokkit'] [data-menu-item-custom] > button:focus:not(:disabled),
105
+ [data-style='rokkit'] [data-menu-item-custom] > a:focus {
106
+ @apply from-surface-z3 to-surface-z2 text-surface-z10 bg-gradient-to-r;
107
+ }
108
+
109
+ /* =============================================================================
110
+ Groups
111
+ ============================================================================= */
112
+
113
+ [data-style='rokkit'] [data-menu-group-label] {
114
+ @apply text-surface-z5;
115
+ }
116
+
117
+ /* =============================================================================
118
+ Divider
119
+ ============================================================================= */
120
+
121
+ [data-style='rokkit'] [data-menu-divider] {
122
+ @apply via-surface-z4 bg-gradient-to-r from-transparent to-transparent;
123
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Range - Rokkit Theme Styles
3
+ *
4
+ * Rich gradients and glowing borders.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Track
9
+ ============================================================================= */
10
+
11
+ [data-style='rokkit'] [data-range-bar] {
12
+ @apply bg-surface-z2 border-surface-z3 border;
13
+ }
14
+
15
+ [data-style='rokkit'] [data-range-selected] {
16
+ @apply from-primary to-secondary bg-gradient-to-r;
17
+ }
18
+
19
+ /* =============================================================================
20
+ Thumb
21
+ ============================================================================= */
22
+
23
+ [data-style='rokkit'] [data-range-thumb] {
24
+ @apply bg-secondary border-secondary shadow-lg;
25
+ }
26
+
27
+ [data-style='rokkit'] [data-range-thumb][data-sliding] {
28
+ @apply shadow-xl;
29
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-secondary) 30%, transparent);
30
+ }
31
+
32
+ [data-style='rokkit'] [data-range-thumb]:focus-visible {
33
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-secondary) 30%, transparent);
34
+ }
35
+
36
+ /* =============================================================================
37
+ Ticks
38
+ ============================================================================= */
39
+
40
+ [data-style='rokkit'] [data-range-tick] {
41
+ @apply text-surface-z6;
42
+ }
43
+
44
+ [data-style='rokkit'] [data-tick-bar] {
45
+ @apply border-surface-z5;
46
+ }
47
+
48
+ [data-style='rokkit'] [data-tick-label] {
49
+ @apply text-surface-z6;
50
+ }
51
+
52
+ /* =============================================================================
53
+ Disabled
54
+ ============================================================================= */
55
+
56
+ [data-style='rokkit'] [data-range][data-disabled] [data-range-thumb] {
57
+ @apply bg-surface-z4 border-surface-z4;
58
+ }
59
+
60
+ [data-style='rokkit'] [data-range][data-disabled] [data-range-selected] {
61
+ @apply bg-surface-z4;
62
+ }
@@ -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
+ }