@voidable/theme 0.3.0 → 0.5.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 (44) hide show
  1. package/package.json +1 -1
  2. package/src/components/action-input.css +182 -0
  3. package/src/components/alert.css +1 -0
  4. package/src/components/badge.css +1 -0
  5. package/src/components/banner.css +1 -0
  6. package/src/components/button.css +33 -0
  7. package/src/components/calendar.css +456 -0
  8. package/src/components/card.css +1 -1
  9. package/src/components/carousel.css +236 -0
  10. package/src/components/checkbox.css +1 -0
  11. package/src/components/collapsible.css +73 -0
  12. package/src/components/color-picker.css +353 -0
  13. package/src/components/combobox.css +1 -1
  14. package/src/components/dialog.css +1 -1
  15. package/src/components/drawer.css +2 -2
  16. package/src/components/dropdown-menu.css +25 -0
  17. package/src/components/editable.css +111 -0
  18. package/src/components/error-fallback.css +1 -1
  19. package/src/components/file-upload.css +5 -1
  20. package/src/components/hover-card.css +124 -0
  21. package/src/components/indicator.css +1 -0
  22. package/src/components/menu.css +162 -0
  23. package/src/components/multiselect.css +1 -1
  24. package/src/components/nav-bar.css +1 -1
  25. package/src/components/nav-menu.css +128 -0
  26. package/src/components/number-input.css +187 -0
  27. package/src/components/pagination.css +11 -4
  28. package/src/components/pin-input.css +122 -0
  29. package/src/components/popover.css +5 -1
  30. package/src/components/progress.css +1 -0
  31. package/src/components/radio.css +1 -0
  32. package/src/components/slider.css +2 -2
  33. package/src/components/stat.css +3 -1
  34. package/src/components/status-dot.css +5 -1
  35. package/src/components/switch.css +1 -0
  36. package/src/components/tag.css +1 -0
  37. package/src/components/tags-input.css +178 -0
  38. package/src/components/toast.css +2 -1
  39. package/src/components/toggle-group.css +19 -0
  40. package/src/components/toggle.css +1 -0
  41. package/src/components/tooltip.css +1 -1
  42. package/src/index.css +13 -0
  43. package/src/primitives.css +14 -1
  44. package/src/tokens.css +6 -2
@@ -0,0 +1,124 @@
1
+ void-hover-card {
2
+ position: relative;
3
+ display: inline-flex;
4
+ }
5
+
6
+ .void-hover-card-trigger {
7
+ display: inline-flex;
8
+ }
9
+
10
+ .void-hover-card-body {
11
+ position: absolute;
12
+ z-index: var(--void-z-dropdown);
13
+ min-width: 16rem; /* token-ok: intrinsic card minimum width */
14
+ background: var(--void-color-bg-elevated);
15
+ border: 1px solid var(--void-color-border);
16
+ border-radius: var(--void-radius-lg);
17
+ padding: var(--void-space-4);
18
+ box-shadow: 0 4px 16px var(--void-color-bg-overlay);
19
+ font-family: var(--void-font-sans);
20
+ font-size: var(--void-text-sm);
21
+ color: var(--void-color-text);
22
+ opacity: 0;
23
+ pointer-events: none;
24
+ transform: scale(0.96);
25
+ transition:
26
+ opacity var(--void-duration-fast) var(--void-ease-in-out),
27
+ transform var(--void-duration-fast) var(--void-ease-in-out);
28
+ }
29
+
30
+ void-hover-card[open] .void-hover-card-body {
31
+ opacity: 1;
32
+ pointer-events: auto;
33
+ transform: scale(1);
34
+ }
35
+
36
+ /* Position: bottom (default) */
37
+ void-hover-card[position="bottom"] .void-hover-card-body,
38
+ void-hover-card:not([position]) .void-hover-card-body {
39
+ top: calc(100% + var(--void-space-2));
40
+ left: 50%;
41
+ transform: translateX(-50%) scale(0.96);
42
+ }
43
+
44
+ void-hover-card[position="bottom"][open] .void-hover-card-body,
45
+ void-hover-card:not([position])[open] .void-hover-card-body {
46
+ transform: translateX(-50%) scale(1);
47
+ }
48
+
49
+ /* Position: top */
50
+ void-hover-card[position="top"] .void-hover-card-body {
51
+ bottom: calc(100% + var(--void-space-2));
52
+ left: 50%;
53
+ transform: translateX(-50%) scale(0.96);
54
+ }
55
+
56
+ void-hover-card[position="top"][open] .void-hover-card-body {
57
+ transform: translateX(-50%) scale(1);
58
+ }
59
+
60
+ /* Position: left */
61
+ void-hover-card[position="left"] .void-hover-card-body {
62
+ right: calc(100% + var(--void-space-2));
63
+ top: 50%;
64
+ transform: translateY(-50%) scale(0.96);
65
+ }
66
+
67
+ void-hover-card[position="left"][open] .void-hover-card-body {
68
+ transform: translateY(-50%) scale(1);
69
+ }
70
+
71
+ /* Position: right */
72
+ void-hover-card[position="right"] .void-hover-card-body {
73
+ left: calc(100% + var(--void-space-2));
74
+ top: 50%;
75
+ transform: translateY(-50%) scale(0.96);
76
+ }
77
+
78
+ void-hover-card[position="right"][open] .void-hover-card-body {
79
+ transform: translateY(-50%) scale(1);
80
+ }
81
+
82
+ /* Arrow indicators */
83
+ .void-hover-card-body::before {
84
+ content: '';
85
+ position: absolute;
86
+ width: var(--void-space-2);
87
+ height: var(--void-space-2);
88
+ background: var(--void-color-bg-elevated);
89
+ border: 1px solid var(--void-color-border);
90
+ transform: rotate(45deg);
91
+ }
92
+
93
+ void-hover-card[position="bottom"] .void-hover-card-body::before,
94
+ void-hover-card:not([position]) .void-hover-card-body::before {
95
+ top: calc(-1 * var(--void-space-1) - 1px);
96
+ left: 50%;
97
+ margin-left: calc(-1 * var(--void-space-1));
98
+ border-bottom: none;
99
+ border-right: none;
100
+ }
101
+
102
+ void-hover-card[position="top"] .void-hover-card-body::before {
103
+ bottom: calc(-1 * var(--void-space-1) - 1px);
104
+ left: 50%;
105
+ margin-left: calc(-1 * var(--void-space-1));
106
+ border-top: none;
107
+ border-left: none;
108
+ }
109
+
110
+ void-hover-card[position="left"] .void-hover-card-body::before {
111
+ right: calc(-1 * var(--void-space-1) - 1px);
112
+ top: 50%;
113
+ margin-top: calc(-1 * var(--void-space-1));
114
+ border-left: none;
115
+ border-bottom: none;
116
+ }
117
+
118
+ void-hover-card[position="right"] .void-hover-card-body::before {
119
+ left: calc(-1 * var(--void-space-1) - 1px);
120
+ top: 50%;
121
+ margin-top: calc(-1 * var(--void-space-1));
122
+ border-right: none;
123
+ border-top: none;
124
+ }
@@ -33,6 +33,7 @@ void-indicator[position="bottom-left"] .void-indicator-dot { bottom: -4px; left:
33
33
 
34
34
  void-indicator[color="error"] { --tone: var(--void-color-error); }
35
35
  void-indicator[color="warning"] { --tone: var(--void-color-warning); }
36
+ void-indicator[color="caution"] { --tone: var(--void-color-caution); }
36
37
  void-indicator[color="success"] { --tone: var(--void-color-success); }
37
38
  void-indicator[color="info"] { --tone: var(--void-color-info); }
38
39
  void-indicator[color="notice"] { --tone: var(--void-color-notice); }
@@ -0,0 +1,162 @@
1
+ void-menu {
2
+ display: none;
3
+ flex-direction: column;
4
+ font-family: var(--void-font-sans);
5
+ background: var(--void-color-bg-elevated);
6
+ border: 1px solid var(--void-color-border);
7
+ border-radius: var(--void-radius-md);
8
+ box-shadow: 0 4px 16px var(--void-color-bg-overlay);
9
+ overflow: hidden;
10
+ min-width: 220px;
11
+ }
12
+
13
+ void-menu[open] {
14
+ display: flex;
15
+ }
16
+
17
+ /* ── Search input ── */
18
+ .void-menu-search {
19
+ width: 100%;
20
+ padding: var(--void-space-2) var(--void-space-3);
21
+ background: transparent;
22
+ border: none;
23
+ border-bottom: 1px solid var(--void-color-border);
24
+ color: var(--void-color-text);
25
+ font-family: inherit;
26
+ font-size: var(--void-text-sm);
27
+ line-height: var(--void-leading-normal);
28
+ outline: none;
29
+ }
30
+
31
+ .void-menu-search::placeholder {
32
+ color: var(--void-color-text-muted);
33
+ }
34
+
35
+ /* ── List container ── */
36
+ .void-menu-list {
37
+ padding: var(--void-space-1) 0;
38
+ max-height: 20rem;
39
+ overflow-y: auto;
40
+ }
41
+
42
+ /* ── Menu item ── */
43
+ void-menu-item {
44
+ display: flex;
45
+ align-items: center;
46
+ gap: var(--void-space-2);
47
+ padding: var(--void-space-2) var(--void-space-3);
48
+ font-family: var(--void-font-sans);
49
+ font-size: var(--void-text-sm);
50
+ color: var(--void-color-text);
51
+ cursor: pointer;
52
+ user-select: none;
53
+ outline: none;
54
+ transition: background var(--void-duration-fast) var(--void-ease-in-out);
55
+ }
56
+
57
+ void-menu-item:hover {
58
+ background: var(--void-color-bg-hover);
59
+ }
60
+
61
+ void-menu-item:focus-visible {
62
+ background: var(--void-color-bg-hover);
63
+ }
64
+
65
+ void-menu-item[disabled] {
66
+ opacity: 0.5;
67
+ pointer-events: none;
68
+ cursor: default;
69
+ }
70
+
71
+ void-menu-item[hidden] {
72
+ display: none;
73
+ }
74
+
75
+ /* ── Item sub-elements ── */
76
+ .void-menu-item-icon {
77
+ flex-shrink: 0;
78
+ width: 1rem;
79
+ display: inline-flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ color: var(--void-color-text-secondary);
83
+ }
84
+
85
+ .void-menu-item-label {
86
+ flex: 1;
87
+ min-width: 0;
88
+ }
89
+
90
+ .void-menu-item-shortcut {
91
+ flex-shrink: 0;
92
+ margin-left: auto;
93
+ font-size: var(--void-text-xs);
94
+ color: var(--void-color-text-muted);
95
+ }
96
+
97
+ /* ── Menu group ── */
98
+ void-menu-group {
99
+ display: block;
100
+ }
101
+
102
+ void-menu-group[hidden] {
103
+ display: none;
104
+ }
105
+
106
+ void-menu-group + void-menu-group {
107
+ border-top: 1px solid var(--void-color-border);
108
+ }
109
+
110
+ .void-menu-group-label {
111
+ padding: var(--void-space-2) var(--void-space-3) var(--void-space-1);
112
+ font-size: var(--void-text-xs);
113
+ font-weight: var(--void-weight-medium);
114
+ color: var(--void-color-text-muted);
115
+ text-transform: uppercase;
116
+ letter-spacing: 0.05em;
117
+ user-select: none;
118
+ }
119
+
120
+ .void-menu-group-items {
121
+ display: flex;
122
+ flex-direction: column;
123
+ }
124
+
125
+ /* ── Empty state ── */
126
+ .void-menu-empty {
127
+ padding: var(--void-space-3) var(--void-space-3);
128
+ color: var(--void-color-text-muted);
129
+ font-size: var(--void-text-xs);
130
+ text-align: center;
131
+ }
132
+
133
+ /* ── Size variants ── */
134
+ void-menu[size='sm'] {
135
+ min-width: 180px;
136
+ }
137
+ void-menu[size='sm'] .void-menu-search {
138
+ padding: var(--void-space-1h) var(--void-space-2);
139
+ font-size: var(--void-text-xs);
140
+ }
141
+ void-menu[size='sm'] void-menu-item {
142
+ padding: var(--void-space-1h) var(--void-space-2);
143
+ font-size: var(--void-text-xs);
144
+ }
145
+ void-menu[size='sm'] .void-menu-list {
146
+ max-height: 14rem;
147
+ }
148
+
149
+ void-menu[size='lg'] {
150
+ min-width: 320px;
151
+ }
152
+ void-menu[size='lg'] .void-menu-search {
153
+ padding: var(--void-space-3) var(--void-space-4);
154
+ font-size: var(--void-text-base);
155
+ }
156
+ void-menu[size='lg'] void-menu-item {
157
+ padding: var(--void-space-3) var(--void-space-4);
158
+ font-size: var(--void-text-base);
159
+ }
160
+ void-menu[size='lg'] .void-menu-list {
161
+ max-height: 28rem;
162
+ }
@@ -97,7 +97,7 @@ void-multiselect[aria-expanded="true"] .void-multiselect-trigger {
97
97
  box-shadow: 0 4px 16px var(--void-color-bg-overlay);
98
98
  max-height: 16rem;
99
99
  overflow-y: auto;
100
- z-index: 100;
100
+ z-index: var(--void-z-dropdown);
101
101
  padding: var(--void-space-1) 0;
102
102
  }
103
103
 
@@ -11,7 +11,7 @@ void-nav-bar[bordered] {
11
11
  void-nav-bar[sticky] {
12
12
  position: sticky;
13
13
  top: 0;
14
- z-index: 100;
14
+ z-index: var(--void-z-sticky);
15
15
  }
16
16
 
17
17
  void-nav-bar[variant="elevated"] {
@@ -0,0 +1,128 @@
1
+ void-nav-menu {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: var(--void-space-1);
5
+ list-style: none;
6
+ margin: 0;
7
+ padding: 0;
8
+ font-family: var(--void-font-sans);
9
+ }
10
+
11
+ void-nav-menu[orientation="vertical"] {
12
+ flex-direction: column;
13
+ align-items: stretch;
14
+ width: var(--void-nav-menu-width, fit-content);
15
+ }
16
+
17
+ void-nav-menu-item {
18
+ position: relative;
19
+ display: inline-flex;
20
+ }
21
+
22
+ void-nav-menu[orientation="vertical"] void-nav-menu-item {
23
+ display: flex;
24
+ }
25
+
26
+ .void-nav-menu-trigger {
27
+ display: inline-flex;
28
+ align-items: center;
29
+ gap: var(--void-space-1);
30
+ padding: var(--void-space-2) var(--void-space-3);
31
+ font-family: var(--void-font-sans);
32
+ font-size: var(--void-text-sm);
33
+ font-weight: var(--void-weight-medium);
34
+ color: var(--void-color-text-muted);
35
+ background: none;
36
+ border: none;
37
+ border-radius: var(--void-radius-md);
38
+ cursor: pointer;
39
+ text-decoration: none;
40
+ white-space: nowrap;
41
+ user-select: none;
42
+ outline: none;
43
+ transition:
44
+ color var(--void-duration-fast) var(--void-ease-in-out),
45
+ background var(--void-duration-fast) var(--void-ease-in-out);
46
+ }
47
+
48
+ .void-nav-menu-trigger:hover {
49
+ color: var(--void-color-text);
50
+ background: var(--void-color-bg-hover);
51
+ }
52
+
53
+ .void-nav-menu-trigger:focus-visible {
54
+ color: var(--void-color-text);
55
+ outline: 2px solid var(--void-color-ring);
56
+ outline-offset: 2px; /* token-ok: intrinsic focus outline offset */
57
+ }
58
+
59
+ .void-nav-menu-trigger:active {
60
+ background: var(--void-color-bg-active);
61
+ }
62
+
63
+ void-nav-menu-item[active] .void-nav-menu-trigger {
64
+ color: var(--void-color-text);
65
+ }
66
+
67
+ void-nav-menu-item[active] .void-nav-menu-trigger::after {
68
+ content: '';
69
+ position: absolute;
70
+ bottom: 0;
71
+ left: var(--void-space-3);
72
+ right: var(--void-space-3);
73
+ height: 2px; /* token-ok: decorative active indicator */
74
+ background: var(--void-color-accent);
75
+ border-radius: var(--void-radius-full);
76
+ }
77
+
78
+ void-nav-menu[orientation="vertical"] void-nav-menu-item[active] .void-nav-menu-trigger::after {
79
+ top: var(--void-space-2);
80
+ bottom: var(--void-space-2);
81
+ left: 0;
82
+ right: auto;
83
+ width: 2px; /* token-ok: decorative active indicator */
84
+ height: auto;
85
+ }
86
+
87
+ void-nav-menu-item[disabled] .void-nav-menu-trigger {
88
+ color: var(--void-color-text-disabled);
89
+ cursor: default;
90
+ pointer-events: none;
91
+ }
92
+
93
+ .void-nav-menu-content {
94
+ position: absolute;
95
+ top: 100%;
96
+ left: 0;
97
+ z-index: var(--void-z-dropdown);
98
+ min-width: 12rem; /* token-ok: intrinsic dropdown minimum width */
99
+ padding: var(--void-space-2);
100
+ background: var(--void-color-bg-elevated);
101
+ border: 1px solid var(--void-color-border);
102
+ border-radius: var(--void-radius-lg);
103
+ box-shadow: 0 4px 16px var(--void-color-bg-overlay);
104
+ font-size: var(--void-text-sm);
105
+ color: var(--void-color-text);
106
+ opacity: 0;
107
+ pointer-events: none;
108
+ transform: translateY(var(--void-space-1));
109
+ transition:
110
+ opacity var(--void-duration-fast) var(--void-ease-in-out),
111
+ transform var(--void-duration-fast) var(--void-ease-in-out);
112
+ }
113
+
114
+ void-nav-menu-item[open] .void-nav-menu-content {
115
+ opacity: 1;
116
+ pointer-events: auto;
117
+ transform: translateY(0);
118
+ }
119
+
120
+ void-nav-menu[orientation="vertical"] .void-nav-menu-content {
121
+ top: 0;
122
+ left: 100%;
123
+ transform: translateX(var(--void-space-1));
124
+ }
125
+
126
+ void-nav-menu[orientation="vertical"] void-nav-menu-item[open] .void-nav-menu-content {
127
+ transform: translateX(0);
128
+ }
@@ -0,0 +1,187 @@
1
+ /* ============================================================
2
+ void-number-input — Tone system component
3
+ ============================================================ */
4
+
5
+ void-number-input {
6
+ /* Tone system */
7
+ --tone: var(--void-color-accent);
8
+ --tone-subtle: color-mix(in srgb, var(--tone) 14%, transparent);
9
+ --tone-border: color-mix(in srgb, var(--tone) 36%, transparent);
10
+ --tone-hover: color-mix(in srgb, var(--tone) 22%, transparent);
11
+
12
+ display: inline-flex;
13
+ align-items: stretch;
14
+ font-family: var(--void-font-sans);
15
+ border: 1px solid var(--void-color-border);
16
+ border-radius: var(--void-radius-md);
17
+ background: var(--void-color-bg-secondary);
18
+ overflow: hidden;
19
+ transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
20
+ box-shadow var(--void-duration-fast) var(--void-ease-in-out);
21
+ }
22
+
23
+ void-number-input:focus-within {
24
+ border-color: var(--void-color-border-focus);
25
+ box-shadow: 0 0 0 1px var(--void-color-border-focus);
26
+ }
27
+
28
+ void-number-input:hover:not(:focus-within) {
29
+ border-color: var(--void-color-border-strong);
30
+ }
31
+
32
+ /* The native input inside */
33
+ void-number-input input.void-number-input-field {
34
+ flex: 1;
35
+ min-width: 0;
36
+ padding: var(--void-space-2) var(--void-space-3);
37
+ background: transparent;
38
+ border: none;
39
+ color: var(--void-color-text);
40
+ font-family: inherit;
41
+ font-size: var(--void-text-sm);
42
+ line-height: var(--void-leading-normal);
43
+ outline: none;
44
+ text-align: center;
45
+ -moz-appearance: textfield;
46
+ }
47
+
48
+ void-number-input input.void-number-input-field::placeholder {
49
+ color: var(--void-color-text-muted);
50
+ }
51
+
52
+ /* Stepper buttons */
53
+ .void-number-input-btn {
54
+ display: inline-flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ padding: 0 var(--void-space-3);
58
+ background: transparent;
59
+ border: none;
60
+ color: var(--void-color-text-secondary);
61
+ cursor: pointer;
62
+ transition: background var(--void-duration-fast) var(--void-ease-in-out),
63
+ color var(--void-duration-fast) var(--void-ease-in-out);
64
+ user-select: none;
65
+ -webkit-user-select: none;
66
+ flex-shrink: 0;
67
+ }
68
+
69
+ .void-number-input-btn:hover:not(:disabled) {
70
+ background: var(--tone-hover);
71
+ color: var(--void-color-text);
72
+ }
73
+
74
+ .void-number-input-btn:focus-visible {
75
+ outline: 2px solid var(--void-color-border-focus);
76
+ outline-offset: -2px;
77
+ }
78
+
79
+ .void-number-input-btn:disabled {
80
+ opacity: 0.35;
81
+ cursor: not-allowed;
82
+ }
83
+
84
+ /* Separator lines between btn and input */
85
+ .void-number-input-btn-dec {
86
+ border-right: 1px solid var(--void-color-border);
87
+ }
88
+
89
+ .void-number-input-btn-inc {
90
+ border-left: 1px solid var(--void-color-border);
91
+ }
92
+
93
+ /* controls="right" — both buttons stacked vertically on the right */
94
+ void-number-input[controls="right"] .void-number-input-btn-group {
95
+ display: flex;
96
+ flex-direction: column;
97
+ border-left: 1px solid var(--void-color-border);
98
+ }
99
+
100
+ void-number-input[controls="right"] .void-number-input-btn {
101
+ flex: 1;
102
+ padding: 0 var(--void-space-2);
103
+ border: none;
104
+ }
105
+
106
+ void-number-input[controls="right"] .void-number-input-btn-inc {
107
+ border-bottom: 1px solid var(--void-color-border);
108
+ }
109
+
110
+ /* controls="none" — just the input, no separators */
111
+ void-number-input[controls="none"] input.void-number-input-field {
112
+ text-align: left;
113
+ }
114
+
115
+ /* Color variants */
116
+ void-number-input[color="error"] { --tone: var(--void-color-error); }
117
+ void-number-input[color="warning"] { --tone: var(--void-color-warning); }
118
+ void-number-input[color="caution"] { --tone: var(--void-color-caution); }
119
+ void-number-input[color="success"] { --tone: var(--void-color-success); }
120
+ void-number-input[color="info"] { --tone: var(--void-color-info); }
121
+ void-number-input[color="notice"] { --tone: var(--void-color-notice); }
122
+
123
+ void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) {
124
+ border-color: var(--tone-border);
125
+ background: var(--tone-subtle);
126
+ }
127
+
128
+ void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-number-input-btn {
129
+ color: var(--tone);
130
+ }
131
+
132
+ void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-number-input-btn-dec {
133
+ border-right-color: var(--tone-border);
134
+ }
135
+
136
+ void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-number-input-btn-inc {
137
+ border-left-color: var(--tone-border);
138
+ }
139
+
140
+ void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]):where([controls="right"]) .void-number-input-btn-group {
141
+ border-left-color: var(--tone-border);
142
+ }
143
+
144
+ void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]):where([controls="right"]) .void-number-input-btn-inc {
145
+ border-bottom-color: var(--tone-border);
146
+ }
147
+
148
+ void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]):focus-within {
149
+ border-color: var(--tone);
150
+ box-shadow: 0 0 0 1px var(--tone);
151
+ }
152
+
153
+ /* Size variants */
154
+ void-number-input[size="sm"] input.void-number-input-field {
155
+ padding: var(--void-space-1) var(--void-space-2);
156
+ font-size: var(--void-text-xs);
157
+ }
158
+
159
+ void-number-input[size="sm"] .void-number-input-btn {
160
+ padding: 0 var(--void-space-2);
161
+ font-size: var(--void-text-xs);
162
+ }
163
+
164
+ void-number-input[size="lg"] input.void-number-input-field {
165
+ padding: var(--void-space-3) var(--void-space-4);
166
+ font-size: var(--void-text-base);
167
+ }
168
+
169
+ void-number-input[size="lg"] .void-number-input-btn {
170
+ padding: 0 var(--void-space-4);
171
+ }
172
+
173
+ /* Disabled state */
174
+ void-number-input[disabled] {
175
+ opacity: 0.5;
176
+ cursor: not-allowed;
177
+ }
178
+
179
+ void-number-input[disabled] input.void-number-input-field {
180
+ cursor: not-allowed;
181
+ pointer-events: none;
182
+ }
183
+
184
+ /* Readonly state */
185
+ void-number-input[readonly] input.void-number-input-field {
186
+ cursor: default;
187
+ }
@@ -1,3 +1,10 @@
1
+ void-pagination {
2
+ --tone: var(--void-color-accent);
3
+ --tone-subtle: color-mix(in srgb, var(--tone) 14%, transparent);
4
+ --tone-border: color-mix(in srgb, var(--tone) 36%, transparent);
5
+ --tone-hover: color-mix(in srgb, var(--tone) 22%, transparent);
6
+ }
7
+
1
8
  void-pagination nav {
2
9
  display: flex;
3
10
  align-items: center;
@@ -26,7 +33,7 @@ void-pagination nav {
26
33
  }
27
34
 
28
35
  .void-pagination-btn:hover:not(:disabled) {
29
- background: var(--void-color-bg-hover);
36
+ background: var(--tone-hover);
30
37
  }
31
38
 
32
39
  .void-pagination-btn:focus-visible {
@@ -35,9 +42,9 @@ void-pagination nav {
35
42
  }
36
43
 
37
44
  .void-pagination-btn[aria-current="page"] {
38
- background: var(--void-color-accent);
39
- color: var(--void-color-text-on-accent);
40
- border-color: var(--void-color-accent);
45
+ background: var(--tone-subtle);
46
+ color: var(--void-color-text);
47
+ border-color: var(--tone-border);
41
48
  cursor: default;
42
49
  }
43
50