@rokkit/themes 1.0.5 → 1.1.1

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 (155) hide show
  1. package/build.mjs +4 -2
  2. package/package.json +3 -2
  3. package/src/base/carousel.css +2 -1
  4. package/src/base/code-block.css +76 -0
  5. package/src/base/display.css +16 -8
  6. package/src/base/frame.css +36 -0
  7. package/src/base/index.css +2 -0
  8. package/src/base/input.css +49 -10
  9. package/src/base/nav-content.css +3 -3
  10. package/src/base/stepper.css +14 -7
  11. package/src/base/tabs.css +15 -2
  12. package/src/base/typography.css +32 -13
  13. package/src/frosted/button.css +27 -27
  14. package/src/frosted/card.css +8 -8
  15. package/src/frosted/chart.css +6 -6
  16. package/src/frosted/code-block.css +33 -0
  17. package/src/frosted/dropdown.css +9 -9
  18. package/src/frosted/floating-action.css +10 -10
  19. package/src/frosted/floating-navigation.css +13 -13
  20. package/src/frosted/frame.css +17 -0
  21. package/src/frosted/index.css +2 -0
  22. package/src/frosted/input.css +16 -16
  23. package/src/frosted/list.css +25 -25
  24. package/src/frosted/menu.css +13 -13
  25. package/src/frosted/message.css +8 -8
  26. package/src/frosted/range.css +8 -8
  27. package/src/frosted/search-filter.css +8 -8
  28. package/src/frosted/select.css +31 -31
  29. package/src/frosted/status-list.css +17 -17
  30. package/src/frosted/step-indicator.css +8 -8
  31. package/src/frosted/swatch.css +3 -3
  32. package/src/frosted/switch.css +3 -3
  33. package/src/frosted/table.css +16 -16
  34. package/src/frosted/tabs.css +8 -8
  35. package/src/frosted/timeline.css +5 -5
  36. package/src/frosted/toc.css +4 -4
  37. package/src/frosted/toggle.css +7 -7
  38. package/src/frosted/toolbar.css +15 -15
  39. package/src/frosted/tree.css +19 -19
  40. package/src/material/button.css +29 -29
  41. package/src/material/card.css +12 -12
  42. package/src/material/chart.css +6 -6
  43. package/src/material/code-block.css +33 -0
  44. package/src/material/dropdown.css +11 -11
  45. package/src/material/floating-action.css +10 -10
  46. package/src/material/floating-navigation.css +13 -13
  47. package/src/material/frame.css +17 -0
  48. package/src/material/index.css +2 -0
  49. package/src/material/input.css +21 -21
  50. package/src/material/list.css +23 -23
  51. package/src/material/menu.css +16 -16
  52. package/src/material/message.css +8 -8
  53. package/src/material/range.css +8 -8
  54. package/src/material/search-filter.css +8 -8
  55. package/src/material/select.css +31 -31
  56. package/src/material/status-list.css +17 -17
  57. package/src/material/step-indicator.css +8 -8
  58. package/src/material/swatch.css +3 -3
  59. package/src/material/switch.css +6 -6
  60. package/src/material/table.css +16 -16
  61. package/src/material/tabs.css +7 -7
  62. package/src/material/timeline.css +5 -5
  63. package/src/material/toc.css +4 -4
  64. package/src/material/toggle.css +6 -6
  65. package/src/material/toolbar.css +11 -11
  66. package/src/material/tree.css +17 -17
  67. package/src/minimal/button.css +30 -30
  68. package/src/minimal/card.css +13 -13
  69. package/src/minimal/chart.css +6 -6
  70. package/src/minimal/code-block.css +33 -0
  71. package/src/minimal/dropdown.css +11 -11
  72. package/src/minimal/floating-action.css +10 -10
  73. package/src/minimal/floating-navigation.css +12 -12
  74. package/src/minimal/frame.css +17 -0
  75. package/src/minimal/index.css +2 -0
  76. package/src/minimal/input.css +24 -24
  77. package/src/minimal/list.css +52 -26
  78. package/src/minimal/menu.css +15 -15
  79. package/src/minimal/message.css +8 -8
  80. package/src/minimal/range.css +7 -7
  81. package/src/minimal/search-filter.css +8 -8
  82. package/src/minimal/select.css +27 -27
  83. package/src/minimal/status-list.css +17 -17
  84. package/src/minimal/step-indicator.css +8 -8
  85. package/src/minimal/swatch.css +3 -3
  86. package/src/minimal/switch.css +6 -6
  87. package/src/minimal/table.css +16 -16
  88. package/src/minimal/tabs.css +14 -14
  89. package/src/minimal/timeline.css +4 -4
  90. package/src/minimal/toc.css +4 -4
  91. package/src/minimal/toggle.css +7 -7
  92. package/src/minimal/toolbar.css +14 -14
  93. package/src/minimal/tree.css +24 -18
  94. package/src/rokkit/avatar.css +6 -6
  95. package/src/rokkit/badge.css +5 -5
  96. package/src/rokkit/button.css +55 -37
  97. package/src/rokkit/card.css +11 -11
  98. package/src/rokkit/chart.css +6 -6
  99. package/src/rokkit/code-block.css +33 -0
  100. package/src/rokkit/connector.css +1 -1
  101. package/src/rokkit/divider.css +5 -5
  102. package/src/rokkit/dropdown.css +11 -11
  103. package/src/rokkit/floating-action.css +11 -11
  104. package/src/rokkit/floating-navigation.css +15 -15
  105. package/src/rokkit/frame.css +17 -0
  106. package/src/rokkit/grid.css +8 -8
  107. package/src/rokkit/index.css +2 -0
  108. package/src/rokkit/input.css +17 -17
  109. package/src/rokkit/list.css +24 -24
  110. package/src/rokkit/menu.css +14 -14
  111. package/src/rokkit/message.css +12 -12
  112. package/src/rokkit/range.css +10 -10
  113. package/src/rokkit/search-filter.css +8 -8
  114. package/src/rokkit/select.css +34 -34
  115. package/src/rokkit/status-list.css +17 -17
  116. package/src/rokkit/step-indicator.css +8 -8
  117. package/src/rokkit/swatch.css +3 -3
  118. package/src/rokkit/switch.css +6 -6
  119. package/src/rokkit/table.css +16 -16
  120. package/src/rokkit/tabs.css +31 -28
  121. package/src/rokkit/timeline.css +5 -5
  122. package/src/rokkit/toc.css +4 -4
  123. package/src/rokkit/toggle.css +21 -10
  124. package/src/rokkit/toolbar.css +15 -15
  125. package/src/rokkit/tooltip.css +1 -1
  126. package/src/rokkit/tree.css +23 -23
  127. package/src/rokkit/upload-progress.css +18 -18
  128. package/src/rokkit/upload-target.css +8 -8
  129. package/src/zen-sumi/button.css +29 -29
  130. package/src/zen-sumi/card.css +12 -12
  131. package/src/zen-sumi/chart.css +6 -6
  132. package/src/zen-sumi/code-block.css +35 -0
  133. package/src/zen-sumi/dropdown.css +10 -10
  134. package/src/zen-sumi/floating-action.css +7 -7
  135. package/src/zen-sumi/floating-navigation.css +11 -11
  136. package/src/zen-sumi/frame.css +20 -0
  137. package/src/zen-sumi/index.css +2 -0
  138. package/src/zen-sumi/input.css +49 -23
  139. package/src/zen-sumi/list.css +20 -20
  140. package/src/zen-sumi/menu.css +14 -14
  141. package/src/zen-sumi/message.css +8 -8
  142. package/src/zen-sumi/range.css +7 -7
  143. package/src/zen-sumi/search-filter.css +8 -8
  144. package/src/zen-sumi/select.css +26 -26
  145. package/src/zen-sumi/status-list.css +17 -17
  146. package/src/zen-sumi/step-indicator.css +8 -8
  147. package/src/zen-sumi/swatch.css +3 -3
  148. package/src/zen-sumi/switch.css +5 -5
  149. package/src/zen-sumi/table.css +16 -16
  150. package/src/zen-sumi/tabs.css +8 -8
  151. package/src/zen-sumi/timeline.css +4 -4
  152. package/src/zen-sumi/toc.css +4 -4
  153. package/src/zen-sumi/toggle.css +18 -10
  154. package/src/zen-sumi/toolbar.css +14 -14
  155. package/src/zen-sumi/tree.css +16 -16
@@ -5,64 +5,64 @@
5
5
  /* ── @rokkit/ui StatusList: icon colors by status (pass/fail/warn/unknown) ── */
6
6
 
7
7
  [data-style='rokkit'] [data-status-item][data-status='pass'] span {
8
- @apply text-success-z6;
8
+ @apply text-success;
9
9
  }
10
10
  [data-style='rokkit'] [data-status-item][data-status='fail'] span {
11
- @apply text-error-z6;
11
+ @apply text-error;
12
12
  }
13
13
  [data-style='rokkit'] [data-status-item][data-status='warn'] span {
14
- @apply text-warning-z6;
14
+ @apply text-warning;
15
15
  }
16
16
  [data-style='rokkit'] [data-status-item][data-status='unknown'] span {
17
- @apply text-surface-z4;
17
+ @apply text-paper-edge;
18
18
  }
19
19
 
20
20
  /* ── @rokkit/ui StatusList: text color by status ── */
21
21
 
22
22
  [data-style='rokkit'] [data-status-item][data-status='pass'] {
23
- @apply text-success-z7;
23
+ @apply text-success;
24
24
  }
25
25
  [data-style='rokkit'] [data-status-item][data-status='fail'] {
26
- @apply text-error-z7;
26
+ @apply text-error;
27
27
  }
28
28
  [data-style='rokkit'] [data-status-item][data-status='warn'] {
29
- @apply text-warning-z7;
29
+ @apply text-warning;
30
30
  }
31
31
  [data-style='rokkit'] [data-status-item][data-status='unknown'] {
32
- @apply text-surface-z5;
32
+ @apply text-ink-soft;
33
33
  }
34
34
 
35
35
  /* ── @rokkit/forms StatusList: group headers by severity ── */
36
36
 
37
37
  [data-style='rokkit'] [data-status-group][data-severity='error'] [data-status-header] {
38
- @apply text-error-z6;
38
+ @apply text-error;
39
39
  }
40
40
  [data-style='rokkit'] [data-status-group][data-severity='warning'] [data-status-header] {
41
- @apply text-warning-z6;
41
+ @apply text-warning;
42
42
  }
43
43
  [data-style='rokkit'] [data-status-group][data-severity='info'] [data-status-header] {
44
- @apply text-info-z6;
44
+ @apply text-info;
45
45
  }
46
46
  [data-style='rokkit'] [data-status-group][data-severity='success'] [data-status-header] {
47
- @apply text-success-z6;
47
+ @apply text-success;
48
48
  }
49
49
 
50
50
  /* ── @rokkit/forms StatusList: item colors by severity ── */
51
51
 
52
52
  [data-style='rokkit'] [data-status-item][data-status='error'] {
53
- @apply text-error-z7;
53
+ @apply text-error;
54
54
  }
55
55
  [data-style='rokkit'] [data-status-item][data-status='warning'] {
56
- @apply text-warning-z7;
56
+ @apply text-warning;
57
57
  }
58
58
  [data-style='rokkit'] [data-status-item][data-status='info'] {
59
- @apply text-info-z7;
59
+ @apply text-info;
60
60
  }
61
61
  [data-style='rokkit'] [data-status-item][data-status='success'] {
62
- @apply text-success-z7;
62
+ @apply text-success;
63
63
  }
64
64
 
65
65
  /* Count badge */
66
66
  [data-style='rokkit'] [data-status-count] {
67
- @apply bg-surface-z3 text-surface-z7 font-semibold;
67
+ @apply bg-paper-mute text-ink-mute font-semibold;
68
68
  }
@@ -3,38 +3,38 @@
3
3
  /* ── Number circles ── */
4
4
 
5
5
  [data-style='rokkit'] [data-step-item][data-step-state='complete'] [data-step-number] {
6
- @apply bg-gradient-to-r from-primary-z5 to-secondary-z5 border-primary-z5 text-on-primary;
6
+ @apply bg-gradient-to-r from-primary to-accent border-primary text-on-primary;
7
7
  }
8
8
 
9
9
  [data-style='rokkit'] [data-step-item][data-step-state='current'] [data-step-number] {
10
- @apply bg-surface-z2 border-primary-z5 text-primary-z7 ring-3 ring-primary-z5/20;
10
+ @apply bg-paper-mute border-primary text-primary ring-3 ring-primary/20;
11
11
  }
12
12
 
13
13
  [data-style='rokkit'] [data-step-item][data-step-state='upcoming'] [data-step-number] {
14
- @apply bg-surface-z1 border-surface-z3 text-surface-z5;
14
+ @apply bg-paper-soft border-paper-mute text-ink-soft;
15
15
  }
16
16
 
17
17
  /* ── Labels ── */
18
18
 
19
19
  [data-style='rokkit'] [data-step-item][data-step-state='complete'] [data-step-label] {
20
- @apply text-primary-z7;
20
+ @apply text-primary;
21
21
  }
22
22
 
23
23
  [data-style='rokkit'] [data-step-item][data-step-state='current'] [data-step-label] {
24
- @apply text-surface-z9 font-semibold;
24
+ @apply text-ink font-semibold;
25
25
  }
26
26
 
27
27
  [data-style='rokkit'] [data-step-item][data-step-state='upcoming'] [data-step-label] {
28
- @apply text-surface-z5;
28
+ @apply text-ink-soft;
29
29
  }
30
30
 
31
31
  /* ── Connector lines ── */
32
32
 
33
33
  [data-style='rokkit'] [data-step-item][data-step-state='complete']::after {
34
- @apply bg-primary-z5;
34
+ @apply bg-primary;
35
35
  }
36
36
 
37
37
  [data-style='rokkit'] [data-step-item][data-step-state='current']::after,
38
38
  [data-style='rokkit'] [data-step-item][data-step-state='upcoming']::after {
39
- @apply bg-surface-z3;
39
+ @apply bg-paper-mute;
40
40
  }
@@ -4,17 +4,17 @@
4
4
  */
5
5
 
6
6
  [data-style='rokkit'] [data-swatch-item][data-selected] {
7
- @apply from-primary-z5 to-secondary-z5 bg-gradient-to-br;
7
+ @apply from-primary to-accent bg-gradient-to-br;
8
8
  }
9
9
 
10
10
  [data-style='rokkit']
11
11
  [data-swatch-item]:hover:not(:disabled):not([data-disabled]):not([data-selected]),
12
12
  [data-style='rokkit']
13
13
  [data-swatch-item]:focus-visible:not(:disabled):not([data-disabled]):not([data-selected]) {
14
- @apply outline-primary-z4;
14
+ @apply outline-primary;
15
15
  }
16
16
 
17
17
  [data-style='rokkit'] [data-swatch-item][data-selected]:focus-visible {
18
- @apply outline-primary-z6;
18
+ @apply outline-primary;
19
19
  outline-offset: 3px;
20
20
  }
@@ -3,27 +3,27 @@
3
3
  */
4
4
 
5
5
  [data-style='rokkit'] [data-switch-track] {
6
- @apply from-surface-z3 to-surface-z2 border-surface-z4 border bg-gradient-to-b;
6
+ @apply from-paper-mute to-paper-mute border-paper-edge border bg-gradient-to-b;
7
7
  }
8
8
 
9
9
  [data-style='rokkit'] [data-switch] [data-switch-thumb] {
10
10
  --switch-thumb-travel: 1.125rem;
11
- @apply bg-surface-z6 shadow-sm;
11
+ @apply bg-ink-soft shadow-sm;
12
12
  }
13
13
 
14
14
  [data-style='rokkit'] [data-switch]:focus-visible [data-switch-track] {
15
- @apply ring-primary-z5 ring-2 ring-offset-1;
15
+ @apply ring-primary ring-2 ring-offset-1;
16
16
  }
17
17
 
18
18
  /* On state */
19
19
  [data-style='rokkit'] [data-switch][aria-checked='true'] [data-switch-track] {
20
- @apply from-primary-z4 to-secondary-z4 border-primary-z5 bg-gradient-to-r;
20
+ @apply from-primary to-accent border-primary bg-gradient-to-r;
21
21
  }
22
22
 
23
23
  [data-style='rokkit'] [data-switch][aria-checked='true'] [data-switch-thumb] {
24
- @apply bg-surface-z0 shadow-md;
24
+ @apply bg-paper shadow-md;
25
25
  }
26
26
 
27
27
  [data-style='rokkit'] [data-switch-label] {
28
- @apply text-surface-z7;
28
+ @apply text-ink-mute;
29
29
  }
@@ -9,27 +9,27 @@
9
9
  ============================================================================= */
10
10
 
11
11
  [data-style='rokkit'] [data-table-header] th {
12
- @apply text-surface-z6 border-surface-z4 border-b bg-surface-z2;
12
+ @apply text-ink-soft border-paper-edge border-b bg-paper-mute;
13
13
  }
14
14
 
15
15
  [data-style='rokkit'] [data-table-header-cell][data-sortable='true']:hover {
16
- @apply text-surface-z8;
16
+ @apply text-ink-mute;
17
17
  }
18
18
 
19
19
  [data-style='rokkit'] [data-table-header-cell][data-sort-order='ascending'],
20
20
  [data-style='rokkit'] [data-table-header-cell][data-sort-order='descending'] {
21
- @apply text-primary-z7;
21
+ @apply text-primary;
22
22
  }
23
23
 
24
24
  [data-style='rokkit'] [data-table-sort-icon] {
25
- @apply text-surface-z5;
25
+ @apply text-ink-soft;
26
26
  }
27
27
 
28
28
  [data-style='rokkit'] [data-table-header-cell][data-sort-order='ascending'] [data-table-sort-icon],
29
29
  [data-style='rokkit']
30
30
  [data-table-header-cell][data-sort-order='descending']
31
31
  [data-table-sort-icon] {
32
- @apply text-primary-z6;
32
+ @apply text-primary;
33
33
  }
34
34
 
35
35
  /* =============================================================================
@@ -37,7 +37,7 @@
37
37
  ============================================================================= */
38
38
 
39
39
  [data-style='rokkit'] [data-table-caption] {
40
- @apply text-surface-z7;
40
+ @apply text-ink-mute;
41
41
  }
42
42
 
43
43
  /* =============================================================================
@@ -45,19 +45,19 @@
45
45
  ============================================================================= */
46
46
 
47
47
  [data-style='rokkit'] [data-table-row] {
48
- @apply text-surface-z7 border-surface-z3 border-b;
48
+ @apply text-ink-mute border-paper-mute border-b;
49
49
  }
50
50
 
51
51
  [data-style='rokkit'] [data-table-row]:hover {
52
- @apply from-surface-z3 to-surface-z2 bg-gradient-to-b;
52
+ @apply from-paper-mute to-paper-mute bg-gradient-to-b;
53
53
  }
54
54
 
55
55
  [data-style='rokkit'] [data-table-row]:focus {
56
- @apply from-surface-z3 to-surface-z2 text-surface-z10 bg-gradient-to-b outline-none;
56
+ @apply from-paper-mute to-paper-mute text-ink bg-gradient-to-b outline-none;
57
57
  }
58
58
 
59
59
  [data-style='rokkit'] [data-table-row][data-selected='true'] {
60
- @apply from-primary-z5 to-secondary-z5 text-primary-z9 bg-gradient-to-r;
60
+ @apply from-primary to-accent text-primary bg-gradient-to-r;
61
61
  }
62
62
 
63
63
  /* =============================================================================
@@ -65,7 +65,7 @@
65
65
  ============================================================================= */
66
66
 
67
67
  [data-style='rokkit'] [data-table-striped] [data-table-body] tr:nth-child(even) {
68
- @apply bg-surface-z3;
68
+ @apply bg-paper-mute;
69
69
  }
70
70
 
71
71
  /* =============================================================================
@@ -73,7 +73,7 @@
73
73
  ============================================================================= */
74
74
 
75
75
  [data-style='rokkit'] [data-table-empty] {
76
- @apply text-surface-z5;
76
+ @apply text-ink-soft;
77
77
  }
78
78
 
79
79
  /* =============================================================================
@@ -81,11 +81,11 @@
81
81
  ============================================================================= */
82
82
 
83
83
  [data-style='rokkit'] [data-table-cell] [data-cell-icon] {
84
- @apply text-surface-z5;
84
+ @apply text-ink-soft;
85
85
  }
86
86
 
87
87
  [data-style='rokkit'] [data-table-row][data-selected='true'] [data-cell-icon] {
88
- @apply text-primary-z7;
88
+ @apply text-primary;
89
89
  }
90
90
 
91
91
  /* =============================================================================
@@ -94,11 +94,11 @@
94
94
 
95
95
  @media (max-width: 639px) {
96
96
  [data-style='rokkit'] [data-table-responsive] [data-table-row] {
97
- @apply bg-surface-z2 border-surface-z4 border;
97
+ @apply bg-paper-mute border-paper-edge border;
98
98
  }
99
99
 
100
100
  [data-style='rokkit'] [data-table-responsive] [data-table-cell]::before {
101
- @apply text-surface-z5;
101
+ @apply text-ink-soft;
102
102
  }
103
103
 
104
104
  /* Disable striped alternating bg in card layout */
@@ -9,7 +9,7 @@
9
9
  ============================================================================= */
10
10
 
11
11
  [data-style='rokkit'] [data-tabs-list] {
12
- @apply border-surface-z3 gap-1 border-b-2 px-1;
12
+ @apply border-paper-mute gap-1 border-b-2 px-1;
13
13
  }
14
14
 
15
15
  [data-style='rokkit'] [data-tabs][data-position='after'] [data-tabs-list] {
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  [data-style='rokkit'] [data-tabs-list]:focus-within {
30
- @apply border-secondary outline-none;
30
+ @apply border-accent outline-none;
31
31
  }
32
32
 
33
33
  /* =============================================================================
@@ -35,7 +35,7 @@
35
35
  ============================================================================= */
36
36
 
37
37
  [data-style='rokkit'] [data-tabs-trigger] {
38
- @apply bg-surface-z1 flex-shrink-0 rounded-t;
38
+ @apply bg-paper-soft text-ink-mute flex-shrink-0 rounded-t;
39
39
  }
40
40
 
41
41
  [data-style='rokkit'] [data-tabs][data-position='after'] [data-tabs-trigger] {
@@ -46,44 +46,47 @@
46
46
  @apply rounded-none rounded-l;
47
47
  }
48
48
 
49
- [data-style='rokkit']
50
- [data-tabs][data-orientation='vertical']
51
- [data-tabs-list]:focus-within
52
- [data-tabs-trigger][data-selected] {
53
- @apply bg-gradient-to-r;
54
- }
55
-
56
49
  [data-style='rokkit']
57
50
  [data-tabs][data-orientation='vertical'][data-position='after']
58
51
  [data-tabs-trigger] {
59
52
  @apply rounded-none rounded-r;
60
53
  }
61
54
 
55
+ /* Hover only on UNSELECTED tabs — the selected tab keeps its branded
56
+ * gradient + on-primary text. Without `:not([data-selected])` the hover
57
+ * rule overrode the selected gradient's text color with `text-ink-mute`,
58
+ * making the label hard to read on the saffron fill. */
62
59
  [data-style='rokkit']
63
- [data-tabs][data-orientation='vertical'][data-position='after']
64
- [data-tabs-list]:focus-within
65
- [data-tabs-trigger][data-selected] {
66
- @apply bg-gradient-to-l;
60
+ [data-tabs-trigger]:hover:not([data-selected]):not(:disabled):not([data-disabled]) {
61
+ @apply bg-paper-mute text-ink-mute;
67
62
  }
68
63
 
69
- [data-style='rokkit'] [data-tabs-trigger]:hover:not(:disabled):not([data-disabled]) {
70
- @apply bg-surface-z2 text-surface-z8;
64
+ /* Selected — branded sheen at rest. The gradient runs from `--primary`
65
+ * to `--accent` via direct CSS (not `@apply from-primary to-accent`
66
+ * preset-wind3's gradient utilities silently drop in @apply when only
67
+ * named tokens are emitted). When the active skin maps accent ≡ primary,
68
+ * the gradient flattens to one tone, which is the expected fallback. */
69
+ [data-style='rokkit'] [data-tabs-trigger][data-selected] {
70
+ @apply text-on-primary;
71
+ background: linear-gradient(to bottom, var(--primary), var(--accent));
71
72
  }
72
73
 
73
- /* Selected state */
74
- [data-style='rokkit'] [data-tabs-trigger][data-selected] {
75
- @apply bg-surface-z3;
74
+ [data-style='rokkit']
75
+ [data-tabs][data-position='after']
76
+ [data-tabs-trigger][data-selected] {
77
+ background: linear-gradient(to top, var(--primary), var(--accent));
76
78
  }
77
79
 
78
- [data-style='rokkit'] [data-tabs-list]:focus-within [data-tabs-trigger][data-selected] {
79
- @apply from-primary-z5 to-secondary-z5 text-primary-z9 bg-gradient-to-b;
80
+ [data-style='rokkit']
81
+ [data-tabs][data-orientation='vertical']
82
+ [data-tabs-trigger][data-selected] {
83
+ background: linear-gradient(to right, var(--primary), var(--accent));
80
84
  }
81
85
 
82
86
  [data-style='rokkit']
83
- [data-tabs][data-position='after']
84
- [data-tabs-list]:focus-within
87
+ [data-tabs][data-orientation='vertical'][data-position='after']
85
88
  [data-tabs-trigger][data-selected] {
86
- @apply bg-gradient-to-t;
89
+ background: linear-gradient(to left, var(--primary), var(--accent));
87
90
  }
88
91
 
89
92
  /* =============================================================================
@@ -91,15 +94,15 @@
91
94
  ============================================================================= */
92
95
 
93
96
  [data-style='rokkit'] [data-tabs-trigger] [data-tabs-icon] {
94
- @apply text-surface-z5;
97
+ @apply text-ink-soft;
95
98
  }
96
99
 
97
100
  [data-style='rokkit'] [data-tabs-trigger]:hover:not(:disabled) [data-tabs-icon] {
98
- @apply text-surface-z7;
101
+ @apply text-ink-mute;
99
102
  }
100
103
 
101
104
  [data-style='rokkit'] [data-tabs-trigger][data-selected] [data-tabs-icon] {
102
- @apply text-primary-z7;
105
+ @apply text-on-primary;
103
106
  }
104
107
 
105
108
  /* =============================================================================
@@ -107,5 +110,5 @@
107
110
  ============================================================================= */
108
111
 
109
112
  [data-style='rokkit'] [data-tabs-content] {
110
- @apply text-surface-z8;
113
+ @apply text-ink-mute;
111
114
  }
@@ -9,7 +9,7 @@
9
9
  ============================================================================= */
10
10
 
11
11
  [data-style='rokkit'] [data-timeline-circle] {
12
- @apply border-surface-z4 text-surface-z6;
12
+ @apply border-paper-edge text-ink-soft;
13
13
  }
14
14
 
15
15
  [data-style='rokkit'] [data-timeline-item][data-completed] [data-timeline-circle] {
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  [data-style='rokkit'] [data-timeline-item][data-active] [data-timeline-circle] {
20
- @apply border-primary text-primary ring-3 ring-primary-z5/20;
20
+ @apply border-primary text-primary ring-3 ring-primary/20;
21
21
  }
22
22
 
23
23
  /* =============================================================================
@@ -25,7 +25,7 @@
25
25
  ============================================================================= */
26
26
 
27
27
  [data-style='rokkit'] [data-timeline-connector] {
28
- @apply bg-surface-z3;
28
+ @apply bg-paper-mute;
29
29
  }
30
30
 
31
31
  [data-style='rokkit'] [data-timeline-item][data-completed] [data-timeline-connector] {
@@ -37,9 +37,9 @@
37
37
  ============================================================================= */
38
38
 
39
39
  [data-style='rokkit'] [data-timeline-title] {
40
- @apply text-surface-z8;
40
+ @apply text-ink-mute;
41
41
  }
42
42
 
43
43
  [data-style='rokkit'] [data-timeline-description] {
44
- @apply text-surface-z6;
44
+ @apply text-ink-soft;
45
45
  }
@@ -1,18 +1,18 @@
1
1
  /* TableOfContents — Rokkit theme */
2
2
 
3
3
  [data-style='rokkit'] [data-toc] [data-toc-label] {
4
- @apply text-surface-z5;
4
+ @apply text-ink-soft;
5
5
  }
6
6
 
7
7
  [data-style='rokkit'] [data-toc] [data-toc-item] {
8
- @apply text-surface-z6;
8
+ @apply text-ink-soft;
9
9
  }
10
10
 
11
11
  [data-style='rokkit'] [data-toc] [data-toc-item]:hover,
12
12
  [data-style='rokkit'] [data-toc] [data-toc-item][data-toc-focused] {
13
- @apply text-surface-z9 outline-none;
13
+ @apply text-ink outline-none;
14
14
  }
15
15
 
16
16
  [data-style='rokkit'] [data-toc] [data-toc-item][data-toc-active] {
17
- @apply text-primary-z7 border-l-primary-z5;
17
+ @apply text-primary border-l-primary;
18
18
  }
@@ -8,8 +8,14 @@
8
8
  Toggle Container
9
9
  ============================================================================= */
10
10
 
11
+ /* `@apply from-X to-Y bg-gradient-to-r` silently drops in core token
12
+ * mode (preset-wind3 can't resolve `from-{role}` through @apply when
13
+ * only named tokens are emitted). The container and the selected
14
+ * option use explicit linear-gradient declarations that work in any
15
+ * token mode. */
11
16
  [data-style='rokkit'] [data-toggle] {
12
- @apply from-surface-z3 to-surface-z2 border-surface-z4 rounded-lg border bg-gradient-to-r;
17
+ @apply border-paper-edge rounded-lg border;
18
+ background: linear-gradient(to right, var(--paper-mute), var(--paper-mute));
13
19
  }
14
20
 
15
21
  /* =============================================================================
@@ -17,17 +23,22 @@
17
23
  ============================================================================= */
18
24
 
19
25
  [data-style='rokkit'] [data-toggle-option] {
20
- @apply text-surface-z6;
26
+ @apply text-ink-soft;
21
27
  }
22
28
 
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-r;
29
+ /* Hover applies only to UNSELECTED options so the branded selected
30
+ * gradient isn't overridden when the cursor passes over it. */
31
+ [data-style='rokkit'] [data-toggle-option]:hover:not(:disabled):not([data-disabled='true']):not([data-selected='true']),
32
+ [data-style='rokkit'] [data-toggle-option]:focus:not(:disabled):not([data-disabled='true']):not([data-selected='true']) {
33
+ @apply text-ink-mute;
34
+ background: linear-gradient(to right, var(--paper-edge), var(--paper-mute));
26
35
  }
27
36
 
28
- /* Selected state */
37
+ /* Selected state — primary→accent branded sheen + on-primary label so
38
+ * the chip reads as filled in both modes regardless of token vocabulary. */
29
39
  [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-r shadow-sm;
40
+ @apply border-primary text-on-primary border shadow-sm;
41
+ background: linear-gradient(to right, var(--primary), var(--accent));
31
42
  }
32
43
 
33
44
  /* =============================================================================
@@ -35,14 +46,14 @@
35
46
  ============================================================================= */
36
47
 
37
48
  [data-style='rokkit'] [data-toggle-option] [data-toggle-icon] {
38
- @apply text-surface-z5;
49
+ @apply text-ink-soft;
39
50
  }
40
51
 
41
52
  [data-style='rokkit'] [data-toggle-option]:hover:not(:disabled) [data-toggle-icon],
42
53
  [data-style='rokkit'] [data-toggle-option]:focus:not(:disabled) [data-toggle-icon] {
43
- @apply text-surface-z7;
54
+ @apply text-ink-mute;
44
55
  }
45
56
 
46
57
  [data-style='rokkit'] [data-toggle-option][data-selected='true'] [data-toggle-icon] {
47
- @apply text-primary-z7;
58
+ @apply text-on-primary;
48
59
  }
@@ -9,25 +9,25 @@
9
9
  ============================================================================= */
10
10
 
11
11
  [data-style='rokkit'] [data-toolbar] {
12
- @apply from-surface-z2 to-surface-z1 bg-gradient-to-b;
12
+ @apply from-paper-mute to-paper-soft bg-gradient-to-b;
13
13
  }
14
14
 
15
15
  /* Position-based borders */
16
16
  [data-style='rokkit'] [data-toolbar][data-toolbar-position='top'],
17
17
  [data-style='rokkit'] [data-toolbar]:not([data-toolbar-position]) {
18
- @apply border-surface-z4 border-b shadow-sm;
18
+ @apply border-paper-edge border-b shadow-sm;
19
19
  }
20
20
 
21
21
  [data-style='rokkit'] [data-toolbar][data-toolbar-position='bottom'] {
22
- @apply border-surface-z4 border-t shadow-sm;
22
+ @apply border-paper-edge border-t shadow-sm;
23
23
  }
24
24
 
25
25
  [data-style='rokkit'] [data-toolbar][data-toolbar-position='left'] {
26
- @apply border-surface-z4 border-r shadow-sm;
26
+ @apply border-paper-edge border-r shadow-sm;
27
27
  }
28
28
 
29
29
  [data-style='rokkit'] [data-toolbar][data-toolbar-position='right'] {
30
- @apply border-surface-z4 border-l shadow-sm;
30
+ @apply border-paper-edge border-l shadow-sm;
31
31
  }
32
32
 
33
33
  /* Compact item spacing for small toolbars */
@@ -41,24 +41,24 @@
41
41
  ============================================================================= */
42
42
 
43
43
  [data-style='rokkit'] [data-toolbar-item] {
44
- @apply text-surface-z7;
44
+ @apply text-ink-mute;
45
45
  }
46
46
 
47
47
  [data-style='rokkit'] [data-toolbar-item]:hover:not(:disabled):not([data-disabled='true']) {
48
- @apply from-surface-z3 to-surface-z2 text-surface-z10 bg-gradient-to-b;
48
+ @apply from-paper-mute to-paper-mute text-ink bg-gradient-to-b;
49
49
  }
50
50
 
51
51
  [data-style='rokkit'] [data-toolbar-item]:focus-visible:not(:disabled):not([data-disabled='true']) {
52
- @apply from-surface-z3 to-surface-z2 text-surface-z10 ring-primary-z4 bg-gradient-to-b ring-2 outline-none;
52
+ @apply from-paper-mute to-paper-mute text-ink ring-primary bg-gradient-to-b ring-2 outline-none;
53
53
  }
54
54
 
55
55
  /* Active/pressed state */
56
56
  [data-style='rokkit'] [data-toolbar-item][data-active='true'] {
57
- @apply from-primary-z5 to-secondary-z5 text-primary-z9 border-primary-z5 border bg-gradient-to-r;
57
+ @apply from-primary to-accent text-primary border-primary border bg-gradient-to-r;
58
58
  }
59
59
 
60
60
  [data-style='rokkit'] [data-toolbar-item][data-active='true']:hover:not(:disabled) {
61
- @apply from-primary-z5 to-primary-z4 text-primary-z10 bg-gradient-to-b;
61
+ @apply from-primary to-primary text-primary bg-gradient-to-b;
62
62
  }
63
63
 
64
64
  /* =============================================================================
@@ -66,15 +66,15 @@
66
66
  ============================================================================= */
67
67
 
68
68
  [data-style='rokkit'] [data-toolbar-item] [data-toolbar-icon] {
69
- @apply text-surface-z6;
69
+ @apply text-ink-soft;
70
70
  }
71
71
 
72
72
  [data-style='rokkit'] [data-toolbar-item]:hover:not(:disabled) [data-toolbar-icon] {
73
- @apply text-surface-z9;
73
+ @apply text-ink;
74
74
  }
75
75
 
76
76
  [data-style='rokkit'] [data-toolbar-item][data-active='true'] [data-toolbar-icon] {
77
- @apply text-primary-z7;
77
+ @apply text-primary;
78
78
  }
79
79
 
80
80
  /* =============================================================================
@@ -82,9 +82,9 @@
82
82
  ============================================================================= */
83
83
 
84
84
  [data-style='rokkit'] [data-toolbar-separator] {
85
- @apply from-surface-z5 to-surface-z3 bg-gradient-to-b;
85
+ @apply from-ink-soft to-paper-mute bg-gradient-to-b;
86
86
  }
87
87
 
88
88
  [data-style='rokkit'] [data-toolbar-divider] {
89
- @apply from-surface-z5 to-surface-z3 bg-gradient-to-r;
89
+ @apply from-ink-soft to-paper-mute bg-gradient-to-r;
90
90
  }
@@ -3,5 +3,5 @@
3
3
  */
4
4
 
5
5
  [data-style='rokkit'] [data-tooltip-content] {
6
- @apply bg-surface-z8 text-surface-z1;
6
+ @apply bg-ink-mute text-paper-soft;
7
7
  }