@dofe/design-tokens 0.1.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 +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/package.json +38 -0
- package/src/styles.css +70 -0
- package/src/tokens.json +9 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAE5C,eAAO,MAAM,uBAAuB,mCAAmC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAE5C,MAAM,CAAC,MAAM,uBAAuB,GAAG,gCAAgC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dofe/design-tokens",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Versioned semantic design tokens for Dofe products",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./styles.css": "./src/styles.css",
|
|
14
|
+
"./tokens.json": "./src/tokens.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"src/styles.css",
|
|
19
|
+
"src/tokens.json"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc -p tsconfig.build.json",
|
|
23
|
+
"clean": "rm -rf dist",
|
|
24
|
+
"typecheck": "tsc -p tsconfig.build.json --noEmit",
|
|
25
|
+
"validate:manifest": "node -e \"JSON.parse(require('node:fs').readFileSync('src/tokens.json', 'utf8'));\""
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"typescript": "^6.0.3"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/dofe-ai/sso.dofe.ai.git"
|
|
37
|
+
}
|
|
38
|
+
}
|
package/src/styles.css
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* Dofe semantic product tokens. Consumers import this file before Tailwind mappings. */
|
|
2
|
+
:root {
|
|
3
|
+
--dofe-token-version: "0.1.0";
|
|
4
|
+
--radius: 0.65rem;
|
|
5
|
+
--background: oklch(1 0 0);
|
|
6
|
+
--foreground: oklch(0.141 0.005 285.823);
|
|
7
|
+
--card: oklch(1 0 0);
|
|
8
|
+
--card-foreground: oklch(0.141 0.005 285.823);
|
|
9
|
+
--popover: oklch(1 0 0);
|
|
10
|
+
--popover-foreground: oklch(0.141 0.005 285.823);
|
|
11
|
+
--primary: oklch(0.55 0.14 162);
|
|
12
|
+
--primary-foreground: oklch(0.98 0.01 162);
|
|
13
|
+
--secondary: oklch(0.96 0.01 162);
|
|
14
|
+
--secondary-foreground: oklch(0.25 0.02 165);
|
|
15
|
+
--muted: oklch(0.96 0.01 162);
|
|
16
|
+
--muted-foreground: oklch(0.52 0.03 165);
|
|
17
|
+
--accent: oklch(0.96 0.01 162);
|
|
18
|
+
--accent-foreground: oklch(0.25 0.02 165);
|
|
19
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
20
|
+
--border: oklch(0.91 0.01 162);
|
|
21
|
+
--input: oklch(0.91 0.01 162);
|
|
22
|
+
--ring: oklch(0.55 0.14 162);
|
|
23
|
+
--chart-1: oklch(0.82 0.10 160);
|
|
24
|
+
--chart-2: oklch(0.72 0.12 158);
|
|
25
|
+
--chart-3: oklch(0.62 0.14 162);
|
|
26
|
+
--chart-4: oklch(0.52 0.13 164);
|
|
27
|
+
--chart-5: oklch(0.42 0.11 166);
|
|
28
|
+
--sidebar: oklch(0.985 0 0);
|
|
29
|
+
--sidebar-foreground: oklch(0.141 0.005 285.823);
|
|
30
|
+
--sidebar-primary: oklch(0.55 0.14 162);
|
|
31
|
+
--sidebar-primary-foreground: oklch(0.98 0.01 162);
|
|
32
|
+
--sidebar-accent: oklch(0.96 0.01 162);
|
|
33
|
+
--sidebar-accent-foreground: oklch(0.25 0.02 165);
|
|
34
|
+
--sidebar-border: oklch(0.91 0.01 162);
|
|
35
|
+
--sidebar-ring: oklch(0.55 0.14 162);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dark {
|
|
39
|
+
--background: oklch(0.141 0.005 285.823);
|
|
40
|
+
--foreground: oklch(0.985 0 0);
|
|
41
|
+
--card: oklch(0.21 0.006 285.885);
|
|
42
|
+
--card-foreground: oklch(0.985 0 0);
|
|
43
|
+
--popover: oklch(0.21 0.006 285.885);
|
|
44
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
45
|
+
--primary: oklch(0.68 0.15 155);
|
|
46
|
+
--primary-foreground: oklch(0.15 0.03 165);
|
|
47
|
+
--secondary: oklch(0.25 0.02 165);
|
|
48
|
+
--secondary-foreground: oklch(0.98 0.01 162);
|
|
49
|
+
--muted: oklch(0.25 0.02 165);
|
|
50
|
+
--muted-foreground: oklch(0.68 0.03 165);
|
|
51
|
+
--accent: oklch(0.25 0.02 165);
|
|
52
|
+
--accent-foreground: oklch(0.98 0.01 162);
|
|
53
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
54
|
+
--border: oklch(1 0 0 / 10%);
|
|
55
|
+
--input: oklch(1 0 0 / 15%);
|
|
56
|
+
--ring: oklch(0.48 0.15 160);
|
|
57
|
+
--chart-1: oklch(0.82 0.10 160);
|
|
58
|
+
--chart-2: oklch(0.72 0.12 158);
|
|
59
|
+
--chart-3: oklch(0.62 0.14 162);
|
|
60
|
+
--chart-4: oklch(0.52 0.13 164);
|
|
61
|
+
--chart-5: oklch(0.42 0.11 166);
|
|
62
|
+
--sidebar: oklch(0.18 0.02 165);
|
|
63
|
+
--sidebar-foreground: oklch(0.98 0.01 162);
|
|
64
|
+
--sidebar-primary: oklch(0.68 0.15 155);
|
|
65
|
+
--sidebar-primary-foreground: oklch(0.15 0.03 165);
|
|
66
|
+
--sidebar-accent: oklch(0.25 0.02 165);
|
|
67
|
+
--sidebar-accent-foreground: oklch(0.98 0.01 162);
|
|
68
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
69
|
+
--sidebar-ring: oklch(0.48 0.15 160);
|
|
70
|
+
}
|
package/src/tokens.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"font": { "sans": "Geist Sans", "mono": "Geist Mono" },
|
|
4
|
+
"radius": { "control": "0.65rem" },
|
|
5
|
+
"themes": {
|
|
6
|
+
"light": { "primary": "oklch(0.55 0.14 162)", "background": "oklch(1 0 0)" },
|
|
7
|
+
"dark": { "primary": "oklch(0.68 0.15 155)", "background": "oklch(0.141 0.005 285.823)" }
|
|
8
|
+
}
|
|
9
|
+
}
|