@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
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
[data-style='zen-sumi'] [data-dropdown-trigger] {
|
|
9
|
-
@apply border-
|
|
9
|
+
@apply border-paper-mute text-ink-soft border bg-transparent bg-none;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
[data-style='zen-sumi'] [data-dropdown-trigger]:hover:not(:disabled) {
|
|
13
|
-
@apply text-ink-
|
|
13
|
+
@apply text-ink-mute border-paper-edge bg-none;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
[data-style='zen-sumi'] [data-dropdown-trigger]:focus-visible {
|
|
@@ -19,35 +19,35 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
[data-style='zen-sumi'] [data-dropdown][data-open='true'] [data-dropdown-trigger] {
|
|
22
|
-
@apply border-
|
|
22
|
+
@apply border-ink-soft bg-none;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
[data-style='zen-sumi'] [data-dropdown-trigger] [data-dropdown-icon] {
|
|
26
|
-
@apply text-
|
|
26
|
+
@apply text-paper-edge;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
[data-style='zen-sumi'] [data-dropdown-trigger] [data-dropdown-arrow] {
|
|
30
|
-
@apply text-
|
|
30
|
+
@apply text-paper-edge;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
[data-style='zen-sumi'] [data-dropdown-panel] {
|
|
34
|
-
@apply bg-
|
|
34
|
+
@apply bg-paper border-paper-mute border bg-none;
|
|
35
35
|
box-shadow: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
[data-style='zen-sumi'] [data-dropdown-option] {
|
|
39
|
-
@apply text-ink-
|
|
39
|
+
@apply text-ink-soft;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
[data-style='zen-sumi'] [data-dropdown-option]:hover:not(:disabled),
|
|
43
43
|
[data-style='zen-sumi'] [data-dropdown-option]:focus:not(:disabled) {
|
|
44
|
-
@apply bg-
|
|
44
|
+
@apply bg-paper-mute text-ink-mute bg-none outline-none;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
[data-style='zen-sumi'] [data-dropdown-option][data-active='true'] {
|
|
48
|
-
@apply text-ink-
|
|
48
|
+
@apply text-ink-mute border-primary border-l-2 bg-none;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
[data-style='zen-sumi'] [data-dropdown-separator] {
|
|
52
|
-
@apply bg-
|
|
52
|
+
@apply bg-paper-mute bg-none;
|
|
53
53
|
}
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
============================================================================= */
|
|
11
11
|
|
|
12
12
|
[data-style='zen-sumi'] [data-fab-trigger] {
|
|
13
|
-
@apply bg-
|
|
13
|
+
@apply bg-paper-soft text-ink-mute border-paper-mute border bg-none;
|
|
14
14
|
box-shadow: none;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
[data-style='zen-sumi'] [data-fab-trigger]:hover:not(:disabled) {
|
|
18
|
-
@apply bg-
|
|
18
|
+
@apply bg-paper-mute text-ink-mute border-paper-edge bg-none;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
[data-style='zen-sumi'] [data-fab-trigger]:focus-visible {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
[data-style='zen-sumi'] [data-fab][data-open='true'] [data-fab-trigger] {
|
|
27
|
-
@apply bg-
|
|
27
|
+
@apply bg-paper-mute border-paper-edge bg-none;
|
|
28
28
|
transform: rotate(45deg);
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
============================================================================= */
|
|
38
38
|
|
|
39
39
|
[data-style='zen-sumi'] [data-fab-item] {
|
|
40
|
-
@apply bg-
|
|
40
|
+
@apply bg-paper-soft text-ink-soft border-paper-mute border bg-none;
|
|
41
41
|
box-shadow: none;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
[data-style='zen-sumi'] [data-fab-item]:hover:not(:disabled) {
|
|
45
|
-
@apply bg-
|
|
45
|
+
@apply bg-paper-mute text-ink-mute border-paper-edge bg-none;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
[data-style='zen-sumi'] [data-fab-item]:focus-visible {
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
|
|
53
53
|
/* Item icon */
|
|
54
54
|
[data-style='zen-sumi'] [data-fab-item] [data-fab-item-icon] {
|
|
55
|
-
@apply text-
|
|
55
|
+
@apply text-paper-edge;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
[data-style='zen-sumi'] [data-fab-item]:hover:not(:disabled) [data-fab-item-icon] {
|
|
59
|
-
@apply text-ink-
|
|
59
|
+
@apply text-ink-soft;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/* =============================================================================
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
============================================================================= */
|
|
12
12
|
|
|
13
13
|
[data-style='zen-sumi'] [data-floating-nav] {
|
|
14
|
-
@apply bg-
|
|
14
|
+
@apply bg-paper border-paper-mute border bg-none;
|
|
15
15
|
box-shadow: none;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
============================================================================= */
|
|
21
21
|
|
|
22
22
|
[data-style='zen-sumi'] [data-floating-nav-title] {
|
|
23
|
-
@apply text-
|
|
23
|
+
@apply text-paper-edge;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
[data-style='zen-sumi'] [data-floating-nav-pin] {
|
|
27
|
-
@apply text-
|
|
27
|
+
@apply text-paper-edge;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
[data-style='zen-sumi'] [data-floating-nav-pin]:hover {
|
|
31
|
-
@apply text-ink-
|
|
31
|
+
@apply text-ink-soft;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
[data-style='zen-sumi'] [data-floating-nav-pin][aria-pressed='true'] {
|
|
35
|
-
@apply text-ink-
|
|
35
|
+
@apply text-ink-mute;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/* =============================================================================
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
============================================================================= */
|
|
41
41
|
|
|
42
42
|
[data-style='zen-sumi'] [data-floating-nav-item] {
|
|
43
|
-
@apply text-ink-
|
|
43
|
+
@apply text-ink-soft;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
[data-style='zen-sumi'] [data-floating-nav-item]:hover {
|
|
47
|
-
@apply bg-
|
|
47
|
+
@apply bg-paper-mute text-ink-mute bg-none;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
[data-style='zen-sumi'] [data-floating-nav-item][data-active] {
|
|
51
|
-
@apply bg-
|
|
51
|
+
@apply bg-paper-soft text-ink-mute bg-none;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
[data-style='zen-sumi'] [data-floating-nav-item]:focus-visible {
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
|
|
59
59
|
/* Icon */
|
|
60
60
|
[data-style='zen-sumi'] [data-floating-nav-icon] {
|
|
61
|
-
@apply text-
|
|
61
|
+
@apply text-paper-edge;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
[data-style='zen-sumi'] [data-floating-nav-item][data-active] [data-floating-nav-icon] {
|
|
65
|
-
@apply text-primary
|
|
65
|
+
@apply text-primary;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/* =============================================================================
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
============================================================================= */
|
|
71
71
|
|
|
72
72
|
[data-style='zen-sumi'] [data-floating-nav-indicator] {
|
|
73
|
-
@apply bg-primary
|
|
73
|
+
@apply bg-primary bg-none;
|
|
74
74
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frame — Zen-Sumi theme.
|
|
3
|
+
*
|
|
4
|
+
* Paper bg with hairline border. Header sits on the recessed paper-soft
|
|
5
|
+
* surface, footer carries a dashed top divider. No shadows.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
[data-style='zen-sumi'] [data-frame] {
|
|
9
|
+
@apply bg-paper border-paper-edge border;
|
|
10
|
+
box-shadow: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-style='zen-sumi'] [data-frame-header] {
|
|
14
|
+
@apply bg-paper-soft border-paper-edge border-b;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-style='zen-sumi'] [data-frame-footer] {
|
|
18
|
+
@apply bg-paper border-paper-edge;
|
|
19
|
+
border-top: 1px dashed var(--paper-edge);
|
|
20
|
+
}
|
package/src/zen-sumi/index.css
CHANGED
package/src/zen-sumi/input.css
CHANGED
|
@@ -5,22 +5,47 @@
|
|
|
5
5
|
* Error: border becomes danger-z4. No background fill on error state.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
/* Input root: subtle border, paper background
|
|
8
|
+
/* Input root: subtle border, paper background.
|
|
9
|
+
Uses raw var() refs (not @apply) so the bg/border respect the
|
|
10
|
+
runtime [data-mode="dark"] cascade on body — UnoCSS @apply
|
|
11
|
+
compilation for z-tokens doesn't always flip with body's
|
|
12
|
+
data-mode in dev mode. */
|
|
9
13
|
[data-style='zen-sumi'] [data-input-root] {
|
|
10
|
-
@apply
|
|
14
|
+
@apply relative flex items-center border;
|
|
15
|
+
background: var(--color-surface-z1);
|
|
16
|
+
border-color: var(--color-surface-z3);
|
|
11
17
|
background-image: none;
|
|
12
18
|
transition: border-color 150ms ease;
|
|
13
19
|
}
|
|
14
20
|
|
|
21
|
+
/* Toggle / Switch fields bring their own pill chrome via Toggle's
|
|
22
|
+
[data-toggle] container and the switch track — the surrounding
|
|
23
|
+
input-root border just paints a second, thicker frame around it.
|
|
24
|
+
Drop the wrapper border + background for these field types so
|
|
25
|
+
the control's own shape is the only one the eye reads. */
|
|
26
|
+
[data-style='zen-sumi'] [data-field-type='toggle'] [data-input-root],
|
|
27
|
+
[data-style='zen-sumi'] [data-field-type='switch'] [data-input-root] {
|
|
28
|
+
border-color: transparent;
|
|
29
|
+
background: transparent;
|
|
30
|
+
background-image: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-style='zen-sumi'] [data-field-type='toggle'] [data-input-root]:hover:not(:focus-within),
|
|
34
|
+
[data-style='zen-sumi'] [data-field-type='switch'] [data-input-root]:hover:not(:focus-within),
|
|
35
|
+
[data-style='zen-sumi'] [data-field-type='toggle'] [data-input-root]:focus-within,
|
|
36
|
+
[data-style='zen-sumi'] [data-field-type='switch'] [data-input-root]:focus-within {
|
|
37
|
+
border-color: transparent;
|
|
38
|
+
}
|
|
39
|
+
|
|
15
40
|
/* Hover: border darkens slightly */
|
|
16
41
|
[data-style='zen-sumi'] [data-input-root]:hover:not(:focus-within) {
|
|
17
|
-
|
|
42
|
+
border-color: var(--color-surface-z4);
|
|
18
43
|
background-image: none;
|
|
19
44
|
}
|
|
20
45
|
|
|
21
46
|
/* Focus: border darkens — no glow */
|
|
22
47
|
[data-style='zen-sumi'] [data-input-root]:focus-within {
|
|
23
|
-
|
|
48
|
+
border-color: var(--color-surface-z6);
|
|
24
49
|
background-image: none;
|
|
25
50
|
}
|
|
26
51
|
|
|
@@ -30,7 +55,8 @@
|
|
|
30
55
|
input:not([type='checkbox'], [type='radio'], [type='color']),
|
|
31
56
|
[data-style='zen-sumi'] [data-input-root] textarea,
|
|
32
57
|
[data-style='zen-sumi'] [data-input-root] select {
|
|
33
|
-
@apply
|
|
58
|
+
@apply w-full border-none bg-transparent px-2 py-1.5 outline-none;
|
|
59
|
+
color: var(--color-ink-z1);
|
|
34
60
|
font-size: 0.8125rem;
|
|
35
61
|
line-height: 1.25rem;
|
|
36
62
|
}
|
|
@@ -41,7 +67,7 @@
|
|
|
41
67
|
|
|
42
68
|
/* Select inside input-root */
|
|
43
69
|
[data-style='zen-sumi'] [data-input-root] [data-select-trigger] {
|
|
44
|
-
@apply text-ink-
|
|
70
|
+
@apply text-ink-mute border-none bg-transparent px-2 shadow-none ring-0 focus:outline-none;
|
|
45
71
|
font-size: 0.8125rem;
|
|
46
72
|
background-image: none;
|
|
47
73
|
}
|
|
@@ -57,17 +83,17 @@
|
|
|
57
83
|
|
|
58
84
|
/* Labels: smaller, spaced */
|
|
59
85
|
[data-style='zen-sumi'] [data-field] > label {
|
|
60
|
-
@apply text-ink-
|
|
86
|
+
@apply text-ink-soft text-xs tracking-wide;
|
|
61
87
|
transition: color 150ms ease;
|
|
62
88
|
}
|
|
63
89
|
|
|
64
90
|
[data-style='zen-sumi'] [data-form-root] label {
|
|
65
|
-
@apply text-ink-
|
|
91
|
+
@apply text-ink-soft text-xs tracking-wide;
|
|
66
92
|
}
|
|
67
93
|
|
|
68
94
|
/* Focused label: primary accent */
|
|
69
95
|
[data-style='zen-sumi'] [data-field]:has([data-input-root]:focus-within) > label {
|
|
70
|
-
@apply text-primary
|
|
96
|
+
@apply text-primary;
|
|
71
97
|
}
|
|
72
98
|
|
|
73
99
|
/* Field root */
|
|
@@ -77,69 +103,69 @@
|
|
|
77
103
|
|
|
78
104
|
/* Info field value */
|
|
79
105
|
[data-style='zen-sumi'] [data-field-info] {
|
|
80
|
-
@apply text-primary
|
|
106
|
+
@apply text-primary;
|
|
81
107
|
}
|
|
82
108
|
|
|
83
109
|
/* Separator */
|
|
84
110
|
[data-style='zen-sumi'] [data-form-separator] {
|
|
85
|
-
@apply border-
|
|
111
|
+
@apply border-paper-mute;
|
|
86
112
|
}
|
|
87
113
|
|
|
88
114
|
/* Disabled state */
|
|
89
115
|
[data-style='zen-sumi'] [data-field-disabled] [data-input-root] {
|
|
90
|
-
@apply border-
|
|
116
|
+
@apply border-paper-mute cursor-not-allowed opacity-40;
|
|
91
117
|
}
|
|
92
118
|
|
|
93
119
|
/* Error state — border becomes shu (primary/danger) */
|
|
94
120
|
[data-style='zen-sumi'] [data-field-state='fail'] [data-input-root] {
|
|
95
|
-
@apply border-danger
|
|
121
|
+
@apply border-danger;
|
|
96
122
|
}
|
|
97
123
|
|
|
98
124
|
[data-style='zen-sumi'] [data-field-state='fail'] [data-input-root]:hover:not(:focus-within) {
|
|
99
|
-
@apply border-danger
|
|
125
|
+
@apply border-danger;
|
|
100
126
|
}
|
|
101
127
|
|
|
102
128
|
[data-style='zen-sumi'] [data-field-state='fail'] [data-input-root]:focus-within {
|
|
103
|
-
@apply border-danger
|
|
129
|
+
@apply border-danger;
|
|
104
130
|
}
|
|
105
131
|
|
|
106
132
|
/* Pass state */
|
|
107
133
|
[data-style='zen-sumi'] [data-field-state='pass'] [data-input-root] {
|
|
108
|
-
@apply border-success
|
|
134
|
+
@apply border-success;
|
|
109
135
|
}
|
|
110
136
|
|
|
111
137
|
[data-style='zen-sumi'] [data-field-state='pass'] [data-input-root]:focus-within {
|
|
112
|
-
@apply border-success
|
|
138
|
+
@apply border-success;
|
|
113
139
|
}
|
|
114
140
|
|
|
115
141
|
/* Description */
|
|
116
142
|
[data-style='zen-sumi'] [data-description] {
|
|
117
|
-
@apply text-
|
|
143
|
+
@apply text-paper-edge mt-0.5 text-xs;
|
|
118
144
|
}
|
|
119
145
|
|
|
120
146
|
/* Message */
|
|
121
147
|
[data-style='zen-sumi'] [data-message] {
|
|
122
|
-
@apply text-danger
|
|
148
|
+
@apply text-danger mt-0.5 text-xs;
|
|
123
149
|
}
|
|
124
150
|
|
|
125
151
|
/* Checkbox */
|
|
126
152
|
[data-style='zen-sumi'] [data-checkbox-icon] {
|
|
127
|
-
@apply text-
|
|
153
|
+
@apply text-paper-edge text-lg;
|
|
128
154
|
}
|
|
129
155
|
|
|
130
156
|
[data-style='zen-sumi']
|
|
131
157
|
[data-checkbox-root][data-variant='custom']:has(input:checked)
|
|
132
158
|
[data-checkbox-icon] {
|
|
133
|
-
@apply text-primary
|
|
159
|
+
@apply text-primary;
|
|
134
160
|
}
|
|
135
161
|
|
|
136
162
|
/* Checkbox label: primary on focus */
|
|
137
163
|
[data-style='zen-sumi'] [data-field-type='checkbox'] [data-field]:has(:focus-within) > label {
|
|
138
|
-
@apply text-primary
|
|
164
|
+
@apply text-primary;
|
|
139
165
|
}
|
|
140
166
|
|
|
141
167
|
/* Placeholders */
|
|
142
168
|
[data-style='zen-sumi'] [data-input-root] input::placeholder,
|
|
143
169
|
[data-style='zen-sumi'] [data-input-root] textarea::placeholder {
|
|
144
|
-
|
|
170
|
+
color: var(--color-surface-z4);
|
|
145
171
|
}
|
package/src/zen-sumi/list.css
CHANGED
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
============================================================================= */
|
|
20
20
|
|
|
21
21
|
[data-style='zen-sumi'] [data-list] [data-list-item] {
|
|
22
|
-
@apply text-ink-
|
|
22
|
+
@apply text-ink-soft border-0 border-solid border-transparent bg-transparent;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
[data-style='zen-sumi'] [data-list] a[data-list-item],
|
|
26
26
|
[data-style='zen-sumi'] [data-list] button[data-list-item] {
|
|
27
|
-
@apply text-ink-
|
|
27
|
+
@apply text-ink-soft;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/* Hover and focus — subtle paper wash */
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
[data-style='zen-sumi']
|
|
35
35
|
[data-list]
|
|
36
36
|
[data-list-item]:focus:not(:disabled):not([data-disabled='true']) {
|
|
37
|
-
@apply bg-
|
|
37
|
+
@apply bg-paper-mute text-ink-mute bg-none outline-none;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/* Active state — ink wash background */
|
|
41
41
|
[data-style='zen-sumi'] [data-list] [data-list-item][data-active='true'] {
|
|
42
|
-
@apply bg-
|
|
42
|
+
@apply bg-paper-soft text-ink-mute bg-none;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/* Active state — richer ink when list has focus */
|
|
46
46
|
[data-style='zen-sumi'] [data-list]:focus-within [data-list-item][data-active='true'] {
|
|
47
|
-
@apply bg-
|
|
47
|
+
@apply bg-paper-mute text-ink-mute bg-none;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/* Active + hover/focus */
|
|
51
51
|
[data-style='zen-sumi'] [data-list] [data-list-item][data-active='true']:hover:not(:disabled),
|
|
52
52
|
[data-style='zen-sumi'] [data-list] [data-list-item][data-active='true']:focus:not(:disabled) {
|
|
53
|
-
@apply bg-
|
|
53
|
+
@apply bg-paper-mute bg-none;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/* =============================================================================
|
|
@@ -58,32 +58,32 @@
|
|
|
58
58
|
============================================================================= */
|
|
59
59
|
|
|
60
60
|
[data-style='zen-sumi'] [data-list] [data-list-item] [data-item-icon] {
|
|
61
|
-
@apply text-
|
|
61
|
+
@apply text-paper-edge;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
[data-style='zen-sumi'] [data-list] [data-list-item]:hover:not(:disabled) [data-item-icon],
|
|
65
65
|
[data-style='zen-sumi'] [data-list] [data-list-item]:focus:not(:disabled) [data-item-icon] {
|
|
66
|
-
@apply text-ink-
|
|
66
|
+
@apply text-ink-soft;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
[data-style='zen-sumi'] [data-list] [data-list-item][data-active='true'] [data-item-icon] {
|
|
70
|
-
@apply text-primary
|
|
70
|
+
@apply text-primary;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
[data-style='zen-sumi'] [data-list] [data-list-item] [data-item-description] {
|
|
74
|
-
@apply text-
|
|
74
|
+
@apply text-paper-edge;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
[data-style='zen-sumi'] [data-list] [data-list-item][data-active='true'] [data-item-description] {
|
|
78
|
-
@apply text-ink-
|
|
78
|
+
@apply text-ink-soft;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
[data-style='zen-sumi'] [data-list] [data-list-item] [data-item-badge] {
|
|
82
|
-
@apply text-ink-
|
|
82
|
+
@apply text-ink-soft border-paper-mute border bg-transparent bg-none;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
[data-style='zen-sumi'] [data-list] [data-list-item][data-active='true'] [data-item-badge] {
|
|
86
|
-
@apply text-ink-
|
|
86
|
+
@apply text-ink-mute border-paper-edge bg-none;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/* =============================================================================
|
|
@@ -91,12 +91,12 @@
|
|
|
91
91
|
============================================================================= */
|
|
92
92
|
|
|
93
93
|
[data-style='zen-sumi'] [data-list] [data-list-group] {
|
|
94
|
-
@apply text-
|
|
94
|
+
@apply text-paper-edge;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
[data-style='zen-sumi'] [data-list] [data-list-group]:hover:not(:disabled),
|
|
98
98
|
[data-style='zen-sumi'] [data-list] [data-list-group]:focus:not(:disabled) {
|
|
99
|
-
@apply text-ink-
|
|
99
|
+
@apply text-ink-soft bg-none;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/* =============================================================================
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
============================================================================= */
|
|
105
105
|
|
|
106
106
|
[data-style='zen-sumi'] [data-list] [data-list-separator] {
|
|
107
|
-
@apply bg-
|
|
107
|
+
@apply bg-paper-mute bg-none;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/* =============================================================================
|
|
@@ -112,17 +112,17 @@
|
|
|
112
112
|
============================================================================= */
|
|
113
113
|
|
|
114
114
|
[data-style='zen-sumi'] [data-list] [data-list-item][data-selected='true'] {
|
|
115
|
-
@apply text-primary
|
|
115
|
+
@apply text-primary border-primary border-l-2;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
[data-style='zen-sumi'] [data-list]:focus-within [data-list-item][data-selected='true'] {
|
|
119
|
-
@apply text-primary
|
|
119
|
+
@apply text-primary border-primary border-l-2;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
[data-style='zen-sumi'] [data-list] [data-list-item][data-selected='true']:hover:not(:disabled) {
|
|
123
|
-
@apply text-primary
|
|
123
|
+
@apply text-primary;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
[data-style='zen-sumi'] [data-list] [data-list-item][data-selected='true'] [data-item-icon] {
|
|
127
|
-
@apply text-primary
|
|
127
|
+
@apply text-primary;
|
|
128
128
|
}
|
package/src/zen-sumi/menu.css
CHANGED
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
============================================================================= */
|
|
11
11
|
|
|
12
12
|
[data-style='zen-sumi'] [data-menu-trigger] {
|
|
13
|
-
@apply border-
|
|
13
|
+
@apply border-paper-mute text-ink-soft border bg-transparent bg-none;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
[data-style='zen-sumi'] [data-menu-trigger]:hover:not(:disabled) {
|
|
17
|
-
@apply text-ink-
|
|
17
|
+
@apply text-ink-mute border-paper-edge bg-none;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
[data-style='zen-sumi'] [data-menu-trigger]:focus-visible {
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
[data-style='zen-sumi'] [data-menu][data-open='true'] [data-menu-trigger] {
|
|
26
|
-
@apply border-
|
|
26
|
+
@apply border-ink-soft bg-none;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* Trigger elements */
|
|
30
30
|
[data-style='zen-sumi'] [data-menu-trigger] [data-menu-icon] {
|
|
31
|
-
@apply text-
|
|
31
|
+
@apply text-paper-edge;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
[data-style='zen-sumi'] [data-menu-trigger]:hover:not(:disabled) [data-menu-icon] {
|
|
35
|
-
@apply text-ink-
|
|
35
|
+
@apply text-ink-soft;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
[data-style='zen-sumi'] [data-menu-trigger] [data-menu-arrow] {
|
|
39
|
-
@apply text-
|
|
39
|
+
@apply text-paper-edge;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/* =============================================================================
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
============================================================================= */
|
|
45
45
|
|
|
46
46
|
[data-style='zen-sumi'] [data-menu-dropdown] {
|
|
47
|
-
@apply bg-
|
|
47
|
+
@apply bg-paper border-paper-mute border bg-none;
|
|
48
48
|
box-shadow: none;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -53,25 +53,25 @@
|
|
|
53
53
|
============================================================================= */
|
|
54
54
|
|
|
55
55
|
[data-style='zen-sumi'] [data-menu-item] {
|
|
56
|
-
@apply text-ink-
|
|
56
|
+
@apply text-ink-soft border-0 border-solid border-transparent;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
[data-style='zen-sumi'] [data-menu-item]:hover:not(:disabled),
|
|
60
60
|
[data-style='zen-sumi'] [data-menu-item]:focus:not(:disabled) {
|
|
61
|
-
@apply bg-
|
|
61
|
+
@apply bg-paper-mute text-ink-mute bg-none outline-none;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/* Item elements */
|
|
65
65
|
[data-style='zen-sumi'] [data-menu-item] [data-item-icon] {
|
|
66
|
-
@apply text-
|
|
66
|
+
@apply text-paper-edge;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
[data-style='zen-sumi'] [data-menu-item]:hover:not(:disabled) [data-item-icon] {
|
|
70
|
-
@apply text-ink-
|
|
70
|
+
@apply text-ink-soft;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
[data-style='zen-sumi'] [data-menu-item] [data-item-description] {
|
|
74
|
-
@apply text-
|
|
74
|
+
@apply text-paper-edge;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/* =============================================================================
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
============================================================================= */
|
|
80
80
|
|
|
81
81
|
[data-style='zen-sumi'] [data-menu-group] {
|
|
82
|
-
@apply text-
|
|
82
|
+
@apply text-paper-edge;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/* =============================================================================
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
============================================================================= */
|
|
88
88
|
|
|
89
89
|
[data-style='zen-sumi'] [data-menu-separator] {
|
|
90
|
-
@apply bg-
|
|
90
|
+
@apply bg-paper-mute bg-none;
|
|
91
91
|
}
|
package/src/zen-sumi/message.css
CHANGED
|
@@ -5,33 +5,33 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
[data-style='zen-sumi'] [data-message-root][data-type='error'] {
|
|
8
|
-
@apply bg-error-
|
|
8
|
+
@apply bg-error-soft border-error-soft text-error;
|
|
9
9
|
}
|
|
10
10
|
[data-style='zen-sumi'] [data-message-root][data-type='error'] [data-message-icon],
|
|
11
11
|
[data-style='zen-sumi'] [data-message-root][data-type='error'] [data-message-dismiss] {
|
|
12
|
-
@apply text-error
|
|
12
|
+
@apply text-error;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
[data-style='zen-sumi'] [data-message-root][data-type='warning'] {
|
|
16
|
-
@apply bg-warning-
|
|
16
|
+
@apply bg-warning-soft border-warning-soft text-warning;
|
|
17
17
|
}
|
|
18
18
|
[data-style='zen-sumi'] [data-message-root][data-type='warning'] [data-message-icon],
|
|
19
19
|
[data-style='zen-sumi'] [data-message-root][data-type='warning'] [data-message-dismiss] {
|
|
20
|
-
@apply text-warning
|
|
20
|
+
@apply text-warning;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
[data-style='zen-sumi'] [data-message-root][data-type='info'] {
|
|
24
|
-
@apply bg-info-
|
|
24
|
+
@apply bg-info-soft border-info-soft text-info;
|
|
25
25
|
}
|
|
26
26
|
[data-style='zen-sumi'] [data-message-root][data-type='info'] [data-message-icon],
|
|
27
27
|
[data-style='zen-sumi'] [data-message-root][data-type='info'] [data-message-dismiss] {
|
|
28
|
-
@apply text-info
|
|
28
|
+
@apply text-info;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
[data-style='zen-sumi'] [data-message-root][data-type='success'] {
|
|
32
|
-
@apply bg-success-
|
|
32
|
+
@apply bg-success-soft border-success-soft text-success;
|
|
33
33
|
}
|
|
34
34
|
[data-style='zen-sumi'] [data-message-root][data-type='success'] [data-message-icon],
|
|
35
35
|
[data-style='zen-sumi'] [data-message-root][data-type='success'] [data-message-dismiss] {
|
|
36
|
-
@apply text-success
|
|
36
|
+
@apply text-success;
|
|
37
37
|
}
|