@arun-dev/tokens 0.19.0 → 0.21.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.19.0",
3
+ "version": "0.21.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,15 @@
1
+ /* Accordion component tokens — native <details> items, one under another. */
2
+ :root {
3
+ --accordion-border-color: var(--color-border-default);
4
+ --accordion-trigger-padding-block: var(--space-sm);
5
+ --accordion-trigger-padding-inline: var(--space-2xs);
6
+ --accordion-trigger-color: var(--color-text-primary);
7
+ --accordion-trigger-font-weight: var(--font-weight-medium);
8
+ --accordion-trigger-bg-hover: var(--color-bg-secondary);
9
+ --accordion-icon-color: var(--color-text-secondary);
10
+ --accordion-panel-padding-block-end: var(--space-sm);
11
+ --accordion-panel-color: var(--color-text-secondary);
12
+ --accordion-focus-color: var(--color-text-accent);
13
+ --accordion-radius: var(--radius-sm);
14
+ --accordion-duration: var(--duration-normal);
15
+ }
@@ -0,0 +1,24 @@
1
+ /* Alert component tokens — a message box, toned on the semantic status tokens. */
2
+ :root {
3
+ --alert-padding: var(--space-sm);
4
+ --alert-gap: var(--space-2xs);
5
+ --alert-radius: var(--radius-md);
6
+ --alert-border-width: var(--space-px);
7
+ --alert-title-font-weight: var(--font-weight-semibold);
8
+
9
+ /* Neutral — the default tone */
10
+ --alert-bg: var(--color-bg-secondary);
11
+ --alert-border-color: var(--color-border-default);
12
+ --alert-color: var(--color-text-primary);
13
+ --alert-icon-color: var(--color-text-secondary);
14
+
15
+ /* Tones */
16
+ --alert-info-bg: var(--color-status-info-bg);
17
+ --alert-info-accent: var(--color-status-info);
18
+ --alert-success-bg: var(--color-status-success-bg);
19
+ --alert-success-accent: var(--color-status-success);
20
+ --alert-warning-bg: var(--color-status-warning-bg);
21
+ --alert-warning-accent: var(--color-status-warning);
22
+ --alert-error-bg: var(--color-status-error-bg);
23
+ --alert-error-accent: var(--color-status-error);
24
+ }
@@ -0,0 +1,11 @@
1
+ /* Field component tokens — a label, a description and an error around one control. */
2
+ :root {
3
+ --field-gap: var(--space-3xs);
4
+ --field-label-color: var(--color-text-primary);
5
+ --field-label-font-size: var(--text-sm);
6
+ --field-label-font-weight: var(--font-weight-medium);
7
+ --field-message-font-size: var(--text-xs);
8
+ --field-description-color: var(--color-text-muted);
9
+ --field-error-color: var(--color-status-error);
10
+ --field-disabled-opacity: 0.5;
11
+ }
@@ -0,0 +1,9 @@
1
+ /* Link component tokens — an <a href> in running text or on its own. */
2
+ :root {
3
+ --link-color: var(--color-text-accent);
4
+ --link-color-hover: var(--color-text-primary);
5
+ --link-underline-color: var(--color-border-accent);
6
+ --link-underline-thickness: var(--space-px);
7
+ --link-underline-offset: 0.2em;
8
+ --link-focus-color: var(--color-text-accent);
9
+ }
@@ -0,0 +1,10 @@
1
+ /* Meter component tokens — a native <meter>: how much of a known range. Its three regions,
2
+ from low, high and optimum, map onto the status tokens. */
3
+ :root {
4
+ --meter-height: var(--space-2xs);
5
+ --meter-radius: var(--radius-full);
6
+ --meter-track-color: var(--color-bg-secondary);
7
+ --meter-optimum-color: var(--color-status-success);
8
+ --meter-suboptimum-color: var(--color-status-warning);
9
+ --meter-poor-color: var(--color-status-error);
10
+ }
@@ -0,0 +1,8 @@
1
+ /* Progress component tokens — a native <progress>: how far along. */
2
+ :root {
3
+ --progress-height: var(--space-2xs);
4
+ --progress-radius: var(--radius-full);
5
+ --progress-track-color: var(--color-bg-secondary);
6
+ --progress-bar-color: var(--color-text-accent);
7
+ --progress-duration: var(--duration-normal);
8
+ }
@@ -0,0 +1,6 @@
1
+ /* Separator component tokens — an <hr>, across or upright. It draws the line only:
2
+ the space around it is the layout's gap, not a margin a reset could zero. */
3
+ :root {
4
+ --separator-color: var(--color-border-default);
5
+ --separator-thickness: var(--space-px);
6
+ }
@@ -0,0 +1,7 @@
1
+ /* Skeleton component tokens — a placeholder shape while content loads. */
2
+ :root {
3
+ --skeleton-bg: var(--color-border-default);
4
+ --skeleton-shine: var(--color-bg-primary);
5
+ --skeleton-radius: var(--radius-sm);
6
+ --skeleton-duration: 1.6s;
7
+ }
@@ -0,0 +1,6 @@
1
+ /* Slider component tokens — a native <input type="range">, coloured with accent-color. */
2
+ :root {
3
+ --slider-accent-color: var(--color-text-accent);
4
+ --slider-focus-color: var(--color-text-accent);
5
+ --slider-disabled-opacity: 0.5;
6
+ }
@@ -0,0 +1,9 @@
1
+ /* Spinner component tokens — an indeterminate <progress>, drawn as a turning ring. */
2
+ :root {
3
+ --spinner-size: 1.25rem;
4
+ --spinner-thickness: var(--space-2px);
5
+ --spinner-track-color: var(--color-border-default);
6
+ --spinner-color: var(--color-text-accent);
7
+ --spinner-duration: 0.8s;
8
+ --spinner-duration-reduced: 2.4s;
9
+ }
@@ -17,3 +17,13 @@
17
17
  @import './components/tabs.css';
18
18
  @import './components/textarea.css';
19
19
  @import './components/tooltip.css';
20
+ @import './components/field.css';
21
+ @import './components/link.css';
22
+ @import './components/meter.css';
23
+ @import './components/progress.css';
24
+ @import './components/separator.css';
25
+ @import './components/slider.css';
26
+ @import './components/accordion.css';
27
+ @import './components/alert.css';
28
+ @import './components/skeleton.css';
29
+ @import './components/spinner.css';