@arun-dev/tokens 0.10.0 → 0.12.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/dialog.css +27 -0
- package/src/components/select.css +29 -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.12.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,27 @@
|
|
|
1
|
+
/* Dialog component tokens — map semantic tokens onto the modal panel and its backdrop.
|
|
2
|
+
Override any of these to restyle dialogs without moving other components. */
|
|
3
|
+
:root {
|
|
4
|
+
/* Panel */
|
|
5
|
+
--dialog-width: 32rem;
|
|
6
|
+
--dialog-viewport-gap: var(--space-md);
|
|
7
|
+
--dialog-padding: var(--space-lg);
|
|
8
|
+
--dialog-radius: var(--radius-lg);
|
|
9
|
+
--dialog-bg: var(--color-bg-primary);
|
|
10
|
+
--dialog-color: var(--color-text-primary);
|
|
11
|
+
--dialog-border-width: var(--space-px);
|
|
12
|
+
--dialog-border-color: var(--color-border-subtle);
|
|
13
|
+
--dialog-shadow: var(--shadow-xl);
|
|
14
|
+
|
|
15
|
+
/* Title */
|
|
16
|
+
--dialog-title-font-size: var(--text-lg);
|
|
17
|
+
--dialog-title-font-weight: var(--font-weight-semibold);
|
|
18
|
+
--dialog-title-gap: var(--space-xs);
|
|
19
|
+
|
|
20
|
+
/* Backdrop — a neutral scrim, the same in every brand and mode, so it is a value
|
|
21
|
+
rather than a mapping: no semantic token describes it. */
|
|
22
|
+
--dialog-backdrop: rgb(0 0 0 / 0.5);
|
|
23
|
+
|
|
24
|
+
/* Motion */
|
|
25
|
+
--dialog-duration: var(--duration-normal);
|
|
26
|
+
--dialog-enter-offset: var(--space-xs);
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* Select component tokens — map semantic tokens onto the dropdown's styleable surfaces.
|
|
2
|
+
Values match Input's so fields sit together, but map from the semantic tier directly:
|
|
3
|
+
overriding --input-* moves only inputs, and these move only selects. */
|
|
4
|
+
:root {
|
|
5
|
+
/* Box — the bordered frame that holds the control and its chevron */
|
|
6
|
+
--select-height: 2.25rem;
|
|
7
|
+
--select-padding-inline: var(--space-xs);
|
|
8
|
+
--select-padding-block-list: var(--space-2xs);
|
|
9
|
+
--select-radius: var(--radius-md);
|
|
10
|
+
--select-bg: var(--color-bg-primary);
|
|
11
|
+
--select-border-width: var(--space-px);
|
|
12
|
+
--select-border-color: var(--color-border-default);
|
|
13
|
+
--select-border-color-hover: var(--color-border-strong);
|
|
14
|
+
--select-border-color-focus: var(--color-text-accent);
|
|
15
|
+
--select-border-color-invalid: var(--color-status-error);
|
|
16
|
+
|
|
17
|
+
/* Text */
|
|
18
|
+
--select-font-size: var(--text-sm);
|
|
19
|
+
--select-color: var(--color-text-primary);
|
|
20
|
+
--select-placeholder-color: var(--color-text-muted);
|
|
21
|
+
|
|
22
|
+
/* Chevron */
|
|
23
|
+
--select-icon-size: 1rem;
|
|
24
|
+
--select-icon-gap: var(--space-2xs);
|
|
25
|
+
--select-icon-color: var(--color-text-secondary);
|
|
26
|
+
|
|
27
|
+
--select-disabled-opacity: 0.5;
|
|
28
|
+
--select-duration: var(--duration-fast);
|
|
29
|
+
}
|
package/src/components.css
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
@import './components/badge.css';
|
|
7
7
|
@import './components/button.css';
|
|
8
8
|
@import './components/checkbox.css';
|
|
9
|
+
@import './components/dialog.css';
|
|
9
10
|
@import './components/input.css';
|
|
10
11
|
@import './components/radio-group.css';
|
|
12
|
+
@import './components/select.css';
|
|
11
13
|
@import './components/switch.css';
|
|
12
14
|
@import './components/textarea.css';
|