@arun-dev/tokens 0.11.0 → 0.13.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.11.0",
3
+ "version": "0.13.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,15 @@
1
+ /* Popover component tokens — map semantic tokens onto the anchored panel.
2
+ Override any of these to restyle popovers without moving other components. */
3
+ :root {
4
+ --popover-offset: var(--space-2xs);
5
+ --popover-max-width: 20rem;
6
+ --popover-padding: var(--space-sm);
7
+ --popover-radius: var(--radius-md);
8
+ --popover-bg: var(--color-bg-primary);
9
+ --popover-color: var(--color-text-primary);
10
+ --popover-border-width: var(--space-px);
11
+ --popover-border-color: var(--color-border-default);
12
+ --popover-shadow: var(--shadow-lg);
13
+ --popover-font-size: var(--text-sm);
14
+ --popover-duration: var(--duration-fast);
15
+ }
@@ -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';
11
+ @import './components/popover.css';
10
12
  @import './components/radio-group.css';
11
13
  @import './components/select.css';
12
14
  @import './components/switch.css';