@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.
- package/build.mjs +4 -2
- package/package.json +3 -2
- package/src/base/carousel.css +2 -1
- package/src/base/code-block.css +76 -0
- package/src/base/display.css +16 -8
- package/src/base/frame.css +36 -0
- package/src/base/index.css +2 -0
- package/src/base/input.css +49 -10
- package/src/base/nav-content.css +3 -3
- package/src/base/stepper.css +14 -7
- package/src/base/tabs.css +15 -2
- package/src/base/typography.css +32 -13
- package/src/frosted/button.css +27 -27
- package/src/frosted/card.css +8 -8
- package/src/frosted/chart.css +6 -6
- package/src/frosted/code-block.css +33 -0
- package/src/frosted/dropdown.css +9 -9
- package/src/frosted/floating-action.css +10 -10
- package/src/frosted/floating-navigation.css +13 -13
- package/src/frosted/frame.css +17 -0
- package/src/frosted/index.css +2 -0
- package/src/frosted/input.css +16 -16
- package/src/frosted/list.css +25 -25
- package/src/frosted/menu.css +13 -13
- package/src/frosted/message.css +8 -8
- package/src/frosted/range.css +8 -8
- package/src/frosted/search-filter.css +8 -8
- package/src/frosted/select.css +31 -31
- package/src/frosted/status-list.css +17 -17
- package/src/frosted/step-indicator.css +8 -8
- package/src/frosted/swatch.css +3 -3
- package/src/frosted/switch.css +3 -3
- package/src/frosted/table.css +16 -16
- package/src/frosted/tabs.css +8 -8
- package/src/frosted/timeline.css +5 -5
- package/src/frosted/toc.css +4 -4
- package/src/frosted/toggle.css +7 -7
- package/src/frosted/toolbar.css +15 -15
- package/src/frosted/tree.css +19 -19
- package/src/material/button.css +29 -29
- package/src/material/card.css +12 -12
- package/src/material/chart.css +6 -6
- package/src/material/code-block.css +33 -0
- package/src/material/dropdown.css +11 -11
- package/src/material/floating-action.css +10 -10
- package/src/material/floating-navigation.css +13 -13
- package/src/material/frame.css +17 -0
- package/src/material/index.css +2 -0
- package/src/material/input.css +21 -21
- package/src/material/list.css +23 -23
- package/src/material/menu.css +16 -16
- package/src/material/message.css +8 -8
- package/src/material/range.css +8 -8
- package/src/material/search-filter.css +8 -8
- package/src/material/select.css +31 -31
- package/src/material/status-list.css +17 -17
- package/src/material/step-indicator.css +8 -8
- package/src/material/swatch.css +3 -3
- package/src/material/switch.css +6 -6
- package/src/material/table.css +16 -16
- package/src/material/tabs.css +7 -7
- package/src/material/timeline.css +5 -5
- package/src/material/toc.css +4 -4
- package/src/material/toggle.css +6 -6
- package/src/material/toolbar.css +11 -11
- package/src/material/tree.css +17 -17
- package/src/minimal/button.css +30 -30
- package/src/minimal/card.css +13 -13
- package/src/minimal/chart.css +6 -6
- package/src/minimal/code-block.css +33 -0
- package/src/minimal/dropdown.css +11 -11
- package/src/minimal/floating-action.css +10 -10
- package/src/minimal/floating-navigation.css +12 -12
- package/src/minimal/frame.css +17 -0
- package/src/minimal/index.css +2 -0
- package/src/minimal/input.css +24 -24
- package/src/minimal/list.css +52 -26
- package/src/minimal/menu.css +15 -15
- package/src/minimal/message.css +8 -8
- package/src/minimal/range.css +7 -7
- package/src/minimal/search-filter.css +8 -8
- package/src/minimal/select.css +27 -27
- package/src/minimal/status-list.css +17 -17
- package/src/minimal/step-indicator.css +8 -8
- package/src/minimal/swatch.css +3 -3
- package/src/minimal/switch.css +6 -6
- package/src/minimal/table.css +16 -16
- package/src/minimal/tabs.css +14 -14
- package/src/minimal/timeline.css +4 -4
- package/src/minimal/toc.css +4 -4
- package/src/minimal/toggle.css +7 -7
- package/src/minimal/toolbar.css +14 -14
- package/src/minimal/tree.css +24 -18
- package/src/rokkit/avatar.css +6 -6
- package/src/rokkit/badge.css +5 -5
- package/src/rokkit/button.css +55 -37
- package/src/rokkit/card.css +11 -11
- package/src/rokkit/chart.css +6 -6
- package/src/rokkit/code-block.css +33 -0
- package/src/rokkit/connector.css +1 -1
- package/src/rokkit/divider.css +5 -5
- package/src/rokkit/dropdown.css +11 -11
- package/src/rokkit/floating-action.css +11 -11
- package/src/rokkit/floating-navigation.css +15 -15
- package/src/rokkit/frame.css +17 -0
- package/src/rokkit/grid.css +8 -8
- package/src/rokkit/index.css +2 -0
- package/src/rokkit/input.css +17 -17
- package/src/rokkit/list.css +24 -24
- package/src/rokkit/menu.css +14 -14
- package/src/rokkit/message.css +12 -12
- package/src/rokkit/range.css +10 -10
- package/src/rokkit/search-filter.css +8 -8
- package/src/rokkit/select.css +34 -34
- package/src/rokkit/status-list.css +17 -17
- package/src/rokkit/step-indicator.css +8 -8
- package/src/rokkit/swatch.css +3 -3
- package/src/rokkit/switch.css +6 -6
- package/src/rokkit/table.css +16 -16
- package/src/rokkit/tabs.css +31 -28
- package/src/rokkit/timeline.css +5 -5
- package/src/rokkit/toc.css +4 -4
- package/src/rokkit/toggle.css +21 -10
- package/src/rokkit/toolbar.css +15 -15
- package/src/rokkit/tooltip.css +1 -1
- package/src/rokkit/tree.css +23 -23
- package/src/rokkit/upload-progress.css +18 -18
- package/src/rokkit/upload-target.css +8 -8
- package/src/zen-sumi/button.css +29 -29
- package/src/zen-sumi/card.css +12 -12
- package/src/zen-sumi/chart.css +6 -6
- package/src/zen-sumi/code-block.css +35 -0
- package/src/zen-sumi/dropdown.css +10 -10
- package/src/zen-sumi/floating-action.css +7 -7
- package/src/zen-sumi/floating-navigation.css +11 -11
- package/src/zen-sumi/frame.css +20 -0
- package/src/zen-sumi/index.css +2 -0
- package/src/zen-sumi/input.css +49 -23
- package/src/zen-sumi/list.css +20 -20
- package/src/zen-sumi/menu.css +14 -14
- package/src/zen-sumi/message.css +8 -8
- package/src/zen-sumi/range.css +7 -7
- package/src/zen-sumi/search-filter.css +8 -8
- package/src/zen-sumi/select.css +26 -26
- package/src/zen-sumi/status-list.css +17 -17
- package/src/zen-sumi/step-indicator.css +8 -8
- package/src/zen-sumi/swatch.css +3 -3
- package/src/zen-sumi/switch.css +5 -5
- package/src/zen-sumi/table.css +16 -16
- package/src/zen-sumi/tabs.css +8 -8
- package/src/zen-sumi/timeline.css +4 -4
- package/src/zen-sumi/toc.css +4 -4
- package/src/zen-sumi/toggle.css +18 -10
- package/src/zen-sumi/toolbar.css +14 -14
- package/src/zen-sumi/tree.css +16 -16
package/src/zen-sumi/toc.css
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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
|
|
21
|
+
@apply text-primary border-l-primary;
|
|
22
22
|
}
|
package/src/zen-sumi/toggle.css
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Toggle - Zen-Sumi Theme Styles
|
|
3
3
|
*
|
|
4
|
-
* Pill container with
|
|
5
|
-
* Inactive: transparent. Hover: surface-z2.
|
|
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-
|
|
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-
|
|
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-
|
|
29
|
+
@apply bg-paper-mute text-ink-mute;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
/* Selected state —
|
|
32
|
+
/* Selected state — primary (shu) fill */
|
|
31
33
|
[data-style='zen-sumi'] [data-toggle-option][data-selected='true'] {
|
|
32
|
-
@apply bg-
|
|
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-
|
|
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-
|
|
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-
|
|
58
|
+
@apply text-on-primary;
|
|
51
59
|
}
|
package/src/zen-sumi/toolbar.css
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
81
|
+
@apply bg-paper-mute bg-none;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
[data-style='zen-sumi'] [data-toolbar-divider] {
|
|
85
|
-
@apply bg-
|
|
85
|
+
@apply bg-paper-mute bg-none;
|
|
86
86
|
}
|
package/src/zen-sumi/tree.css
CHANGED
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
============================================================================= */
|
|
19
19
|
|
|
20
20
|
[data-style='zen-sumi'] [data-tree-toggle-btn] {
|
|
21
|
-
@apply text-
|
|
21
|
+
@apply text-paper-edge;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
[data-style='zen-sumi'] [data-tree-toggle-btn]:hover {
|
|
25
|
-
@apply text-ink-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
84
|
+
@apply text-primary;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
[data-style='zen-sumi'] [data-tree-item-content] [data-item-description] {
|
|
88
|
-
@apply text-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
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
|
|
136
|
+
@apply text-primary;
|
|
137
137
|
}
|