@rokkit/themes 1.0.0-next.133 → 1.0.0-next.136

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 (90) hide show
  1. package/README.md +68 -80
  2. package/build.mjs +148 -150
  3. package/dist/base.css +689 -623
  4. package/dist/glass.css +212 -203
  5. package/dist/index.css +1464 -1257
  6. package/dist/material.css +203 -171
  7. package/dist/minimal.css +171 -147
  8. package/dist/rokkit.css +189 -113
  9. package/package.json +8 -2
  10. package/src/base/breadcrumbs.css +28 -28
  11. package/src/base/button.css +10 -3
  12. package/src/base/card.css +17 -17
  13. package/src/base/carousel.css +67 -67
  14. package/src/base/display.css +8 -8
  15. package/src/base/floating-navigation.css +32 -8
  16. package/src/base/graph-paper.css +49 -49
  17. package/src/base/pill.css +35 -35
  18. package/src/base/progress.css +21 -21
  19. package/src/base/range.css +57 -57
  20. package/src/base/rating.css +20 -18
  21. package/src/base/reveal.css +16 -16
  22. package/src/base/search-filter.css +61 -61
  23. package/src/base/shine.css +7 -7
  24. package/src/base/stepper.css +75 -75
  25. package/src/base/switch.css +55 -55
  26. package/src/base/table.css +49 -49
  27. package/src/base/tilt.css +4 -4
  28. package/src/base/timeline.css +38 -38
  29. package/src/base/tree.css +48 -15
  30. package/src/glass/button.css +11 -10
  31. package/src/glass/card.css +16 -13
  32. package/src/glass/floating-action.css +13 -13
  33. package/src/glass/floating-navigation.css +2 -2
  34. package/src/glass/input.css +32 -30
  35. package/src/glass/list.css +21 -21
  36. package/src/glass/menu.css +16 -16
  37. package/src/glass/range.css +10 -10
  38. package/src/glass/search-filter.css +8 -8
  39. package/src/glass/select.css +32 -32
  40. package/src/glass/switch.css +6 -6
  41. package/src/glass/table.css +14 -14
  42. package/src/glass/tabs.css +3 -3
  43. package/src/glass/timeline.css +8 -8
  44. package/src/glass/toggle.css +7 -7
  45. package/src/glass/toolbar.css +15 -15
  46. package/src/glass/tree.css +27 -21
  47. package/src/material/button.css +12 -8
  48. package/src/material/card.css +1 -1
  49. package/src/material/input.css +30 -14
  50. package/src/material/list.css +27 -23
  51. package/src/material/menu.css +16 -16
  52. package/src/material/range.css +11 -11
  53. package/src/material/search-filter.css +8 -8
  54. package/src/material/select.css +31 -31
  55. package/src/material/switch.css +6 -6
  56. package/src/material/table.css +20 -16
  57. package/src/material/timeline.css +8 -8
  58. package/src/material/toggle.css +7 -7
  59. package/src/material/toolbar.css +17 -16
  60. package/src/material/tree.css +22 -19
  61. package/src/minimal/button.css +7 -4
  62. package/src/minimal/card.css +13 -11
  63. package/src/minimal/floating-action.css +11 -11
  64. package/src/minimal/floating-navigation.css +1 -1
  65. package/src/minimal/input.css +14 -10
  66. package/src/minimal/list.css +27 -23
  67. package/src/minimal/menu.css +15 -15
  68. package/src/minimal/range.css +10 -10
  69. package/src/minimal/search-filter.css +8 -8
  70. package/src/minimal/select.css +4 -2
  71. package/src/minimal/switch.css +6 -6
  72. package/src/minimal/table.css +17 -15
  73. package/src/minimal/tabs.css +5 -3
  74. package/src/minimal/timeline.css +7 -7
  75. package/src/minimal/toggle.css +7 -7
  76. package/src/minimal/toolbar.css +17 -16
  77. package/src/minimal/tree.css +26 -20
  78. package/src/rokkit/button.css +40 -11
  79. package/src/rokkit/card.css +16 -14
  80. package/src/rokkit/floating-navigation.css +2 -2
  81. package/src/rokkit/input.css +10 -6
  82. package/src/rokkit/list.css +7 -2
  83. package/src/rokkit/range.css +11 -11
  84. package/src/rokkit/search-filter.css +8 -8
  85. package/src/rokkit/select.css +41 -36
  86. package/src/rokkit/switch.css +6 -6
  87. package/src/rokkit/table.css +17 -15
  88. package/src/rokkit/tabs.css +11 -6
  89. package/src/rokkit/timeline.css +8 -8
  90. package/src/rokkit/tree.css +35 -9
@@ -9,11 +9,11 @@
9
9
  ============================================================================= */
10
10
 
11
11
  [data-style='glass'] [data-tabs-list] {
12
- @apply backdrop-blur-md rounded-t-lg border-b bg-surface-z1/70 border-surface-z5/20;
12
+ @apply bg-surface-z1/70 border-surface-z5/20 rounded-t-lg border-b backdrop-blur-md;
13
13
  }
14
14
 
15
15
  [data-style='glass'] [data-tabs][data-position='after'] [data-tabs-list] {
16
- @apply rounded-t-none rounded-b-lg border-b-0 border-t;
16
+ @apply rounded-t-none rounded-b-lg border-t border-b-0;
17
17
  }
18
18
 
19
19
  /* =============================================================================
@@ -30,7 +30,7 @@
30
30
 
31
31
  /* Selected state */
32
32
  [data-style='glass'] [data-tabs-trigger][data-selected] {
33
- @apply bg-primary-z5/40 text-primary-z9 border-primary-z5/50 backdrop-blur-sm border;
33
+ @apply bg-primary-z5/40 text-primary-z9 border-primary-z5/50 border backdrop-blur-sm;
34
34
  }
35
35
 
36
36
  /* =============================================================================
@@ -9,16 +9,16 @@
9
9
  ============================================================================= */
10
10
 
11
11
  [data-style='glass'] [data-timeline-circle] {
12
- @apply border-surface-z5/30 text-surface-z6;
12
+ @apply border-surface-z5/30 text-surface-z6;
13
13
  }
14
14
 
15
15
  [data-style='glass'] [data-timeline-item][data-completed] [data-timeline-circle] {
16
- @apply bg-primary/80 border-primary/50 text-on-primary backdrop-blur-sm;
16
+ @apply bg-primary/80 border-primary/50 text-on-primary backdrop-blur-sm;
17
17
  }
18
18
 
19
19
  [data-style='glass'] [data-timeline-item][data-active] [data-timeline-circle] {
20
- @apply border-primary/60 text-primary;
21
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
20
+ @apply border-primary/60 text-primary;
21
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
22
22
  }
23
23
 
24
24
  /* =============================================================================
@@ -26,11 +26,11 @@
26
26
  ============================================================================= */
27
27
 
28
28
  [data-style='glass'] [data-timeline-connector] {
29
- @apply bg-surface-z5/20;
29
+ @apply bg-surface-z5/20;
30
30
  }
31
31
 
32
32
  [data-style='glass'] [data-timeline-item][data-completed] [data-timeline-connector] {
33
- @apply bg-primary/40;
33
+ @apply bg-primary/40;
34
34
  }
35
35
 
36
36
  /* =============================================================================
@@ -38,9 +38,9 @@
38
38
  ============================================================================= */
39
39
 
40
40
  [data-style='glass'] [data-timeline-title] {
41
- @apply text-surface-z8;
41
+ @apply text-surface-z8;
42
42
  }
43
43
 
44
44
  [data-style='glass'] [data-timeline-description] {
45
- @apply text-surface-z6;
45
+ @apply text-surface-z6;
46
46
  }
@@ -9,7 +9,7 @@
9
9
  ============================================================================= */
10
10
 
11
11
  [data-style='glass'] [data-toggle] {
12
- @apply backdrop-blur-md rounded-lg border bg-surface-z1/70 border-surface-z5/20;
12
+ @apply bg-surface-z1/70 border-surface-z5/20 rounded-lg border backdrop-blur-md;
13
13
  }
14
14
 
15
15
  /* =============================================================================
@@ -17,17 +17,17 @@
17
17
  ============================================================================= */
18
18
 
19
19
  [data-style='glass'] [data-toggle-option] {
20
- @apply text-surface-z6;
20
+ @apply text-surface-z6;
21
21
  }
22
22
 
23
23
  [data-style='glass'] [data-toggle-option]:hover:not(:disabled):not([data-disabled='true']),
24
24
  [data-style='glass'] [data-toggle-option]:focus:not(:disabled):not([data-disabled='true']) {
25
- @apply text-surface-z8 bg-surface-z2/15;
25
+ @apply text-surface-z8 bg-surface-z2/15;
26
26
  }
27
27
 
28
28
  /* Selected state */
29
29
  [data-style='glass'] [data-toggle-option][data-selected='true'] {
30
- @apply bg-primary-z5/40 text-primary-z9 border-primary-z5/50 backdrop-blur-sm border;
30
+ @apply bg-primary-z5/40 text-primary-z9 border-primary-z5/50 border backdrop-blur-sm;
31
31
  }
32
32
 
33
33
  /* =============================================================================
@@ -35,14 +35,14 @@
35
35
  ============================================================================= */
36
36
 
37
37
  [data-style='glass'] [data-toggle-option] [data-toggle-icon] {
38
- @apply text-surface-z5;
38
+ @apply text-surface-z5;
39
39
  }
40
40
 
41
41
  [data-style='glass'] [data-toggle-option]:hover:not(:disabled) [data-toggle-icon],
42
42
  [data-style='glass'] [data-toggle-option]:focus:not(:disabled) [data-toggle-icon] {
43
- @apply text-surface-z7;
43
+ @apply text-surface-z7;
44
44
  }
45
45
 
46
46
  [data-style='glass'] [data-toggle-option][data-selected='true'] [data-toggle-icon] {
47
- @apply text-primary-z7;
47
+ @apply text-primary-z7;
48
48
  }
@@ -9,25 +9,25 @@
9
9
  ============================================================================= */
10
10
 
11
11
  [data-style='glass'] [data-toolbar] {
12
- @apply backdrop-blur-md bg-surface-z1/70;
12
+ @apply bg-surface-z1/70 backdrop-blur-md;
13
13
  }
14
14
 
15
15
  /* Position-based borders */
16
16
  [data-style='glass'] [data-toolbar][data-toolbar-position='top'],
17
17
  [data-style='glass'] [data-toolbar]:not([data-toolbar-position]) {
18
- @apply border-b border-surface-z5/20;
18
+ @apply border-surface-z5/20 border-b;
19
19
  }
20
20
 
21
21
  [data-style='glass'] [data-toolbar][data-toolbar-position='bottom'] {
22
- @apply border-t border-surface-z5/20;
22
+ @apply border-surface-z5/20 border-t;
23
23
  }
24
24
 
25
25
  [data-style='glass'] [data-toolbar][data-toolbar-position='left'] {
26
- @apply border-r border-surface-z5/20;
26
+ @apply border-surface-z5/20 border-r;
27
27
  }
28
28
 
29
29
  [data-style='glass'] [data-toolbar][data-toolbar-position='right'] {
30
- @apply border-l border-surface-z5/20;
30
+ @apply border-surface-z5/20 border-l;
31
31
  }
32
32
 
33
33
  /* =============================================================================
@@ -35,24 +35,24 @@
35
35
  ============================================================================= */
36
36
 
37
37
  [data-style='glass'] [data-toolbar-item] {
38
- @apply text-surface-z7;
38
+ @apply text-surface-z7;
39
39
  }
40
40
 
41
41
  [data-style='glass'] [data-toolbar-item]:hover:not(:disabled):not([data-disabled='true']) {
42
- @apply text-surface-z10 bg-surface-z2/15;
42
+ @apply text-surface-z10 bg-surface-z2/15;
43
43
  }
44
44
 
45
45
  [data-style='glass'] [data-toolbar-item]:focus-visible:not(:disabled):not([data-disabled='true']) {
46
- @apply text-surface-z10 outline-none ring-1 ring-surface-z5/40 bg-surface-z2/15;
46
+ @apply text-surface-z10 ring-surface-z5/40 bg-surface-z2/15 ring-1 outline-none;
47
47
  }
48
48
 
49
49
  /* Active/pressed state */
50
50
  [data-style='glass'] [data-toolbar-item][data-active='true'] {
51
- @apply bg-primary-z5/30 text-primary-z9;
51
+ @apply bg-primary-z5/30 text-primary-z9;
52
52
  }
53
53
 
54
54
  [data-style='glass'] [data-toolbar-item][data-active='true']:hover:not(:disabled) {
55
- @apply bg-primary-z5/40 text-primary-z10;
55
+ @apply bg-primary-z5/40 text-primary-z10;
56
56
  }
57
57
 
58
58
  /* =============================================================================
@@ -60,15 +60,15 @@
60
60
  ============================================================================= */
61
61
 
62
62
  [data-style='glass'] [data-toolbar-item] [data-toolbar-icon] {
63
- @apply text-surface-z6;
63
+ @apply text-surface-z6;
64
64
  }
65
65
 
66
66
  [data-style='glass'] [data-toolbar-item]:hover:not(:disabled) [data-toolbar-icon] {
67
- @apply text-surface-z9;
67
+ @apply text-surface-z9;
68
68
  }
69
69
 
70
70
  [data-style='glass'] [data-toolbar-item][data-active='true'] [data-toolbar-icon] {
71
- @apply text-primary-z7;
71
+ @apply text-primary-z7;
72
72
  }
73
73
 
74
74
  /* =============================================================================
@@ -76,9 +76,9 @@
76
76
  ============================================================================= */
77
77
 
78
78
  [data-style='glass'] [data-toolbar-separator] {
79
- @apply bg-surface-z5/20;
79
+ @apply bg-surface-z5/20;
80
80
  }
81
81
 
82
82
  [data-style='glass'] [data-toolbar-divider] {
83
- @apply bg-surface-z5/20;
83
+ @apply bg-surface-z5/20;
84
84
  }
@@ -9,7 +9,7 @@
9
9
  ============================================================================= */
10
10
 
11
11
  [data-style='glass'] [data-tree]:focus-within {
12
- @apply ring-1 rounded ring-surface-z5/40;
12
+ @apply ring-surface-z5/40 rounded ring-1;
13
13
  }
14
14
 
15
15
  /* =============================================================================
@@ -17,11 +17,11 @@
17
17
  ============================================================================= */
18
18
 
19
19
  [data-style='glass'] [data-tree-toggle-btn] {
20
- @apply text-surface-z5;
20
+ @apply text-surface-z5;
21
21
  }
22
22
 
23
23
  [data-style='glass'] [data-tree-toggle-btn]:hover {
24
- @apply text-surface-z7 bg-surface-z2/15;
24
+ @apply text-surface-z7 bg-surface-z2/15;
25
25
  }
26
26
 
27
27
  /* =============================================================================
@@ -29,26 +29,26 @@
29
29
  ============================================================================= */
30
30
 
31
31
  [data-style='glass'] [data-tree-item-content] {
32
- @apply text-surface-z8;
32
+ @apply text-surface-z8;
33
33
  }
34
34
 
35
35
  [data-style='glass'] [data-tree-item-content]:hover:not(:disabled),
36
36
  [data-style='glass'] [data-tree-item-content]:focus:not(:disabled) {
37
- @apply text-surface-z10 outline-none bg-surface-z2/15;
37
+ @apply text-surface-z10 bg-surface-z2/15 outline-none;
38
38
  }
39
39
 
40
40
  /* Focus visible for keyboard navigation */
41
41
  [data-style='glass'] [data-tree-item-content]:focus-visible {
42
- @apply outline-none ring-1 ring-surface-z5/40;
42
+ @apply ring-surface-z5/40 ring-1 outline-none;
43
43
  }
44
44
 
45
45
  /* Active/selected state */
46
46
  [data-style='glass'] [data-tree-item-content][data-active='true'] {
47
- @apply bg-primary-z5/30 text-primary-z9;
47
+ @apply bg-primary-z5/30 text-primary-z9;
48
48
  }
49
49
 
50
50
  [data-style='glass'] [data-tree-item-content][data-active='true']:hover:not(:disabled) {
51
- @apply bg-primary-z5/40;
51
+ @apply bg-primary-z5/40;
52
52
  }
53
53
 
54
54
  /* =============================================================================
@@ -56,31 +56,31 @@
56
56
  ============================================================================= */
57
57
 
58
58
  [data-style='glass'] [data-tree-item-content] [data-item-icon] {
59
- @apply text-surface-z5;
59
+ @apply text-surface-z5;
60
60
  }
61
61
 
62
62
  [data-style='glass'] [data-tree-item-content]:hover:not(:disabled) [data-item-icon] {
63
- @apply text-surface-z7;
63
+ @apply text-surface-z7;
64
64
  }
65
65
 
66
66
  [data-style='glass'] [data-tree-item-content][data-active='true'] [data-item-icon] {
67
- @apply text-primary-z6;
67
+ @apply text-primary-z6;
68
68
  }
69
69
 
70
70
  [data-style='glass'] [data-tree-item-content] [data-item-description] {
71
- @apply text-surface-z5;
71
+ @apply text-surface-z5;
72
72
  }
73
73
 
74
74
  [data-style='glass'] [data-tree-item-content][data-active='true'] [data-item-description] {
75
- @apply text-primary-z7;
75
+ @apply text-primary-z7;
76
76
  }
77
77
 
78
78
  [data-style='glass'] [data-tree-item-content] [data-item-badge] {
79
- @apply text-surface-z6 bg-surface-z2/15;
79
+ @apply text-surface-z6 bg-surface-z2/15;
80
80
  }
81
81
 
82
82
  [data-style='glass'] [data-tree-item-content][data-active='true'] [data-item-badge] {
83
- @apply text-primary-z8 bg-primary-z5/25;
83
+ @apply text-primary-z8 bg-primary-z5/25;
84
84
  }
85
85
 
86
86
  /* =============================================================================
@@ -88,17 +88,23 @@
88
88
  ============================================================================= */
89
89
 
90
90
  [data-style='glass'] [data-tree-node][data-selected='true'] [data-tree-node-row] {
91
- @apply bg-primary-z5/20;
91
+ @apply bg-primary-z5/20;
92
92
  }
93
93
 
94
- [data-style='glass'] [data-tree]:focus-within [data-tree-node][data-selected='true'] [data-tree-node-row] {
95
- @apply bg-primary-z5/30;
94
+ [data-style='glass']
95
+ [data-tree]:focus-within
96
+ [data-tree-node][data-selected='true']
97
+ [data-tree-node-row] {
98
+ @apply bg-primary-z5/30;
96
99
  }
97
100
 
98
101
  [data-style='glass'] [data-tree-node][data-selected='true'] [data-tree-item-content] {
99
- @apply text-primary-z9;
102
+ @apply text-primary-z9;
100
103
  }
101
104
 
102
- [data-style='glass'] [data-tree-node][data-selected='true'] [data-tree-item-content] [data-item-icon] {
103
- @apply text-primary-z6;
105
+ [data-style='glass']
106
+ [data-tree-node][data-selected='true']
107
+ [data-tree-item-content]
108
+ [data-item-icon] {
109
+ @apply text-primary-z6;
104
110
  }
@@ -82,22 +82,23 @@
82
82
 
83
83
  [data-style='material'] [data-button][data-style='gradient'][data-variant='default'],
84
84
  [data-style='material'] [data-button][data-style='gradient']:not([data-variant]) {
85
- @apply from-surface-z3 to-surface-z1 text-surface-z10 shadow-md bg-gradient-to-br;
85
+ @apply from-surface-z3 to-surface-z1 text-surface-z10 bg-gradient-to-br shadow-md;
86
86
  }
87
87
 
88
88
  [data-style='material'] [data-button][data-style='gradient'][data-variant='primary'] {
89
- @apply from-primary-z5 to-primary-z3 text-on-primary shadow-md bg-gradient-to-br;
89
+ @apply from-primary-z5 to-primary-z3 text-on-primary bg-gradient-to-br shadow-md;
90
90
  }
91
91
 
92
92
  [data-style='material'] [data-button][data-style='gradient'][data-variant='secondary'] {
93
- @apply from-secondary-z5 to-secondary-z3 text-on-secondary shadow-md bg-gradient-to-br;
93
+ @apply from-secondary-z5 to-secondary-z3 text-on-secondary bg-gradient-to-br shadow-md;
94
94
  }
95
95
 
96
96
  [data-style='material'] [data-button][data-style='gradient'][data-variant='danger'] {
97
- @apply from-danger-z5 to-danger-z3 text-on-danger shadow-md bg-gradient-to-br;
97
+ @apply from-danger-z5 to-danger-z3 text-on-danger bg-gradient-to-br shadow-md;
98
98
  }
99
99
 
100
- [data-style='material'] [data-button][data-style='gradient']:hover:not(:disabled):not([data-disabled]) {
100
+ [data-style='material']
101
+ [data-button][data-style='gradient']:hover:not(:disabled):not([data-disabled]) {
101
102
  filter: brightness(1.08);
102
103
  @apply shadow-lg;
103
104
  }
@@ -131,16 +132,19 @@
131
132
  Hover States
132
133
  ============================================================================= */
133
134
 
134
- [data-style='material'] [data-button][data-style='default']:hover:not(:disabled):not([data-disabled]),
135
+ [data-style='material']
136
+ [data-button][data-style='default']:hover:not(:disabled):not([data-disabled]),
135
137
  [data-style='material'] [data-button]:not([data-style]):hover:not(:disabled):not([data-disabled]) {
136
138
  @apply shadow-md;
137
139
  }
138
140
 
139
- [data-style='material'] [data-button][data-style='outline']:hover:not(:disabled):not([data-disabled]) {
141
+ [data-style='material']
142
+ [data-button][data-style='outline']:hover:not(:disabled):not([data-disabled]) {
140
143
  @apply bg-surface-z1;
141
144
  }
142
145
 
143
- [data-style='material'] [data-button][data-style='ghost']:hover:not(:disabled):not([data-disabled]) {
146
+ [data-style='material']
147
+ [data-button][data-style='ghost']:hover:not(:disabled):not([data-disabled]) {
144
148
  @apply bg-surface-z2;
145
149
  }
146
150
 
@@ -48,7 +48,7 @@
48
48
  ============================================================================= */
49
49
 
50
50
  [data-style='material'] [data-card][data-card-interactive]:focus-visible {
51
- @apply ring-primary-z4 outline-none ring-2 ring-offset-2;
51
+ @apply ring-primary-z4 ring-2 ring-offset-2 outline-none;
52
52
  }
53
53
 
54
54
  /* =============================================================================
@@ -19,7 +19,7 @@
19
19
 
20
20
  /* Input root: outlined border */
21
21
  [data-style='material'] [data-input-root] {
22
- @apply flex items-center border border-surface-z4 rounded bg-transparent p-0 transition-all;
22
+ @apply border-surface-z4 flex items-center rounded border bg-transparent p-0 transition-all;
23
23
  background-image: none;
24
24
  }
25
25
 
@@ -33,10 +33,12 @@
33
33
  }
34
34
 
35
35
  /* Inputs inside wrapper */
36
- [data-style='material'] [data-input-root] input:not([type='checkbox'], [type='radio'], [type='color']),
36
+ [data-style='material']
37
+ [data-input-root]
38
+ input:not([type='checkbox'], [type='radio'], [type='color']),
37
39
  [data-style='material'] [data-input-root] textarea,
38
40
  [data-style='material'] [data-input-root] select {
39
- @apply bg-transparent text-surface-z9 w-full border-none px-3 py-2.5 outline-none transition-all;
41
+ @apply text-surface-z9 w-full border-none bg-transparent px-3 py-2.5 transition-all outline-none;
40
42
  font-size: 0.875rem;
41
43
  line-height: 1.25rem;
42
44
  }
@@ -47,18 +49,18 @@
47
49
 
48
50
  /* Select inside input-root */
49
51
  [data-style='material'] [data-input-root] [data-select-trigger] {
50
- @apply bg-transparent text-surface-z9 border-none rounded px-3 shadow-none ring-0 focus:outline-none;
52
+ @apply text-surface-z9 rounded border-none bg-transparent px-3 shadow-none ring-0 focus:outline-none;
51
53
  font-size: 0.875rem;
52
54
  }
53
55
 
54
56
  /* Suppress standalone select open-state ring/border when inside input-root */
55
57
  [data-style='material'] [data-input-root] [data-select][data-open='true'] [data-select-trigger] {
56
- @apply border-none ring-0 shadow-none;
58
+ @apply border-none shadow-none ring-0;
57
59
  }
58
60
 
59
61
  /* Labels: floating label effect (exclude checkbox — uses inline label) */
60
62
  [data-style='material'] [data-field-root]:not([data-field-type='checkbox']) [data-field] > label {
61
- @apply text-surface-z5 text-sm absolute left-3 px-1 transition-all pointer-events-none;
63
+ @apply text-surface-z5 pointer-events-none absolute left-3 px-1 text-sm transition-all;
62
64
  top: 50%;
63
65
  transform: translateY(-50%);
64
66
  background: transparent;
@@ -66,8 +68,14 @@
66
68
  }
67
69
 
68
70
  /* Label floats up when input has focus or value */
69
- [data-style='material'] [data-field-root]:not([data-field-type='checkbox']) [data-field]:has([data-input-root]:focus-within) > label,
70
- [data-style='material'] [data-field-root]:not([data-field-type='checkbox']):not([data-field-empty='true']) [data-field] > label {
71
+ [data-style='material']
72
+ [data-field-root]:not([data-field-type='checkbox'])
73
+ [data-field]:has([data-input-root]:focus-within)
74
+ > label,
75
+ [data-style='material']
76
+ [data-field-root]:not([data-field-type='checkbox']):not([data-field-empty='true'])
77
+ [data-field]
78
+ > label {
71
79
  @apply text-xs;
72
80
  top: 0;
73
81
  transform: translateY(-50%);
@@ -75,7 +83,10 @@
75
83
  padding-inline: 0.25rem;
76
84
  }
77
85
 
78
- [data-style='material'] [data-field-root]:not([data-field-type='checkbox']) [data-field]:has([data-input-root]:focus-within) > label {
86
+ [data-style='material']
87
+ [data-field-root]:not([data-field-type='checkbox'])
88
+ [data-field]:has([data-input-root]:focus-within)
89
+ > label {
79
90
  @apply text-primary-z5;
80
91
  }
81
92
 
@@ -105,7 +116,7 @@
105
116
 
106
117
  /* Disabled state */
107
118
  [data-style='material'] [data-field-disabled] [data-input-root] {
108
- @apply border-surface-z3 bg-surface-z1 opacity-60 cursor-not-allowed;
119
+ @apply border-surface-z3 bg-surface-z1 cursor-not-allowed opacity-60;
109
120
  }
110
121
 
111
122
  /* Error state */
@@ -113,18 +124,21 @@
113
124
  @apply border-danger-z4;
114
125
  }
115
126
 
116
- [data-style='material'] [data-field-root]:not([data-field-type='checkbox'])[data-field-state='fail'] [data-field] > label {
127
+ [data-style='material']
128
+ [data-field-root]:not([data-field-type='checkbox'])[data-field-state='fail']
129
+ [data-field]
130
+ > label {
117
131
  @apply text-danger-z4;
118
132
  }
119
133
 
120
134
  /* Description */
121
135
  [data-style='material'] [data-description] {
122
- @apply text-surface-z5 mt-1 text-xs px-3;
136
+ @apply text-surface-z5 mt-1 px-3 text-xs;
123
137
  }
124
138
 
125
139
  /* Message */
126
140
  [data-style='material'] [data-message] {
127
- @apply text-danger-z5 text-xs mt-1 px-3;
141
+ @apply text-danger-z5 mt-1 px-3 text-xs;
128
142
  }
129
143
 
130
144
  /* Checkbox */
@@ -132,7 +146,9 @@
132
146
  @apply text-surface-z5 text-lg;
133
147
  }
134
148
 
135
- [data-style='material'] [data-checkbox-root][data-variant='custom']:has(input:checked) [data-checkbox-icon] {
149
+ [data-style='material']
150
+ [data-checkbox-root][data-variant='custom']:has(input:checked)
151
+ [data-checkbox-icon] {
136
152
  @apply text-primary-z5;
137
153
  }
138
154
 
@@ -9,7 +9,7 @@
9
9
  ============================================================================= */
10
10
 
11
11
  [data-style='material'] [data-list]:focus-within {
12
- @apply outline-none;
12
+ @apply outline-none;
13
13
  }
14
14
 
15
15
  /* =============================================================================
@@ -17,34 +17,38 @@
17
17
  ============================================================================= */
18
18
 
19
19
  [data-style='material'] [data-list] [data-list-item] {
20
- @apply text-surface-z8;
20
+ @apply text-surface-z8;
21
21
  }
22
22
 
23
23
  [data-style='material'] [data-list] a[data-list-item],
24
24
  [data-style='material'] [data-list] button[data-list-item] {
25
- @apply text-surface-z7;
25
+ @apply text-surface-z7;
26
26
  }
27
27
 
28
28
  /* Hover and focus (keyboard navigation) */
29
- [data-style='material'] [data-list] [data-list-item]:hover:not(:disabled):not([data-disabled='true']),
30
- [data-style='material'] [data-list] [data-list-item]:focus:not(:disabled):not([data-disabled='true']) {
31
- @apply bg-surface-z2 text-surface-z10 outline-none;
29
+ [data-style='material']
30
+ [data-list]
31
+ [data-list-item]:hover:not(:disabled):not([data-disabled='true']),
32
+ [data-style='material']
33
+ [data-list]
34
+ [data-list-item]:focus:not(:disabled):not([data-disabled='true']) {
35
+ @apply bg-surface-z2 text-surface-z10 outline-none;
32
36
  }
33
37
 
34
38
  /* Active state — muted when list not focused */
35
39
  [data-style='material'] [data-list] [data-list-item][data-active='true'] {
36
- @apply bg-surface-z2 text-primary-z9;
40
+ @apply bg-surface-z2 text-primary-z9;
37
41
  }
38
42
 
39
43
  /* Active state — full highlight when list has focus */
40
44
  [data-style='material'] [data-list]:focus-within [data-list-item][data-active='true'] {
41
- @apply bg-primary-z2 text-primary-z9;
45
+ @apply bg-primary-z2 text-primary-z9;
42
46
  }
43
47
 
44
48
  /* Active + hover/focus */
45
49
  [data-style='material'] [data-list] [data-list-item][data-active='true']:hover:not(:disabled),
46
50
  [data-style='material'] [data-list] [data-list-item][data-active='true']:focus:not(:disabled) {
47
- @apply bg-primary-z3;
51
+ @apply bg-primary-z3;
48
52
  }
49
53
 
50
54
  /* =============================================================================
@@ -52,32 +56,32 @@
52
56
  ============================================================================= */
53
57
 
54
58
  [data-style='material'] [data-list] [data-list-item] [data-item-icon] {
55
- @apply text-surface-z5;
59
+ @apply text-surface-z5;
56
60
  }
57
61
 
58
62
  [data-style='material'] [data-list] [data-list-item]:hover:not(:disabled) [data-item-icon],
59
63
  [data-style='material'] [data-list] [data-list-item]:focus:not(:disabled) [data-item-icon] {
60
- @apply text-surface-z7;
64
+ @apply text-surface-z7;
61
65
  }
62
66
 
63
67
  [data-style='material'] [data-list] [data-list-item][data-active='true'] [data-item-icon] {
64
- @apply text-primary-z6;
68
+ @apply text-primary-z6;
65
69
  }
66
70
 
67
71
  [data-style='material'] [data-list] [data-list-item] [data-item-description] {
68
- @apply text-surface-z5;
72
+ @apply text-surface-z5;
69
73
  }
70
74
 
71
75
  [data-style='material'] [data-list] [data-list-item][data-active='true'] [data-item-description] {
72
- @apply text-primary-z7;
76
+ @apply text-primary-z7;
73
77
  }
74
78
 
75
79
  [data-style='material'] [data-list] [data-list-item] [data-item-badge] {
76
- @apply text-surface-z6 bg-surface-z2 rounded-full;
80
+ @apply text-surface-z6 bg-surface-z2 rounded-full;
77
81
  }
78
82
 
79
83
  [data-style='material'] [data-list] [data-list-item][data-active='true'] [data-item-badge] {
80
- @apply text-primary-z8 bg-primary-z2;
84
+ @apply text-primary-z8 bg-primary-z2;
81
85
  }
82
86
 
83
87
  /* =============================================================================
@@ -85,12 +89,12 @@
85
89
  ============================================================================= */
86
90
 
87
91
  [data-style='material'] [data-list] [data-list-group] {
88
- @apply text-surface-z6 font-medium;
92
+ @apply text-surface-z6 font-medium;
89
93
  }
90
94
 
91
95
  [data-style='material'] [data-list] [data-list-group]:hover:not(:disabled),
92
96
  [data-style='material'] [data-list] [data-list-group]:focus:not(:disabled) {
93
- @apply bg-surface-z3 text-surface-z8;
97
+ @apply bg-surface-z3 text-surface-z8;
94
98
  }
95
99
 
96
100
  /* =============================================================================
@@ -98,7 +102,7 @@
98
102
  ============================================================================= */
99
103
 
100
104
  [data-style='material'] [data-list] [data-list-separator] {
101
- @apply bg-surface-z3;
105
+ @apply bg-surface-z3;
102
106
  }
103
107
 
104
108
  /* =============================================================================
@@ -106,17 +110,17 @@
106
110
  ============================================================================= */
107
111
 
108
112
  [data-style='material'] [data-list] [data-list-item][data-selected='true'] {
109
- @apply bg-primary-z2 text-primary-z9;
113
+ @apply bg-primary-z2 text-primary-z9;
110
114
  }
111
115
 
112
116
  [data-style='material'] [data-list]:focus-within [data-list-item][data-selected='true'] {
113
- @apply bg-primary-z2;
117
+ @apply bg-primary-z2;
114
118
  }
115
119
 
116
120
  [data-style='material'] [data-list] [data-list-item][data-selected='true']:hover:not(:disabled) {
117
- @apply bg-primary-z3;
121
+ @apply bg-primary-z3;
118
122
  }
119
123
 
120
124
  [data-style='material'] [data-list] [data-list-item][data-selected='true'] [data-item-icon] {
121
- @apply text-primary-z6;
125
+ @apply text-primary-z6;
122
126
  }