@arun-dev/tokens 0.5.0 → 0.7.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arun-dev/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Pure-CSS design tokens with white-label brand generation — primitives, brand palettes, semantic layers, and the createBrand() generator",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"eslint": "9.39.4",
|
|
61
61
|
"tsup": "8.5.1",
|
|
62
62
|
"typescript": "5.9.3",
|
|
63
|
-
"vitest": "
|
|
63
|
+
"vitest": "4.1.11",
|
|
64
64
|
"@arun-dev/config": "0.0.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* Checkbox component tokens — map semantic tokens onto the checkbox's styleable surfaces.
|
|
2
|
+
Override any of these to restyle checkboxes without moving other components. */
|
|
3
|
+
:root {
|
|
4
|
+
/* Box */
|
|
5
|
+
--checkbox-size: 1.125rem;
|
|
6
|
+
--checkbox-radius: var(--radius-sm);
|
|
7
|
+
--checkbox-bg: var(--color-bg-primary);
|
|
8
|
+
--checkbox-bg-checked: var(--color-text-accent);
|
|
9
|
+
--checkbox-border-color: var(--color-border-default);
|
|
10
|
+
--checkbox-border-color-checked: var(--color-text-accent);
|
|
11
|
+
--checkbox-border-width: var(--space-px);
|
|
12
|
+
|
|
13
|
+
/* Mark — the check and the dash alike, so the two never drift apart */
|
|
14
|
+
--checkbox-indicator-size: 0.75rem;
|
|
15
|
+
--checkbox-indicator-color: var(--color-text-on-accent);
|
|
16
|
+
--checkbox-indicator-stroke-width: 2.5;
|
|
17
|
+
|
|
18
|
+
--checkbox-disabled-opacity: 0.5;
|
|
19
|
+
--checkbox-duration: var(--duration-fast);
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Radio group component tokens — map semantic tokens onto the radio's styleable surfaces.
|
|
2
|
+
Override any of these to restyle radios without moving other components. */
|
|
3
|
+
:root {
|
|
4
|
+
/* Circle */
|
|
5
|
+
--radio-size: 1.125rem;
|
|
6
|
+
--radio-bg: var(--color-bg-primary);
|
|
7
|
+
--radio-bg-checked: var(--color-text-accent);
|
|
8
|
+
--radio-border-color: var(--color-border-default);
|
|
9
|
+
--radio-border-color-checked: var(--color-text-accent);
|
|
10
|
+
--radio-border-width: var(--space-px);
|
|
11
|
+
|
|
12
|
+
/* Dot */
|
|
13
|
+
--radio-dot-size: 0.5rem;
|
|
14
|
+
--radio-dot-color: var(--color-text-on-accent);
|
|
15
|
+
|
|
16
|
+
/* Group */
|
|
17
|
+
--radio-group-gap: var(--space-2xs);
|
|
18
|
+
|
|
19
|
+
--radio-disabled-opacity: 0.5;
|
|
20
|
+
--radio-duration: var(--duration-fast);
|
|
21
|
+
}
|