@arun-dev/tokens 0.18.0 → 0.20.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.18.0",
3
+ "version": "0.20.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",
@@ -50,6 +50,10 @@
50
50
  --combobox-group-label-font-size: var(--text-xs);
51
51
  --combobox-group-label-font-weight: var(--font-weight-semibold);
52
52
 
53
+ /* Separator — a line between items or groups, as an <hr> in a <select> */
54
+ --combobox-separator-color: var(--color-border-subtle);
55
+ --combobox-separator-margin-block: var(--space-3xs);
56
+
53
57
  /* Empty and Status */
54
58
  --combobox-message-color: var(--color-text-muted);
55
59
  }
@@ -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,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
+ }
@@ -17,3 +17,9 @@
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';