@arun-dev/tokens 0.11.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.css +1 -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
|
+
}
|
package/src/components.css
CHANGED