@arun-dev/tokens 0.22.0 → 0.24.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/avatar.css +8 -0
- package/src/components/breadcrumb.css +10 -0
- package/src/components/kbd.css +10 -0
- package/src/components/pagination.css +13 -0
- package/src/components/table.css +13 -0
- package/src/components/toggle.css +18 -0
- package/src/components/toolbar.css +10 -0
- package/src/components.css +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arun-dev/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.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,8 @@
|
|
|
1
|
+
/* Avatar component tokens — a person's picture, or their initials. */
|
|
2
|
+
:root {
|
|
3
|
+
--avatar-size: 2.5rem;
|
|
4
|
+
--avatar-radius: var(--radius-full);
|
|
5
|
+
--avatar-bg: var(--color-border-default);
|
|
6
|
+
--avatar-color: var(--color-text-secondary);
|
|
7
|
+
--avatar-font-weight: var(--font-weight-medium);
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* Breadcrumb component tokens — where the page sits, as a trail of links. */
|
|
2
|
+
:root {
|
|
3
|
+
--breadcrumb-gap: var(--space-2xs);
|
|
4
|
+
--breadcrumb-font-size: var(--text-sm);
|
|
5
|
+
--breadcrumb-link-color: var(--color-text-secondary);
|
|
6
|
+
--breadcrumb-link-color-hover: var(--color-text-primary);
|
|
7
|
+
--breadcrumb-current-color: var(--color-text-primary);
|
|
8
|
+
--breadcrumb-separator-color: var(--color-text-muted);
|
|
9
|
+
--breadcrumb-focus-color: var(--color-text-accent);
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* Kbd component tokens — a key on the keyboard. */
|
|
2
|
+
:root {
|
|
3
|
+
--kbd-font-size: 0.8em;
|
|
4
|
+
--kbd-padding-inline: 0.4em;
|
|
5
|
+
--kbd-min-inline-size: 1.6em;
|
|
6
|
+
--kbd-radius: var(--radius-sm);
|
|
7
|
+
--kbd-bg: var(--color-bg-secondary);
|
|
8
|
+
--kbd-color: var(--color-text-primary);
|
|
9
|
+
--kbd-border-color: var(--color-border-default);
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* Pagination component tokens — page links or buttons in a row. */
|
|
2
|
+
:root {
|
|
3
|
+
--pagination-gap: var(--space-3xs);
|
|
4
|
+
--pagination-item-size: 2.25rem;
|
|
5
|
+
--pagination-item-radius: var(--radius-md);
|
|
6
|
+
--pagination-font-size: var(--text-sm);
|
|
7
|
+
--pagination-color: var(--color-text-primary);
|
|
8
|
+
--pagination-bg-hover: var(--color-bg-secondary);
|
|
9
|
+
--pagination-current-bg: var(--color-text-accent);
|
|
10
|
+
--pagination-current-color: var(--color-text-on-accent);
|
|
11
|
+
--pagination-disabled-color: var(--color-text-muted);
|
|
12
|
+
--pagination-focus-color: var(--color-text-accent);
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* Table component tokens — a native table, ruled between rows. */
|
|
2
|
+
:root {
|
|
3
|
+
--table-font-size: var(--text-sm);
|
|
4
|
+
--table-cell-padding-block: var(--space-2xs);
|
|
5
|
+
--table-cell-padding-inline: var(--space-sm);
|
|
6
|
+
--table-border-color: var(--color-border-default);
|
|
7
|
+
--table-head-color: var(--color-text-secondary);
|
|
8
|
+
--table-head-font-weight: var(--font-weight-semibold);
|
|
9
|
+
--table-head-bg: var(--color-bg-secondary);
|
|
10
|
+
--table-row-bg-hover: var(--color-bg-secondary);
|
|
11
|
+
--table-caption-color: var(--color-text-muted);
|
|
12
|
+
--table-radius: var(--radius-md);
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* Toggle component tokens — a button that stays pressed; also the items of a ToggleGroup and
|
|
2
|
+
a Toolbar. */
|
|
3
|
+
:root {
|
|
4
|
+
--toggle-height: 2.25rem;
|
|
5
|
+
--toggle-padding-inline: var(--space-xs);
|
|
6
|
+
--toggle-radius: var(--radius-md);
|
|
7
|
+
--toggle-font-size: var(--text-sm);
|
|
8
|
+
--toggle-color: var(--color-text-secondary);
|
|
9
|
+
--toggle-bg-hover: var(--color-bg-secondary);
|
|
10
|
+
--toggle-pressed-bg: var(--color-bg-accent);
|
|
11
|
+
--toggle-pressed-color: var(--color-text-accent);
|
|
12
|
+
--toggle-focus-color: var(--color-text-accent);
|
|
13
|
+
--toggle-disabled-opacity: 0.5;
|
|
14
|
+
--toggle-group-gap: var(--space-3xs);
|
|
15
|
+
--toggle-group-padding: var(--space-3xs);
|
|
16
|
+
--toggle-group-border-color: var(--color-border-default);
|
|
17
|
+
--toggle-group-radius: var(--radius-md);
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* Toolbar component tokens — a row of controls with one Tab stop. */
|
|
2
|
+
:root {
|
|
3
|
+
--toolbar-gap: var(--space-3xs);
|
|
4
|
+
--toolbar-padding: var(--space-3xs);
|
|
5
|
+
--toolbar-radius: var(--radius-md);
|
|
6
|
+
--toolbar-border-color: var(--color-border-default);
|
|
7
|
+
--toolbar-bg: var(--color-bg-primary);
|
|
8
|
+
--toolbar-separator-color: var(--color-border-default);
|
|
9
|
+
--toolbar-input-inline-size: 4rem;
|
|
10
|
+
}
|
package/src/components.css
CHANGED
|
@@ -28,3 +28,10 @@
|
|
|
28
28
|
@import './components/skeleton.css';
|
|
29
29
|
@import './components/spinner.css';
|
|
30
30
|
@import './components/toast.css';
|
|
31
|
+
@import './components/breadcrumb.css';
|
|
32
|
+
@import './components/kbd.css';
|
|
33
|
+
@import './components/pagination.css';
|
|
34
|
+
@import './components/table.css';
|
|
35
|
+
@import './components/avatar.css';
|
|
36
|
+
@import './components/toggle.css';
|
|
37
|
+
@import './components/toolbar.css';
|