@voidable/theme 0.0.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 (50) hide show
  1. package/LICENSE.md +25 -0
  2. package/README.md +42 -0
  3. package/package.json +18 -0
  4. package/src/components/accordion.css +58 -0
  5. package/src/components/alert.css +53 -0
  6. package/src/components/avatar.css +26 -0
  7. package/src/components/badge.css +36 -0
  8. package/src/components/banner.css +52 -0
  9. package/src/components/breadcrumbs.css +41 -0
  10. package/src/components/button.css +99 -0
  11. package/src/components/card.css +47 -0
  12. package/src/components/checkbox-group.css +27 -0
  13. package/src/components/checkbox.css +84 -0
  14. package/src/components/combobox.css +92 -0
  15. package/src/components/compose-input.css +68 -0
  16. package/src/components/dialog.css +77 -0
  17. package/src/components/divider.css +43 -0
  18. package/src/components/drawer.css +131 -0
  19. package/src/components/error-fallback.css +56 -0
  20. package/src/components/field.css +43 -0
  21. package/src/components/file-upload.css +103 -0
  22. package/src/components/hamburger.css +75 -0
  23. package/src/components/input.css +57 -0
  24. package/src/components/list.css +37 -0
  25. package/src/components/multiselect.css +170 -0
  26. package/src/components/nav-bar.css +28 -0
  27. package/src/components/pagination.css +75 -0
  28. package/src/components/panel.css +26 -0
  29. package/src/components/popover.css +44 -0
  30. package/src/components/progress.css +42 -0
  31. package/src/components/radio-group.css +24 -0
  32. package/src/components/radio.css +80 -0
  33. package/src/components/scroll-area.css +42 -0
  34. package/src/components/select.css +97 -0
  35. package/src/components/skeleton.css +31 -0
  36. package/src/components/slider.css +126 -0
  37. package/src/components/spinner.css +45 -0
  38. package/src/components/status-dot.css +21 -0
  39. package/src/components/stepper.css +68 -0
  40. package/src/components/switch.css +81 -0
  41. package/src/components/table.css +46 -0
  42. package/src/components/tabs.css +64 -0
  43. package/src/components/tag.css +51 -0
  44. package/src/components/textarea.css +57 -0
  45. package/src/components/toast.css +72 -0
  46. package/src/components/tooltip.css +49 -0
  47. package/src/index.css +46 -0
  48. package/src/primitives.css +192 -0
  49. package/src/reset.css +36 -0
  50. package/src/tokens.css +110 -0
package/LICENSE.md ADDED
@@ -0,0 +1,25 @@
1
+ The MIT License (MIT)
2
+ =====================
3
+
4
+ Copyright © `2026` `Kaz Walker`
5
+
6
+ Permission is hereby granted, free of charge, to any person
7
+ obtaining a copy of this software and associated documentation
8
+ files (the “Software”), to deal in the Software without
9
+ restriction, including without limitation the rights to use,
10
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the
12
+ Software is furnished to do so, subject to the following
13
+ conditions:
14
+
15
+ The above copyright notice and this permission notice shall be
16
+ included in all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
19
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
20
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25
+ OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # @voidable/theme
2
+
3
+ CSS theme for Voidable UI — design tokens, primitives, reset, and component styles.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @voidable/theme
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ Import the full theme (includes primitives, tokens, reset, and all component styles):
14
+
15
+ ```css
16
+ @import '@voidable/theme';
17
+ ```
18
+
19
+ Or import individual layers:
20
+
21
+ ```css
22
+ @import '@voidable/theme/primitives';
23
+ @import '@voidable/theme/tokens';
24
+ @import '@voidable/theme/reset';
25
+ ```
26
+
27
+ ## Dark mode
28
+
29
+ Set the `data-theme` attribute on `<html>`:
30
+
31
+ ```html
32
+ <html data-theme="dark">
33
+ ```
34
+
35
+ ## Documentation
36
+
37
+ - [Storybook](https://voidableui.github.io/Voidable/)
38
+ - [GitHub](https://github.com/VoidableUI/Voidable)
39
+
40
+ ## License
41
+
42
+ MIT
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@voidable/theme",
3
+ "version": "0.0.0",
4
+ "type": "module",
5
+ "license": "MIT",
6
+ "exports": {
7
+ ".": "./src/index.css",
8
+ "./primitives": "./src/primitives.css",
9
+ "./tokens": "./src/tokens.css",
10
+ "./reset": "./src/reset.css"
11
+ },
12
+ "files": ["src"],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/VoidableUI/Voidable",
16
+ "directory": "packages/theme"
17
+ }
18
+ }
@@ -0,0 +1,58 @@
1
+ void-accordion {
2
+ display: flex;
3
+ flex-direction: column;
4
+ }
5
+
6
+ void-accordion-item {
7
+ border-bottom: 1px solid var(--void-color-border);
8
+ }
9
+
10
+ .void-accordion-trigger {
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: space-between;
14
+ width: 100%;
15
+ padding: var(--void-space-3) var(--void-space-4);
16
+ border: none;
17
+ background: transparent;
18
+ color: var(--void-color-text);
19
+ font-family: var(--void-font-sans);
20
+ font-size: var(--void-text-base);
21
+ font-weight: var(--void-weight-medium);
22
+ text-align: left;
23
+ cursor: pointer;
24
+ transition: background var(--void-duration-fast) var(--void-ease-in-out);
25
+ }
26
+
27
+ .void-accordion-trigger:hover {
28
+ background: var(--void-color-bg-hover);
29
+ }
30
+
31
+ .void-accordion-trigger:focus-visible {
32
+ outline: 2px solid var(--void-color-border);
33
+ outline-offset: -2px;
34
+ }
35
+
36
+ .void-accordion-chevron {
37
+ width: 1rem;
38
+ height: 1rem;
39
+ flex-shrink: 0;
40
+ color: var(--void-color-text-secondary);
41
+ transition: transform var(--void-duration-fast) var(--void-ease-in-out);
42
+ }
43
+
44
+ void-accordion-item[open] .void-accordion-chevron {
45
+ transform: rotate(90deg);
46
+ }
47
+
48
+ .void-accordion-content {
49
+ display: none;
50
+ }
51
+
52
+ void-accordion-item[open] .void-accordion-content {
53
+ display: block;
54
+ padding: var(--void-space-3) var(--void-space-4) var(--void-space-4);
55
+ color: var(--void-color-text);
56
+ font-family: var(--void-font-sans);
57
+ font-size: var(--void-text-sm);
58
+ }
@@ -0,0 +1,53 @@
1
+ void-alert {
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
+
6
+ display: flex;
7
+ align-items: flex-start;
8
+ gap: var(--void-space-3);
9
+ padding: var(--void-space-3) var(--void-space-4);
10
+ border: 1px solid var(--tone-border);
11
+ border-radius: var(--void-radius-md);
12
+ background: var(--tone-subtle);
13
+ color: var(--void-color-text);
14
+ font-family: var(--void-font-sans);
15
+ font-size: var(--void-text-sm);
16
+ line-height: var(--void-leading-normal);
17
+ }
18
+
19
+ void-alert[variant="filled"] {
20
+ background: var(--tone);
21
+ border-color: var(--tone);
22
+ color: var(--void-color-text-on-accent);
23
+ }
24
+
25
+ void-alert[color="error"] { --tone: var(--void-color-error); }
26
+ void-alert[color="warning"] { --tone: var(--void-color-warning); }
27
+ void-alert[color="success"] { --tone: var(--void-color-success); }
28
+ void-alert[color="info"] { --tone: var(--void-color-info); }
29
+ void-alert[color="notice"] { --tone: var(--void-color-notice); }
30
+
31
+ .void-alert-close {
32
+ order: 1;
33
+ margin-left: auto;
34
+ flex-shrink: 0;
35
+ display: inline-flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ width: 1.25rem;
39
+ height: 1.25rem;
40
+ padding: 0;
41
+ border: none;
42
+ border-radius: var(--void-radius-sm);
43
+ background: transparent;
44
+ color: inherit;
45
+ font-size: var(--void-text-base);
46
+ cursor: pointer;
47
+ opacity: 0.6;
48
+ transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
49
+ }
50
+
51
+ .void-alert-close:hover {
52
+ opacity: 1;
53
+ }
@@ -0,0 +1,26 @@
1
+ void-avatar {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ width: 2.5rem;
6
+ height: 2.5rem;
7
+ border-radius: var(--void-radius-full);
8
+ background: var(--void-color-bg-hover);
9
+ color: var(--void-color-text-secondary);
10
+ font-family: var(--void-font-sans);
11
+ font-size: var(--void-text-sm);
12
+ font-weight: var(--void-weight-semibold);
13
+ overflow: hidden;
14
+ user-select: none;
15
+ }
16
+
17
+ void-avatar img {
18
+ width: 100%;
19
+ height: 100%;
20
+ object-fit: cover;
21
+ }
22
+
23
+ void-avatar[size="sm"] { width: 1.75rem; height: 1.75rem; font-size: var(--void-text-xs); }
24
+ void-avatar[size="lg"] { width: 3.5rem; height: 3.5rem; font-size: var(--void-text-lg); }
25
+ void-avatar[size="xl"] { width: 5rem; height: 5rem; font-size: var(--void-text-xl); }
26
+ void-avatar[size="xxl"] { width: 6.5rem; height: 6.5rem; font-size: var(--void-text-2xl); }
@@ -0,0 +1,36 @@
1
+ /* ============================================================
2
+ void-badge — Tone system component
3
+ ============================================================ */
4
+
5
+ void-badge {
6
+ --tone: var(--void-color-accent);
7
+
8
+ display: inline-grid;
9
+ place-content: center;
10
+ padding: 0.25rem 0.375rem 0.125rem;
11
+ min-width: 1.25rem;
12
+ min-height: 1.25rem;
13
+ border-radius: var(--void-radius-full);
14
+ background: var(--tone);
15
+ color: var(--void-color-text-on-accent);
16
+ font-family: var(--void-font-sans);
17
+ font-size: var(--void-text-xs);
18
+ font-weight: var(--void-weight-semibold);
19
+ line-height: var(--void-leading-tight);
20
+ white-space: nowrap;
21
+ text-align: center;
22
+ }
23
+
24
+ /* Colors */
25
+ void-badge[color="error"] { --tone: var(--void-color-error); }
26
+ void-badge[color="warning"] { --tone: var(--void-color-warning); }
27
+ void-badge[color="success"] { --tone: var(--void-color-success); }
28
+ void-badge[color="info"] { --tone: var(--void-color-info); }
29
+ void-badge[color="notice"] { --tone: var(--void-color-notice); }
30
+ void-badge[color="highlight"] { --tone: var(--void-color-highlight); }
31
+
32
+ /* Sizes */
33
+ void-badge[size="sm"] { min-width: 1rem; min-height: 1rem; font-size: var(--void-text-2xs); padding: 0.0625rem var(--void-space-1) 0; }
34
+ void-badge[size="lg"] { min-width: 1.75rem; min-height: 1.75rem; font-size: var(--void-text-sm); padding: 0.3125rem var(--void-space-3) 0.1875rem; }
35
+ void-badge[size="xl"] { min-width: 2.25rem; min-height: 2.25rem; font-size: var(--void-text-base); padding: 0.375rem var(--void-space-4) 0.25rem; }
36
+ void-badge[size="xxl"] { min-width: 3rem; min-height: 3rem; font-size: var(--void-text-lg); padding: 0.4375rem var(--void-space-5) 0.3125rem; }
@@ -0,0 +1,52 @@
1
+ void-banner {
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
+
6
+ display: flex;
7
+ align-items: center;
8
+ gap: var(--void-space-3);
9
+ padding: var(--void-space-3) var(--void-space-4);
10
+ border: 1px solid var(--tone-border);
11
+ border-radius: var(--void-radius-md);
12
+ background: var(--tone-subtle);
13
+ color: var(--void-color-text);
14
+ font-family: var(--void-font-sans);
15
+ font-size: var(--void-text-sm);
16
+ }
17
+
18
+ void-banner[variant="filled"] {
19
+ background: var(--tone);
20
+ border-color: var(--tone);
21
+ color: var(--void-color-text-on-accent);
22
+ }
23
+
24
+ void-banner[color="error"] { --tone: var(--void-color-error); }
25
+ void-banner[color="warning"] { --tone: var(--void-color-warning); }
26
+ void-banner[color="success"] { --tone: var(--void-color-success); }
27
+ void-banner[color="info"] { --tone: var(--void-color-info); }
28
+ void-banner[color="notice"] { --tone: var(--void-color-notice); }
29
+
30
+ .void-banner-close {
31
+ order: 1;
32
+ margin-left: auto;
33
+ flex-shrink: 0;
34
+ display: inline-flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ width: 1.25rem;
38
+ height: 1.25rem;
39
+ padding: 0;
40
+ border: none;
41
+ border-radius: var(--void-radius-sm);
42
+ background: transparent;
43
+ color: inherit;
44
+ font-size: var(--void-text-base);
45
+ cursor: pointer;
46
+ opacity: 0.6;
47
+ transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
48
+ }
49
+
50
+ .void-banner-close:hover {
51
+ opacity: 1;
52
+ }
@@ -0,0 +1,41 @@
1
+ void-breadcrumbs {
2
+ display: block;
3
+ font-family: var(--void-font-sans);
4
+ }
5
+
6
+ .void-breadcrumbs-list {
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ align-items: center;
10
+ list-style: none;
11
+ padding: 0;
12
+ margin: 0;
13
+ gap: var(--void-space-1);
14
+ }
15
+
16
+ .void-breadcrumbs-item {
17
+ display: inline-flex;
18
+ align-items: center;
19
+ font-size: var(--void-text-sm);
20
+ color: var(--void-color-text-muted);
21
+ }
22
+
23
+ .void-breadcrumbs-item + .void-breadcrumbs-item::before {
24
+ content: attr(data-separator, "/");
25
+ margin-right: var(--void-space-1);
26
+ color: var(--void-color-text-muted);
27
+ opacity: 0.5;
28
+ }
29
+
30
+ .void-breadcrumbs-item:last-child {
31
+ color: var(--void-color-text);
32
+ }
33
+
34
+ .void-breadcrumbs-item a {
35
+ color: var(--void-color-text-muted);
36
+ text-decoration: none;
37
+ }
38
+
39
+ .void-breadcrumbs-item a:hover {
40
+ color: var(--void-color-text);
41
+ }
@@ -0,0 +1,99 @@
1
+ /* ============================================================
2
+ void-button — Tone system component
3
+ ============================================================ */
4
+
5
+ void-button {
6
+ /* Tone system — base defaults to accent (monochrome white/black) */
7
+ --tone: var(--void-color-accent);
8
+ --tone-text: var(--tone);
9
+ --tone-subtle: color-mix(in srgb, var(--tone) 14%, transparent);
10
+ --tone-border: color-mix(in srgb, var(--tone) 36%, transparent);
11
+ --tone-hover: color-mix(in srgb, var(--tone) 22%, transparent);
12
+
13
+ /* Layout */
14
+ display: inline-flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ gap: var(--void-space-2);
18
+
19
+ /* Generous spacing (negative space principle) */
20
+ padding: var(--void-space-2) var(--void-space-4);
21
+
22
+ /* Typography */
23
+ font-family: var(--void-font-sans);
24
+ font-size: var(--void-text-sm);
25
+ font-weight: var(--void-weight-medium);
26
+ line-height: var(--void-leading-tight);
27
+
28
+ /* Visual */
29
+ background: var(--tone-subtle);
30
+ border: 1px solid var(--tone-border);
31
+ border-radius: var(--void-radius-md);
32
+ color: var(--void-color-text);
33
+ cursor: pointer;
34
+
35
+ /* Motion */
36
+ transition: background var(--void-duration-fast) var(--void-ease-in-out),
37
+ border-color var(--void-duration-fast) var(--void-ease-in-out),
38
+ color var(--void-duration-fast) var(--void-ease-in-out);
39
+
40
+ /* Agent-friendly: no user-select so agents can read text */
41
+ user-select: none;
42
+ }
43
+
44
+ /* Hover */
45
+ void-button:hover {
46
+ background: var(--tone-hover);
47
+ }
48
+
49
+ /* Focus */
50
+ void-button:focus-visible {
51
+ outline: 2px solid var(--void-color-border-focus);
52
+ outline-offset: 2px;
53
+ }
54
+
55
+ /* Filled variant */
56
+ void-button[variant="filled"] {
57
+ background: var(--tone);
58
+ border-color: var(--tone);
59
+ color: var(--void-color-text-on-accent);
60
+ }
61
+
62
+ void-button[variant="filled"]:hover {
63
+ opacity: 0.9;
64
+ }
65
+
66
+ /* Color variants — one override cascades to all derived states */
67
+ void-button[color="error"] { --tone: var(--void-color-error); }
68
+ void-button[color="warning"] { --tone: var(--void-color-warning); }
69
+ void-button[color="success"] { --tone: var(--void-color-success); }
70
+ void-button[color="info"] { --tone: var(--void-color-info); }
71
+ void-button[color="notice"] { --tone: var(--void-color-notice); }
72
+
73
+ /* Size variants */
74
+ void-button[size="sm"] {
75
+ padding: var(--void-space-1) var(--void-space-2);
76
+ font-size: var(--void-text-xs);
77
+ }
78
+
79
+ void-button[size="lg"] {
80
+ padding: var(--void-space-3) var(--void-space-6);
81
+ font-size: var(--void-text-base);
82
+ }
83
+
84
+ void-button[size="xl"] {
85
+ padding: var(--void-space-4) var(--void-space-8);
86
+ font-size: var(--void-text-lg);
87
+ }
88
+
89
+ void-button[size="xxl"] {
90
+ padding: var(--void-space-5) var(--void-space-10);
91
+ font-size: var(--void-text-xl);
92
+ }
93
+
94
+ /* Disabled */
95
+ void-button[disabled] {
96
+ opacity: 0.5;
97
+ pointer-events: none;
98
+ cursor: not-allowed;
99
+ }
@@ -0,0 +1,47 @@
1
+ void-card {
2
+ display: flex;
3
+ flex-direction: column;
4
+ border: 1px solid var(--void-color-border);
5
+ border-radius: var(--void-radius-lg);
6
+ overflow: hidden;
7
+ background: var(--void-color-bg-secondary);
8
+ font-family: var(--void-font-sans);
9
+ }
10
+
11
+ void-card[variant="elevated"] {
12
+ background: var(--void-color-bg-elevated);
13
+ border: none;
14
+ box-shadow: var(--void-shadow-md);
15
+ }
16
+
17
+ void-card[variant="outlined"] {
18
+ background: transparent;
19
+ border: 1px solid var(--void-color-border);
20
+ }
21
+
22
+ .void-card-header {
23
+ padding: var(--void-space-4) var(--void-space-4) var(--void-space-3);
24
+ border-bottom: 1px solid var(--void-color-border);
25
+ }
26
+
27
+ .void-card-heading {
28
+ font-size: var(--void-text-base);
29
+ font-weight: var(--void-weight-semibold);
30
+ color: var(--void-color-text);
31
+ }
32
+
33
+ .void-card-body {
34
+ padding: var(--void-space-4);
35
+ }
36
+
37
+ void-card[padding="none"] .void-card-body {
38
+ padding: 0;
39
+ }
40
+
41
+ void-card[padding="sm"] .void-card-body {
42
+ padding: var(--void-space-2);
43
+ }
44
+
45
+ void-card[padding="lg"] .void-card-body {
46
+ padding: var(--void-space-6);
47
+ }
@@ -0,0 +1,27 @@
1
+ void-checkbox-group {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: var(--void-space-2);
5
+ font-family: var(--void-font-sans);
6
+ }
7
+
8
+ .void-checkbox-group-label {
9
+ font-size: var(--void-text-sm);
10
+ font-weight: var(--void-weight-medium);
11
+ color: var(--void-color-text);
12
+ margin-bottom: var(--void-space-1);
13
+ }
14
+
15
+ .void-checkbox-group-items {
16
+ display: flex;
17
+ gap: var(--void-space-2);
18
+ }
19
+
20
+ void-checkbox-group[orientation="vertical"] .void-checkbox-group-items {
21
+ flex-direction: column;
22
+ }
23
+
24
+ void-checkbox-group[orientation="horizontal"] .void-checkbox-group-items {
25
+ flex-direction: row;
26
+ flex-wrap: wrap;
27
+ }
@@ -0,0 +1,84 @@
1
+ void-checkbox {
2
+ --tone: var(--void-color-accent);
3
+
4
+ display: inline-flex;
5
+ align-items: center;
6
+ gap: var(--void-space-2);
7
+ cursor: pointer;
8
+ font-family: var(--void-font-sans);
9
+ font-size: var(--void-text-sm);
10
+ color: var(--void-color-text);
11
+ user-select: none;
12
+ }
13
+
14
+ void-checkbox input[type="checkbox"] {
15
+ position: absolute;
16
+ width: 1px;
17
+ height: 1px;
18
+ overflow: hidden;
19
+ clip: rect(0, 0, 0, 0);
20
+ }
21
+
22
+ .void-checkbox-box {
23
+ display: inline-flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ flex-shrink: 0;
27
+ width: 1.125rem;
28
+ height: 1.125rem;
29
+ border: 1.5px solid var(--void-color-border-strong);
30
+ border-radius: var(--void-radius-sm);
31
+ background: transparent;
32
+ color: var(--void-color-text-on-accent);
33
+ transition: background var(--void-duration-fast) var(--void-ease-in-out),
34
+ border-color var(--void-duration-fast) var(--void-ease-in-out);
35
+ }
36
+
37
+ .void-checkbox-box svg {
38
+ width: 0.75rem;
39
+ height: 0.75rem;
40
+ }
41
+
42
+ void-checkbox:hover .void-checkbox-box {
43
+ border-color: var(--tone);
44
+ }
45
+
46
+ void-checkbox:focus-visible .void-checkbox-box {
47
+ outline: 2px solid var(--void-color-border-focus);
48
+ outline-offset: 2px;
49
+ }
50
+
51
+ void-checkbox[checked] .void-checkbox-box {
52
+ background: var(--tone);
53
+ border-color: var(--tone);
54
+ }
55
+
56
+ void-checkbox[indeterminate] .void-checkbox-box {
57
+ background: var(--tone);
58
+ border-color: var(--tone);
59
+ }
60
+
61
+ void-checkbox[color="error"] { --tone: var(--void-color-error); }
62
+ void-checkbox[color="warning"] { --tone: var(--void-color-warning); }
63
+ void-checkbox[color="success"] { --tone: var(--void-color-success); }
64
+ void-checkbox[color="info"] { --tone: var(--void-color-info); }
65
+ void-checkbox[color="notice"] { --tone: var(--void-color-notice); }
66
+
67
+ void-checkbox[size="sm"] { font-size: var(--void-text-xs); }
68
+ void-checkbox[size="sm"] .void-checkbox-box { width: 0.875rem; height: 0.875rem; }
69
+ void-checkbox[size="sm"] .void-checkbox-box svg { width: 0.625rem; height: 0.625rem; }
70
+ void-checkbox[size="lg"] { font-size: var(--void-text-base); }
71
+ void-checkbox[size="lg"] .void-checkbox-box { width: 1.375rem; height: 1.375rem; }
72
+ void-checkbox[size="lg"] .void-checkbox-box svg { width: 1rem; height: 1rem; }
73
+ void-checkbox[size="xl"] { font-size: var(--void-text-lg); }
74
+ void-checkbox[size="xl"] .void-checkbox-box { width: 1.625rem; height: 1.625rem; }
75
+ void-checkbox[size="xl"] .void-checkbox-box svg { width: 1.125rem; height: 1.125rem; }
76
+ void-checkbox[size="xxl"] { font-size: var(--void-text-xl); }
77
+ void-checkbox[size="xxl"] .void-checkbox-box { width: 1.875rem; height: 1.875rem; }
78
+ void-checkbox[size="xxl"] .void-checkbox-box svg { width: 1.25rem; height: 1.25rem; }
79
+
80
+ void-checkbox[disabled] {
81
+ opacity: 0.5;
82
+ pointer-events: none;
83
+ cursor: not-allowed;
84
+ }