@ismail-elkorchi/ui-tokens 0.1.0 → 0.1.1
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/README.md +113 -10
- package/dist/base.css +986 -0
- package/dist/index.css +1646 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +38 -0
- package/dist/themes/uik-dark.css +657 -0
- package/dist/themes/uik-density-comfortable.css +26 -0
- package/dist/themes/uik-density-compact.css +26 -0
- package/dist/themes/uik-light.css +420 -0
- package/dist/themes/uik-theme-base.css +414 -0
- package/dist/tokens.resolved.dark.comfortable.json +2355 -0
- package/dist/tokens.resolved.dark.compact.json +2377 -0
- package/dist/tokens.resolved.light.comfortable.json +2355 -0
- package/dist/tokens.resolved.light.compact.json +2377 -0
- package/dist/uik-tailwind.compat.css +638 -0
- package/dist/uik-tailwind.strict.css +659 -0
- package/package.json +44 -9
- package/dist/theme.css +0 -45
package/package.json
CHANGED
|
@@ -1,17 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ismail-elkorchi/ui-tokens",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "CSS design tokens packaged as reusable variables for any UI.",
|
|
5
5
|
"author": "Ismail El Korchi",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"keywords": [
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
"keywords": [
|
|
9
|
+
"design-tokens",
|
|
10
|
+
"css-variables",
|
|
11
|
+
"theme",
|
|
12
|
+
"ui-kit"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=20.11"
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"style": "./dist/base.css",
|
|
11
21
|
"exports": {
|
|
12
|
-
".":
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.js",
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./base.css": "./dist/base.css",
|
|
13
28
|
"./index.css": "./dist/index.css",
|
|
14
|
-
"./
|
|
29
|
+
"./uik-tailwind.strict.css": "./dist/uik-tailwind.strict.css",
|
|
30
|
+
"./uik-tailwind.compat.css": "./dist/uik-tailwind.compat.css",
|
|
31
|
+
"./themes/uik-theme-base.css": "./dist/themes/uik-theme-base.css",
|
|
32
|
+
"./themes/uik-light.css": "./dist/themes/uik-light.css",
|
|
33
|
+
"./themes/uik-dark.css": "./dist/themes/uik-dark.css",
|
|
34
|
+
"./themes/uik-density-comfortable.css": "./dist/themes/uik-density-comfortable.css",
|
|
35
|
+
"./themes/uik-density-compact.css": "./dist/themes/uik-density-compact.css",
|
|
36
|
+
"./tokens.resolved.light.comfortable.json": "./dist/tokens.resolved.light.comfortable.json",
|
|
37
|
+
"./tokens.resolved.light.compact.json": "./dist/tokens.resolved.light.compact.json",
|
|
38
|
+
"./tokens.resolved.dark.comfortable.json": "./dist/tokens.resolved.dark.comfortable.json",
|
|
39
|
+
"./tokens.resolved.dark.compact.json": "./dist/tokens.resolved.dark.compact.json"
|
|
15
40
|
},
|
|
16
41
|
"sideEffects": [
|
|
17
42
|
"./dist/**/*.css"
|
|
@@ -21,9 +46,15 @@
|
|
|
21
46
|
"README.md"
|
|
22
47
|
],
|
|
23
48
|
"scripts": {
|
|
24
|
-
"build": "
|
|
25
|
-
"
|
|
26
|
-
"
|
|
49
|
+
"build": "node scripts/build.mjs",
|
|
50
|
+
"validate": "node scripts/build.mjs && node scripts/verify.mjs && node scripts/verify-tailwind.mjs",
|
|
51
|
+
"verify:tailwind": "node scripts/verify-tailwind.mjs",
|
|
52
|
+
"pre-release": "bash scripts/pre-release.sh",
|
|
53
|
+
"cem": "node -e \"console.log('No custom elements manifest needed for @ismail-elkorchi/ui-tokens');\"",
|
|
54
|
+
"lint": "eslint . --max-warnings=0",
|
|
55
|
+
"verify": "npm run validate",
|
|
56
|
+
"test": "npm run verify",
|
|
57
|
+
"typecheck": "node -e \"console.log('No TypeScript to typecheck for @ismail-elkorchi/ui-tokens');\"",
|
|
27
58
|
"prepack": "npm run build"
|
|
28
59
|
},
|
|
29
60
|
"repository": {
|
|
@@ -37,5 +68,9 @@
|
|
|
37
68
|
"homepage": "https://github.com/Ismail-elkorchi/ui-kit",
|
|
38
69
|
"publishConfig": {
|
|
39
70
|
"access": "public"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@terrazzo/parser": "^0.10.5",
|
|
74
|
+
"@terrazzo/plugin-css": "^0.10.4"
|
|
40
75
|
}
|
|
41
76
|
}
|
package/dist/theme.css
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
@layer base {
|
|
2
|
-
:root {
|
|
3
|
-
--background: 240 10% 3.9%;
|
|
4
|
-
--foreground: 0 0% 98%;
|
|
5
|
-
--card: 240 10% 3.9%;
|
|
6
|
-
--card-foreground: 0 0% 98%;
|
|
7
|
-
--popover: 240 10% 3.9%;
|
|
8
|
-
--popover-foreground: 0 0% 98%;
|
|
9
|
-
--primary: 0 0% 98%;
|
|
10
|
-
--primary-foreground: 240 5.9% 10%;
|
|
11
|
-
--secondary: 240 3.7% 15.9%;
|
|
12
|
-
--secondary-foreground: 0 0% 98%;
|
|
13
|
-
--muted: 240 3.7% 15.9%;
|
|
14
|
-
--muted-foreground: 240 5% 64.9%;
|
|
15
|
-
--accent: 240 3.7% 15.9%;
|
|
16
|
-
--accent-foreground: 0 0% 98%;
|
|
17
|
-
--destructive: 0 62.8% 30.6%;
|
|
18
|
-
--destructive-foreground: 0 0% 98%;
|
|
19
|
-
--border: 240 3.7% 15.9%;
|
|
20
|
-
--input: 240 3.7% 15.9%;
|
|
21
|
-
--ring: 240 4.9% 83.9%;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@theme {
|
|
26
|
-
--color-background: hsl(var(--background));
|
|
27
|
-
--color-foreground: hsl(var(--foreground));
|
|
28
|
-
--color-card: hsl(var(--card));
|
|
29
|
-
--color-card-foreground: hsl(var(--card-foreground));
|
|
30
|
-
--color-popover: hsl(var(--popover));
|
|
31
|
-
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
32
|
-
--color-primary: hsl(var(--primary));
|
|
33
|
-
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
34
|
-
--color-secondary: hsl(var(--secondary));
|
|
35
|
-
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
36
|
-
--color-muted: hsl(var(--muted));
|
|
37
|
-
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
38
|
-
--color-accent: hsl(var(--accent));
|
|
39
|
-
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
40
|
-
--color-destructive: hsl(var(--destructive));
|
|
41
|
-
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
42
|
-
--color-border: hsl(var(--border));
|
|
43
|
-
--color-input: hsl(var(--input));
|
|
44
|
-
--color-ring: hsl(var(--ring));
|
|
45
|
-
}
|