@arun-dev/tokens 0.28.0 → 0.29.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.28.0",
3
+ "version": "0.29.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,32 @@
1
+ /* Drawer component tokens — a modal panel attached to one edge of the viewport. */
2
+ :root {
3
+ /* Panel */
4
+ --drawer-size: 22rem; /* width of a left or right drawer */
5
+ --drawer-viewport-gap: var(--space-2xl); /* backdrop left showing beside or above it */
6
+ --drawer-padding: var(--space-md);
7
+ --drawer-radius: var(--radius-lg);
8
+ --drawer-bg: var(--color-bg-primary);
9
+ --drawer-color: var(--color-text-primary);
10
+ --drawer-border-width: var(--space-px);
11
+ --drawer-border-color: var(--color-border-subtle);
12
+ --drawer-shadow: var(--shadow-xl);
13
+
14
+ /* Grab bar on a bottom drawer */
15
+ --drawer-handle-width: var(--space-xl);
16
+ --drawer-handle-height: var(--space-3xs);
17
+ --drawer-handle-color: var(--color-border-default);
18
+
19
+ /* Title */
20
+ --drawer-title-font-size: var(--text-lg);
21
+ --drawer-title-font-weight: var(--font-weight-semibold);
22
+ --drawer-title-gap: var(--space-xs);
23
+
24
+ /* Backdrop — a neutral scrim, the same value as Dialog's, in every brand and mode. */
25
+ --drawer-backdrop: rgb(0 0 0 / 0.5);
26
+
27
+ /* Motion */
28
+ --drawer-duration: var(--duration-normal);
29
+
30
+ /* Set on the element by @arun-dev/headless while it is pulled toward closing. */
31
+ --drawer-swipe: 0px;
32
+ }
@@ -39,3 +39,4 @@
39
39
  @import './components/grid.css';
40
40
  @import './components/heading.css';
41
41
  @import './components/paragraph.css';
42
+ @import './components/drawer.css';