@rokkit/themes 1.0.5 → 1.1.0

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
@@ -1,7 +1,7 @@
1
1
  /* TableOfContents — Zen-Sumi theme */
2
2
 
3
3
  [data-style='zen-sumi'] [data-toc] [data-toc-label] {
4
- @apply text-surface-z4;
4
+ @apply text-paper-edge;
5
5
  font-size: 0.6875rem;
6
6
  font-weight: 600;
7
7
  letter-spacing: 0.05em;
@@ -9,14 +9,14 @@
9
9
  }
10
10
 
11
11
  [data-style='zen-sumi'] [data-toc] [data-toc-item] {
12
- @apply text-ink-z5;
12
+ @apply text-paper-edge;
13
13
  }
14
14
 
15
15
  [data-style='zen-sumi'] [data-toc] [data-toc-item]:hover,
16
16
  [data-style='zen-sumi'] [data-toc] [data-toc-item][data-toc-focused] {
17
- @apply text-ink-z2 outline-none;
17
+ @apply text-ink-mute outline-none;
18
18
  }
19
19
 
20
20
  [data-style='zen-sumi'] [data-toc] [data-toc-item][data-toc-active] {
21
- @apply text-primary-z5 border-l-primary-z4;
21
+ @apply text-primary border-l-primary;
22
22
  }
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * Toggle - Zen-Sumi Theme Styles
3
3
  *
4
- * Pill container with filled active state.
5
- * Inactive: transparent. Hover: surface-z2. Active: ink fill (surface-z9).
4
+ * Pill container with primary-coloured active fill (shu vermillion).
5
+ * Inactive: transparent. Hover: surface-z2. Selected: primary fill on
6
+ * paper text — colourful enough that the active option is unambiguous
7
+ * at a glance, even in the small canvas-view-toggle (Live · Code · API).
6
8
  */
7
9
 
8
10
  /* =============================================================================
@@ -10,7 +12,7 @@
10
12
  ============================================================================= */
11
13
 
12
14
  [data-style='zen-sumi'] [data-toggle] {
13
- @apply bg-surface-z1 border-surface-z2 border;
15
+ @apply bg-paper-soft border-paper-mute border;
14
16
  border-radius: var(--radius-md, 0.375rem);
15
17
  }
16
18
 
@@ -19,17 +21,17 @@
19
21
  ============================================================================= */
20
22
 
21
23
  [data-style='zen-sumi'] [data-toggle-option] {
22
- @apply text-ink-z4 border-0 border-solid border-transparent;
24
+ @apply text-ink-soft border-0 border-solid border-transparent;
23
25
  }
24
26
 
25
27
  [data-style='zen-sumi'] [data-toggle-option]:hover:not(:disabled):not([data-disabled='true']),
26
28
  [data-style='zen-sumi'] [data-toggle-option]:focus:not(:disabled):not([data-disabled='true']) {
27
- @apply bg-surface-z2 text-ink-z2;
29
+ @apply bg-paper-mute text-ink-mute;
28
30
  }
29
31
 
30
- /* Selected state — ink fill */
32
+ /* Selected state — primary (shu) fill */
31
33
  [data-style='zen-sumi'] [data-toggle-option][data-selected='true'] {
32
- @apply bg-surface-z9 text-surface-z0 bg-none;
34
+ @apply bg-primary text-on-primary bg-none;
33
35
  font-weight: 500;
34
36
  }
35
37
 
@@ -37,15 +39,21 @@
37
39
  Toggle Icon
38
40
  ============================================================================= */
39
41
 
42
+ /* Icons follow the option's text colour — `paper-edge` (hairline border
43
+ * tone) was the wrong baseline because it renders the icon nearly
44
+ * invisible against paper-soft/paper-mute in both modes. `ink-soft` at
45
+ * rest reads as "available but secondary," `ink-mute` on hover/focus
46
+ * matches the option label, and `paper` for selected contrasts cleanly
47
+ * against the ink fill. */
40
48
  [data-style='zen-sumi'] [data-toggle-option] [data-toggle-icon] {
41
- @apply text-ink-z5;
49
+ @apply text-ink-soft;
42
50
  }
43
51
 
44
52
  [data-style='zen-sumi'] [data-toggle-option]:hover:not(:disabled) [data-toggle-icon],
45
53
  [data-style='zen-sumi'] [data-toggle-option]:focus:not(:disabled) [data-toggle-icon] {
46
- @apply text-ink-z3;
54
+ @apply text-ink-mute;
47
55
  }
48
56
 
49
57
  [data-style='zen-sumi'] [data-toggle-option][data-selected='true'] [data-toggle-icon] {
50
- @apply text-surface-z1;
58
+ @apply text-on-primary;
51
59
  }
@@ -15,19 +15,19 @@
15
15
 
16
16
  [data-style='zen-sumi'] [data-toolbar][data-toolbar-position='top'],
17
17
  [data-style='zen-sumi'] [data-toolbar]:not([data-toolbar-position]) {
18
- @apply border-surface-z2 border-b;
18
+ @apply border-paper-mute border-b;
19
19
  }
20
20
 
21
21
  [data-style='zen-sumi'] [data-toolbar][data-toolbar-position='bottom'] {
22
- @apply border-surface-z2 border-t;
22
+ @apply border-paper-mute border-t;
23
23
  }
24
24
 
25
25
  [data-style='zen-sumi'] [data-toolbar][data-toolbar-position='left'] {
26
- @apply border-surface-z2 border-r;
26
+ @apply border-paper-mute border-r;
27
27
  }
28
28
 
29
29
  [data-style='zen-sumi'] [data-toolbar][data-toolbar-position='right'] {
30
- @apply border-surface-z2 border-l;
30
+ @apply border-paper-mute border-l;
31
31
  }
32
32
 
33
33
  /* =============================================================================
@@ -35,26 +35,26 @@
35
35
  ============================================================================= */
36
36
 
37
37
  [data-style='zen-sumi'] [data-toolbar-item] {
38
- @apply text-ink-z4;
38
+ @apply text-ink-soft;
39
39
  }
40
40
 
41
41
  [data-style='zen-sumi'] [data-toolbar-item]:hover:not(:disabled):not([data-disabled='true']) {
42
- @apply bg-surface-z2 text-ink-z1 bg-none;
42
+ @apply bg-paper-mute text-ink-mute bg-none;
43
43
  }
44
44
 
45
45
  [data-style='zen-sumi']
46
46
  [data-toolbar-item]:focus-visible:not(:disabled):not([data-disabled='true']) {
47
- @apply text-ink-z1 bg-none outline-none;
47
+ @apply text-ink-mute bg-none outline-none;
48
48
  box-shadow: inset 0 0 0 1px var(--color-surface-z4);
49
49
  }
50
50
 
51
51
  /* Active/pressed state */
52
52
  [data-style='zen-sumi'] [data-toolbar-item][data-active='true'] {
53
- @apply text-primary-z5 bg-none;
53
+ @apply text-primary bg-none;
54
54
  }
55
55
 
56
56
  [data-style='zen-sumi'] [data-toolbar-item][data-active='true']:hover:not(:disabled) {
57
- @apply text-primary-z6 bg-none;
57
+ @apply text-primary bg-none;
58
58
  }
59
59
 
60
60
  /* =============================================================================
@@ -62,15 +62,15 @@
62
62
  ============================================================================= */
63
63
 
64
64
  [data-style='zen-sumi'] [data-toolbar-item] [data-toolbar-icon] {
65
- @apply text-ink-z5;
65
+ @apply text-paper-edge;
66
66
  }
67
67
 
68
68
  [data-style='zen-sumi'] [data-toolbar-item]:hover:not(:disabled) [data-toolbar-icon] {
69
- @apply text-ink-z2;
69
+ @apply text-ink-mute;
70
70
  }
71
71
 
72
72
  [data-style='zen-sumi'] [data-toolbar-item][data-active='true'] [data-toolbar-icon] {
73
- @apply text-primary-z5;
73
+ @apply text-primary;
74
74
  }
75
75
 
76
76
  /* =============================================================================
@@ -78,9 +78,9 @@
78
78
  ============================================================================= */
79
79
 
80
80
  [data-style='zen-sumi'] [data-toolbar-separator] {
81
- @apply bg-surface-z2 bg-none;
81
+ @apply bg-paper-mute bg-none;
82
82
  }
83
83
 
84
84
  [data-style='zen-sumi'] [data-toolbar-divider] {
85
- @apply bg-surface-z2 bg-none;
85
+ @apply bg-paper-mute bg-none;
86
86
  }
@@ -18,11 +18,11 @@
18
18
  ============================================================================= */
19
19
 
20
20
  [data-style='zen-sumi'] [data-tree-toggle-btn] {
21
- @apply text-surface-z4;
21
+ @apply text-paper-edge;
22
22
  }
23
23
 
24
24
  [data-style='zen-sumi'] [data-tree-toggle-btn]:hover {
25
- @apply text-ink-z4 bg-none;
25
+ @apply text-ink-soft bg-none;
26
26
  }
27
27
 
28
28
  /* =============================================================================
@@ -30,12 +30,12 @@
30
30
  ============================================================================= */
31
31
 
32
32
  [data-style='zen-sumi'] [data-tree-item-content] {
33
- @apply text-ink-z3;
33
+ @apply text-ink-soft;
34
34
  }
35
35
 
36
36
  [data-style='zen-sumi'] [data-tree-item-content]:hover:not(:disabled),
37
37
  [data-style='zen-sumi'] [data-tree-item-content]:focus:not(:disabled) {
38
- @apply bg-surface-z2 text-ink-z1 bg-none outline-none;
38
+ @apply bg-paper-mute text-ink-mute bg-none outline-none;
39
39
  }
40
40
 
41
41
  /* Focus visible for keyboard navigation */
@@ -46,11 +46,11 @@
46
46
 
47
47
  /* Active/selected state */
48
48
  [data-style='zen-sumi'] [data-tree-item-content][data-active='true'] {
49
- @apply text-ink-z1 bg-surface-z2 bg-none;
49
+ @apply text-ink-mute bg-paper-mute bg-none;
50
50
  }
51
51
 
52
52
  [data-style='zen-sumi'] [data-tree-item-content][data-active='true']:hover:not(:disabled) {
53
- @apply bg-surface-z3 bg-none;
53
+ @apply bg-paper-mute bg-none;
54
54
  }
55
55
 
56
56
  /* Reset rokkit gradients */
@@ -73,31 +73,31 @@
73
73
  ============================================================================= */
74
74
 
75
75
  [data-style='zen-sumi'] [data-tree-item-content] [data-item-icon] {
76
- @apply text-ink-z5;
76
+ @apply text-paper-edge;
77
77
  }
78
78
 
79
79
  [data-style='zen-sumi'] [data-tree-item-content]:hover:not(:disabled) [data-item-icon] {
80
- @apply text-ink-z4;
80
+ @apply text-ink-soft;
81
81
  }
82
82
 
83
83
  [data-style='zen-sumi'] [data-tree-item-content][data-active='true'] [data-item-icon] {
84
- @apply text-primary-z5;
84
+ @apply text-primary;
85
85
  }
86
86
 
87
87
  [data-style='zen-sumi'] [data-tree-item-content] [data-item-description] {
88
- @apply text-ink-z5;
88
+ @apply text-paper-edge;
89
89
  }
90
90
 
91
91
  [data-style='zen-sumi'] [data-tree-item-content][data-active='true'] [data-item-description] {
92
- @apply text-ink-z4;
92
+ @apply text-ink-soft;
93
93
  }
94
94
 
95
95
  [data-style='zen-sumi'] [data-tree-item-content] [data-item-badge] {
96
- @apply text-ink-z4 border-surface-z3 border bg-transparent bg-none;
96
+ @apply text-ink-soft border-paper-mute border bg-transparent bg-none;
97
97
  }
98
98
 
99
99
  [data-style='zen-sumi'] [data-tree-item-content][data-active='true'] [data-item-badge] {
100
- @apply text-ink-z2 border-surface-z4 bg-none;
100
+ @apply text-ink-mute border-paper-edge bg-none;
101
101
  }
102
102
 
103
103
  [data-style='zen-sumi']
@@ -119,19 +119,19 @@
119
119
  ============================================================================= */
120
120
 
121
121
  [data-style='zen-sumi'] [data-tree-node][data-selected='true'] [data-tree-item-content] {
122
- @apply text-primary-z6 border-primary-z3 border-l-2;
122
+ @apply text-primary border-primary border-l-2;
123
123
  }
124
124
 
125
125
  [data-style='zen-sumi']
126
126
  [data-tree]:focus-within
127
127
  [data-tree-node][data-selected='true']
128
128
  [data-tree-item-content] {
129
- @apply text-primary-z7 border-primary-z4 border-l-2;
129
+ @apply text-primary border-primary border-l-2;
130
130
  }
131
131
 
132
132
  [data-style='zen-sumi']
133
133
  [data-tree-node][data-selected='true']
134
134
  [data-tree-item-content]
135
135
  [data-item-icon] {
136
- @apply text-primary-z5;
136
+ @apply text-primary;
137
137
  }