@arun-dev/tokens 0.14.0 → 0.16.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/menu.css +24 -0
- package/src/components/tabs.css +26 -0
- package/src/components.css +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arun-dev/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.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,24 @@
|
|
|
1
|
+
/* Menu component tokens — map semantic tokens onto the anchored list and its items.
|
|
2
|
+
The panel matches Popover's, but maps from the semantic tier directly: overriding
|
|
3
|
+
--popover-* moves only popovers, and these move only menus. */
|
|
4
|
+
:root {
|
|
5
|
+
--menu-offset: var(--space-2xs);
|
|
6
|
+
--menu-min-width: 10rem;
|
|
7
|
+
--menu-max-width: 20rem;
|
|
8
|
+
--menu-padding: var(--space-3xs);
|
|
9
|
+
--menu-radius: var(--radius-md);
|
|
10
|
+
--menu-bg: var(--color-bg-primary);
|
|
11
|
+
--menu-color: var(--color-text-primary);
|
|
12
|
+
--menu-border-width: var(--space-px);
|
|
13
|
+
--menu-border-color: var(--color-border-default);
|
|
14
|
+
--menu-shadow: var(--shadow-lg);
|
|
15
|
+
--menu-font-size: var(--text-sm);
|
|
16
|
+
--menu-duration: var(--duration-fast);
|
|
17
|
+
|
|
18
|
+
/* Item */
|
|
19
|
+
--menu-item-padding-block: var(--space-2xs);
|
|
20
|
+
--menu-item-padding-inline: var(--space-xs);
|
|
21
|
+
--menu-item-radius: var(--radius-sm);
|
|
22
|
+
--menu-item-bg-highlight: var(--color-bg-secondary);
|
|
23
|
+
--menu-disabled-opacity: 0.5;
|
|
24
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* Tabs component tokens — map semantic tokens onto the tablist, its tabs and panels.
|
|
2
|
+
Override any of these to restyle tabs without moving other components. */
|
|
3
|
+
:root {
|
|
4
|
+
--tabs-gap: var(--space-3xs);
|
|
5
|
+
--tabs-panel-gap: var(--space-md);
|
|
6
|
+
--tabs-border-width: var(--space-px);
|
|
7
|
+
--tabs-border-color: var(--color-border-default);
|
|
8
|
+
|
|
9
|
+
/* Tab */
|
|
10
|
+
--tabs-tab-padding-block: var(--space-xs);
|
|
11
|
+
--tabs-tab-padding-inline: var(--space-sm);
|
|
12
|
+
--tabs-tab-radius: var(--radius-sm);
|
|
13
|
+
--tabs-font-size: var(--text-sm);
|
|
14
|
+
--tabs-font-weight: var(--font-weight-medium);
|
|
15
|
+
--tabs-tab-color: var(--color-text-secondary);
|
|
16
|
+
--tabs-tab-color-hover: var(--color-text-primary);
|
|
17
|
+
--tabs-tab-color-selected: var(--color-text-primary);
|
|
18
|
+
|
|
19
|
+
/* The bar under (or beside) the selected tab */
|
|
20
|
+
--tabs-indicator-size: var(--space-2px);
|
|
21
|
+
--tabs-indicator-color: var(--color-text-accent);
|
|
22
|
+
|
|
23
|
+
--tabs-focus-color: var(--color-text-accent);
|
|
24
|
+
--tabs-disabled-opacity: 0.5;
|
|
25
|
+
--tabs-duration: var(--duration-fast);
|
|
26
|
+
}
|
package/src/components.css
CHANGED
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
@import './components/checkbox.css';
|
|
9
9
|
@import './components/dialog.css';
|
|
10
10
|
@import './components/input.css';
|
|
11
|
+
@import './components/menu.css';
|
|
11
12
|
@import './components/popover.css';
|
|
12
13
|
@import './components/radio-group.css';
|
|
13
14
|
@import './components/select.css';
|
|
14
15
|
@import './components/switch.css';
|
|
16
|
+
@import './components/tabs.css';
|
|
15
17
|
@import './components/textarea.css';
|
|
16
18
|
@import './components/tooltip.css';
|