@arun-dev/tokens 0.6.0 → 0.8.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 +1 -1
- package/src/components/input.css +26 -0
- package/src/components/radio-group.css +21 -0
- package/src/components.css +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arun-dev/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* Input component tokens — map semantic tokens onto the text field's styleable surfaces.
|
|
2
|
+
Override any of these to restyle inputs without moving other components. */
|
|
3
|
+
:root {
|
|
4
|
+
/* Box — the bordered frame that holds the control and its slots */
|
|
5
|
+
--input-height: 2.25rem;
|
|
6
|
+
--input-padding-inline: var(--space-xs);
|
|
7
|
+
--input-radius: var(--radius-md);
|
|
8
|
+
--input-bg: var(--color-bg-primary);
|
|
9
|
+
--input-border-width: var(--space-px);
|
|
10
|
+
--input-border-color: var(--color-border-default);
|
|
11
|
+
--input-border-color-hover: var(--color-border-strong);
|
|
12
|
+
--input-border-color-focus: var(--color-text-accent);
|
|
13
|
+
--input-border-color-invalid: var(--color-status-error);
|
|
14
|
+
|
|
15
|
+
/* Text */
|
|
16
|
+
--input-font-size: var(--text-sm);
|
|
17
|
+
--input-color: var(--color-text-primary);
|
|
18
|
+
--input-placeholder-color: var(--color-text-muted);
|
|
19
|
+
|
|
20
|
+
/* Slots — icons, units or buttons before and after the text */
|
|
21
|
+
--input-slot-color: var(--color-text-secondary);
|
|
22
|
+
--input-slot-gap: var(--space-2xs);
|
|
23
|
+
|
|
24
|
+
--input-disabled-opacity: 0.5;
|
|
25
|
+
--input-duration: var(--duration-fast);
|
|
26
|
+
}
|
|
@@ -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
|
+
}
|