kiban-design-system 3.13.1 → 3.13.2
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/theme.css +57 -0
- package/package.json +15 -4
package/dist/theme.css
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tailwind theme mapping for consuming apps.
|
|
3
|
+
* References tokens (--border, --background, etc.) so app Tailwind utilities use DS tokens.
|
|
4
|
+
* Import this in the app before @import "tailwindcss"; tokens must be loaded first (tokens.css).
|
|
5
|
+
*/
|
|
6
|
+
@theme inline {
|
|
7
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
8
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
9
|
+
--radius-lg: var(--radius);
|
|
10
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
11
|
+
--radius-2xl: calc(var(--radius) + 8px);
|
|
12
|
+
--radius-3xl: calc(var(--radius) + 12px);
|
|
13
|
+
--radius-4xl: calc(var(--radius) + 16px);
|
|
14
|
+
--color-background: var(--background);
|
|
15
|
+
--color-foreground: var(--foreground);
|
|
16
|
+
--color-card: var(--card);
|
|
17
|
+
--color-card-foreground: var(--card-foreground);
|
|
18
|
+
--color-popover: var(--popover);
|
|
19
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
20
|
+
--color-primary: var(--primary);
|
|
21
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
22
|
+
--color-secondary: var(--secondary);
|
|
23
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
24
|
+
--color-muted: var(--muted);
|
|
25
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
26
|
+
--color-accent: var(--accent);
|
|
27
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
28
|
+
--color-destructive: var(--destructive);
|
|
29
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
30
|
+
--color-border: var(--border);
|
|
31
|
+
--color-input: var(--input);
|
|
32
|
+
--color-input-border: var(--input-border);
|
|
33
|
+
--color-input-border-hover: var(--input-border-hover);
|
|
34
|
+
--color-input-border-focus: var(--input-border-focus);
|
|
35
|
+
--color-input-bg-disabled: var(--input-bg-disabled);
|
|
36
|
+
--color-input-fg-disabled: var(--input-fg-disabled);
|
|
37
|
+
--color-ring: var(--ring);
|
|
38
|
+
--color-chart-1: var(--chart-1);
|
|
39
|
+
--color-chart-2: var(--chart-2);
|
|
40
|
+
--color-chart-3: var(--chart-3);
|
|
41
|
+
--color-chart-4: var(--chart-4);
|
|
42
|
+
--color-chart-5: var(--chart-5);
|
|
43
|
+
--color-sidebar: var(--sidebar);
|
|
44
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
45
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
46
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
47
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
48
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
49
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
50
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
51
|
+
--color-surface-danger: var(--surface-danger);
|
|
52
|
+
--color-surface-success: var(--surface-success);
|
|
53
|
+
--color-border-danger: var(--border-danger);
|
|
54
|
+
--color-text-danger: var(--text-danger);
|
|
55
|
+
--color-text-light: var(--text-light);
|
|
56
|
+
--color-text-success: var(--text-success);
|
|
57
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kiban-design-system",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Kiban Design System - A React component library",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,17 +19,28 @@
|
|
|
19
19
|
"import": "./dist/types.js",
|
|
20
20
|
"types": "./dist/types.d.ts"
|
|
21
21
|
},
|
|
22
|
-
"./style.css":
|
|
23
|
-
|
|
22
|
+
"./style.css": {
|
|
23
|
+
"style": "./dist/style.css",
|
|
24
|
+
"default": "./dist/style.css"
|
|
25
|
+
},
|
|
26
|
+
"./tokens.css": {
|
|
27
|
+
"style": "./dist/tokens.css",
|
|
28
|
+
"default": "./dist/tokens.css"
|
|
29
|
+
},
|
|
30
|
+
"./theme.css": {
|
|
31
|
+
"style": "./dist/theme.css",
|
|
32
|
+
"default": "./dist/theme.css"
|
|
33
|
+
}
|
|
24
34
|
},
|
|
25
35
|
"files": [
|
|
26
36
|
"dist"
|
|
27
37
|
],
|
|
28
38
|
"scripts": {
|
|
29
39
|
"dev": "vite",
|
|
30
|
-
"build": "npm run build:lib && npm run build:types && npm run build:css && npm run build:tokens && npm run build:cleanup",
|
|
40
|
+
"build": "npm run build:lib && npm run build:types && npm run build:css && npm run build:tokens && npm run build:theme && npm run build:cleanup",
|
|
31
41
|
"build:cleanup": "rm -rf dist/assets dist/css-entry*.js 2>/dev/null || true",
|
|
32
42
|
"build:tokens": "node -e \"require('fs').mkdirSync('dist',{recursive:true}); require('fs').copyFileSync('src/tokens.css', 'dist/tokens.css')\"",
|
|
43
|
+
"build:theme": "node -e \"require('fs').copyFileSync('src/theme.css', 'dist/theme.css')\"",
|
|
33
44
|
"build:types": "tsc -p tsconfig.lib.json",
|
|
34
45
|
"build:lib": "vite build --config vite.lib.config.ts",
|
|
35
46
|
"build:css": "vite build --config vite.css.config.ts",
|