@tallyui/theme 0.2.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/dist/index.d.ts +6 -0
- package/dist/index.js +9 -0
- package/package.json +33 -0
- package/src/cn.ts +6 -0
- package/src/index.ts +2 -0
- package/src/tokens.css +55 -0
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tallyui/theme",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Shared design tokens and utilities for Tally UI",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"source": "./src/index.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"source": "./src/index.ts"
|
|
14
|
+
},
|
|
15
|
+
"./tokens.css": "./src/tokens.css"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"src"
|
|
20
|
+
],
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"clsx": "^2.1.1",
|
|
24
|
+
"tailwind-merge": "^3.4.1"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"tailwindcss": "^4.0.0"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsup",
|
|
31
|
+
"typecheck": "tsc --noEmit"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/src/cn.ts
ADDED
package/src/index.ts
ADDED
package/src/tokens.css
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
/* Background hierarchy */
|
|
3
|
+
--color-bg: #f8f9fa;
|
|
4
|
+
--color-surface: #ffffff;
|
|
5
|
+
--color-surface-alt: #f3f4f6;
|
|
6
|
+
|
|
7
|
+
/* Text hierarchy */
|
|
8
|
+
--color-foreground: #111827;
|
|
9
|
+
--color-muted: #6b7280;
|
|
10
|
+
--color-bright: #f9fafb;
|
|
11
|
+
|
|
12
|
+
/* Border */
|
|
13
|
+
--color-border: #e5e7eb;
|
|
14
|
+
|
|
15
|
+
/* Brand / Primary */
|
|
16
|
+
--color-primary: #6366f1;
|
|
17
|
+
--color-primary-foreground: #ffffff;
|
|
18
|
+
|
|
19
|
+
/* Status */
|
|
20
|
+
--color-success: #059669;
|
|
21
|
+
--color-danger: #dc2626;
|
|
22
|
+
--color-warning: #d97706;
|
|
23
|
+
--color-info: #3b82f6;
|
|
24
|
+
|
|
25
|
+
/* Commerce */
|
|
26
|
+
--color-price: #059669;
|
|
27
|
+
--color-sale: #dc2626;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@layer theme {
|
|
31
|
+
:root {
|
|
32
|
+
@variant dark {
|
|
33
|
+
--color-bg: #0d1117;
|
|
34
|
+
--color-surface: #161b22;
|
|
35
|
+
--color-surface-alt: #1c2128;
|
|
36
|
+
|
|
37
|
+
--color-foreground: #c9d1d9;
|
|
38
|
+
--color-muted: #8b949e;
|
|
39
|
+
--color-bright: #f0f6fc;
|
|
40
|
+
|
|
41
|
+
--color-border: #30363d;
|
|
42
|
+
|
|
43
|
+
--color-primary: #818cf8;
|
|
44
|
+
--color-primary-foreground: #1e1b4b;
|
|
45
|
+
|
|
46
|
+
--color-success: #3fb950;
|
|
47
|
+
--color-danger: #f85149;
|
|
48
|
+
--color-warning: #d29922;
|
|
49
|
+
--color-info: #58a6ff;
|
|
50
|
+
|
|
51
|
+
--color-price: #3fb950;
|
|
52
|
+
--color-sale: #f85149;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|