@northstar-js/tokens 0.0.0-stage → 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/LICENSE +21 -0
- package/dist/index.d.ts +638 -0
- package/dist/index.js +632 -0
- package/dist/tailwind.css +96 -0
- package/dist/tokens.css +491 -0
- package/dist/tokens.json +629 -0
- package/package.json +40 -3
- package/src/component.json +11 -0
- package/src/primitive.json +39 -0
- package/src/scales.json +622 -0
- package/src/semantic.day.json +146 -0
- package/src/semantic.night.json +147 -0
- package/README.md +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstar-js/tokens",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Northstar design tokens: Night and Day themes as CSS variables, a Tailwind v4 theme, JSON and typed TS.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"*.css"
|
|
9
|
+
],
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./tokens.css": "./dist/tokens.css",
|
|
18
|
+
"./tailwind.css": "./dist/tailwind.css",
|
|
19
|
+
"./tokens.json": "./dist/tokens.json",
|
|
20
|
+
"./package.json": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"src"
|
|
25
|
+
],
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/ali-amaan/northstar-design-system.git",
|
|
32
|
+
"directory": "packages/tokens"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://ali-amaan.github.io/northstar-design-system/",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/ali-amaan/northstar-design-system/issues"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "node scripts/build.mjs",
|
|
40
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
41
|
+
"test": "vitest run"
|
|
42
|
+
}
|
|
6
43
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Component layer: overrides where a component needs its own value. References resolve per theme.",
|
|
3
|
+
"button": {
|
|
4
|
+
"primary": {
|
|
5
|
+
"$type": "color",
|
|
6
|
+
"bg": { "$value": "{color.signal.fill}" },
|
|
7
|
+
"fg": { "$value": "{gray.8}", "$description": "Text on the glacier fill, in both themes." },
|
|
8
|
+
"hover": { "$value": "{glacier.200}", "$description": "Primary fill on hover." }
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Primitive layer: raw values. Never used by components; only semantic and component tokens reference them.",
|
|
3
|
+
"gray": {
|
|
4
|
+
"$type": "color",
|
|
5
|
+
"$description": "Day neutrals, light to dark.",
|
|
6
|
+
"0": { "$value": "#FFFFFF" },
|
|
7
|
+
"1": { "$value": "#F8F9FA" },
|
|
8
|
+
"pale": { "$value": "#F4F6F8", "$description": "The pale Day ground behind star backdrops." },
|
|
9
|
+
"2": { "$value": "#F1F3F5" },
|
|
10
|
+
"3": { "$value": "#E9ECEF" },
|
|
11
|
+
"4": { "$value": "#E6E8EB" },
|
|
12
|
+
"5": { "$value": "#D4D8DD" },
|
|
13
|
+
"6": { "$value": "#656A75" },
|
|
14
|
+
"7": { "$value": "#464C56" },
|
|
15
|
+
"8": { "$value": "#06080C" }
|
|
16
|
+
},
|
|
17
|
+
"night": {
|
|
18
|
+
"$type": "color",
|
|
19
|
+
"$description": "Night neutrals, dark to light.",
|
|
20
|
+
"0": { "$value": "#08090C" },
|
|
21
|
+
"1": { "$value": "#0D0F13" },
|
|
22
|
+
"2": { "$value": "#14161B" },
|
|
23
|
+
"3": { "$value": "#1B1E24" },
|
|
24
|
+
"4": { "$value": "#1E2128" },
|
|
25
|
+
"5": { "$value": "#2B2F38" },
|
|
26
|
+
"6": { "$value": "#848A94" },
|
|
27
|
+
"7": { "$value": "#A9AEB8" },
|
|
28
|
+
"8": { "$value": "#E8EAEE" }
|
|
29
|
+
},
|
|
30
|
+
"glacier": {
|
|
31
|
+
"$type": "color",
|
|
32
|
+
"100": { "$value": "#EDF3FB" },
|
|
33
|
+
"200": { "$value": "#B9CEEA" },
|
|
34
|
+
"300": { "$value": "#93B4E0" },
|
|
35
|
+
"700": { "$value": "#2F5D9A" },
|
|
36
|
+
"alpha-12": { "$value": "rgba(147, 180, 224, 0.12)" },
|
|
37
|
+
"alpha-35": { "$value": "rgba(147, 180, 224, 0.35)" }
|
|
38
|
+
}
|
|
39
|
+
}
|