@uniweb/kit 0.6.0 → 0.7.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": "@uniweb/kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Standard component library for Uniweb foundations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"fuse.js": "^7.0.0",
|
|
47
47
|
"shiki": "^3.0.0",
|
|
48
48
|
"tailwind-merge": "^2.6.0",
|
|
49
|
-
"@uniweb/core": "0.5.
|
|
49
|
+
"@uniweb/core": "0.5.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -14,7 +14,7 @@ import { useMobileMenu } from '../../hooks/useMobileMenu.js'
|
|
|
14
14
|
* with the sidebars and content area between them.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
|
-
* // In foundation's src/
|
|
17
|
+
* // In foundation's src/foundation.js
|
|
18
18
|
* import { SidebarLayout } from '@uniweb/kit'
|
|
19
19
|
*
|
|
20
20
|
* export default {
|
package/src/theme-tokens.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Standard Theme Tokens for Tailwind v4
|
|
3
3
|
*
|
|
4
4
|
* Import this in your foundation's styles.css to register theme CSS variables
|
|
5
|
-
* with Tailwind, enabling utility classes like `text-heading`, `bg-
|
|
5
|
+
* with Tailwind, enabling utility classes like `text-heading`, `bg-section`, etc.
|
|
6
6
|
*
|
|
7
7
|
* Usage:
|
|
8
8
|
* @import "tailwindcss";
|
|
@@ -21,24 +21,34 @@
|
|
|
21
21
|
@theme inline {
|
|
22
22
|
/* ── Semantic tokens ── */
|
|
23
23
|
/* Values come from theme CSS context classes (light/medium/dark) */
|
|
24
|
+
--color-section: var(--section);
|
|
25
|
+
--color-card: var(--card);
|
|
26
|
+
--color-muted: var(--muted);
|
|
27
|
+
--color-body: var(--body);
|
|
24
28
|
--color-heading: var(--heading);
|
|
25
|
-
--color-
|
|
26
|
-
--color-
|
|
27
|
-
--color-
|
|
28
|
-
--color-body: var(--text);
|
|
29
|
-
--color-muted: var(--text-muted);
|
|
30
|
-
--color-subtle: var(--text-subtle);
|
|
29
|
+
--color-subtle: var(--subtle);
|
|
30
|
+
--color-border: var(--border);
|
|
31
|
+
--color-ring: var(--ring);
|
|
31
32
|
--color-link: var(--link);
|
|
32
33
|
--color-link-hover: var(--link-hover);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
--color-
|
|
36
|
-
--color-
|
|
37
|
-
--color-
|
|
38
|
-
--color-
|
|
39
|
-
--color-
|
|
40
|
-
--color-
|
|
41
|
-
|
|
34
|
+
|
|
35
|
+
/* ── Action tokens ── */
|
|
36
|
+
--color-primary: var(--primary);
|
|
37
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
38
|
+
--color-primary-hover: var(--primary-hover);
|
|
39
|
+
--color-secondary: var(--secondary);
|
|
40
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
41
|
+
--color-secondary-hover: var(--secondary-hover);
|
|
42
|
+
|
|
43
|
+
/* ── Status tokens ── */
|
|
44
|
+
--color-success: var(--success);
|
|
45
|
+
--color-success-subtle: var(--success-subtle);
|
|
46
|
+
--color-warning: var(--warning);
|
|
47
|
+
--color-warning-subtle: var(--warning-subtle);
|
|
48
|
+
--color-error: var(--error);
|
|
49
|
+
--color-error-subtle: var(--error-subtle);
|
|
50
|
+
--color-info: var(--info);
|
|
51
|
+
--color-info-subtle: var(--info-subtle);
|
|
42
52
|
|
|
43
53
|
/* ── Primary palette ── */
|
|
44
54
|
--color-primary-50: var(--primary-50);
|
|
@@ -93,7 +103,6 @@
|
|
|
93
103
|
--color-neutral-950: var(--neutral-950);
|
|
94
104
|
|
|
95
105
|
/* ── Brand shorthands ── */
|
|
96
|
-
|
|
97
|
-
--color-secondary: var(--secondary-500);
|
|
106
|
+
/* accent has no semantic token — shorthand to 500 shade */
|
|
98
107
|
--color-accent: var(--accent-500);
|
|
99
108
|
}
|