@locusgraph/tokens 0.1.0 → 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/effects/utilities.css +9 -0
- package/dist/mapping.css +5 -2
- package/dist/palette.css +14 -5
- package/dist/values/colors.d.ts +2 -2
- package/dist/values/colors.js +4 -2
- package/dist/values/index.d.ts +2 -2
- package/dist/values/index.js +2 -2
- package/package.json +3 -3
|
@@ -54,3 +54,12 @@
|
|
|
54
54
|
@utility scrollbar-gutter-stable {
|
|
55
55
|
scrollbar-gutter: stable;
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
@utility eyebrow {
|
|
59
|
+
font-family: var(--font-mono);
|
|
60
|
+
font-size: 11px;
|
|
61
|
+
line-height: 1rem;
|
|
62
|
+
letter-spacing: 0.05em;
|
|
63
|
+
text-transform: uppercase;
|
|
64
|
+
color: var(--muted);
|
|
65
|
+
}
|
package/dist/mapping.css
CHANGED
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
--color-info: var(--info);
|
|
19
19
|
--color-warn: var(--warn);
|
|
20
20
|
--color-border: var(--border);
|
|
21
|
-
--color-input: var(--
|
|
21
|
+
--color-input: var(--input);
|
|
22
|
+
--color-skeleton: var(--skeleton);
|
|
23
|
+
--color-scrim: var(--scrim);
|
|
22
24
|
--color-ring: var(--s1);
|
|
23
25
|
--color-primary: var(--btn);
|
|
24
26
|
--color-primary-foreground: var(--btn-ink);
|
|
@@ -28,7 +30,7 @@
|
|
|
28
30
|
--color-accent-foreground: var(--foreground);
|
|
29
31
|
--color-muted: var(--ghost);
|
|
30
32
|
--color-muted-foreground: var(--muted);
|
|
31
|
-
--color-popover: var(--
|
|
33
|
+
--color-popover: var(--popover);
|
|
32
34
|
--color-popover-foreground: var(--foreground);
|
|
33
35
|
--color-card: var(--surface);
|
|
34
36
|
--color-card-foreground: var(--foreground);
|
|
@@ -46,6 +48,7 @@
|
|
|
46
48
|
--font-heading: var(--font-archivo);
|
|
47
49
|
--font-mono: var(--font-fira-code);
|
|
48
50
|
--font-brand: var(--font-archivo);
|
|
51
|
+
--shadow-overlay: var(--overlay-shadow);
|
|
49
52
|
--radius-xs: 0px;
|
|
50
53
|
--radius-sm: 0px;
|
|
51
54
|
--radius-md: 0px;
|
package/dist/palette.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--surface: #ffffff;
|
|
3
|
-
--background:
|
|
3
|
+
--background: #fafafa;
|
|
4
4
|
--foreground: #09090b;
|
|
5
|
-
--border: color-mix(in oklch, var(--foreground)
|
|
5
|
+
--border: color-mix(in oklch, var(--foreground) 9%, var(--surface));
|
|
6
6
|
--muted: #71717a;
|
|
7
7
|
--faint: #a1a1aa;
|
|
8
8
|
--btn: #18181b;
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
--info: #1f6fd1;
|
|
22
22
|
--warn: #a15c00;
|
|
23
23
|
--popover: var(--surface);
|
|
24
|
+
--input: color-mix(in oklch, var(--foreground) 26%, var(--surface));
|
|
25
|
+
--skeleton: color-mix(in oklch, var(--foreground) 9%, var(--surface));
|
|
26
|
+
--scrim: rgb(0 0 0 / 0.28);
|
|
27
|
+
--overlay-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 10px 28px -6px rgb(0 0 0 / 0.16);
|
|
24
28
|
--popover-foreground: var(--foreground);
|
|
25
29
|
--radius: 0px;
|
|
26
30
|
--sidebar: var(--surface);
|
|
@@ -42,10 +46,10 @@
|
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
.dark {
|
|
45
|
-
--surface: #
|
|
46
|
-
--background:
|
|
49
|
+
--surface: #111113;
|
|
50
|
+
--background: #0c0c0d;
|
|
47
51
|
--foreground: #ededed;
|
|
48
|
-
--border: color-mix(in oklch, var(--foreground)
|
|
52
|
+
--border: color-mix(in oklch, var(--foreground) 10%, var(--surface));
|
|
49
53
|
--muted: #a1a1aa;
|
|
50
54
|
--faint: #71717a;
|
|
51
55
|
--btn: #ededed;
|
|
@@ -63,4 +67,9 @@
|
|
|
63
67
|
--bad: #e66767;
|
|
64
68
|
--info: #5b9df0;
|
|
65
69
|
--warn: #e0a400;
|
|
70
|
+
--input: color-mix(in oklch, var(--foreground) 24%, var(--surface));
|
|
71
|
+
--skeleton: color-mix(in oklch, var(--foreground) 11%, var(--surface));
|
|
72
|
+
--popover: #18181a;
|
|
73
|
+
--scrim: rgb(0 0 0 / 0.62);
|
|
74
|
+
--overlay-shadow: 0 0 0 1px rgb(255 255 255 / 0.04), 0 16px 40px -8px rgb(0 0 0 / 0.7);
|
|
66
75
|
}
|
package/dist/values/colors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type ColorName = "surface" | "foreground" | "muted" | "faint" | "btn" | "btnInk" | "ghost" | "good" | "bad" | "info" | "warn" | "brandGlow";
|
|
1
|
+
export type ColorName = "surface" | "background" | "foreground" | "muted" | "faint" | "btn" | "btnInk" | "ghost" | "good" | "bad" | "info" | "warn" | "brandGlow";
|
|
2
2
|
export type Palette = Record<ColorName, string>;
|
|
3
3
|
export declare const lightColors: Palette;
|
|
4
4
|
export declare const darkColors: Palette;
|
|
5
|
-
export declare const hairlineMix = 0.
|
|
5
|
+
export declare const hairlineMix = 0.09;
|
|
6
6
|
export declare function hairline(palette: Palette): string;
|
package/dist/values/colors.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export const lightColors = {
|
|
2
2
|
surface: "#ffffff",
|
|
3
|
+
background: "#fafafa",
|
|
3
4
|
foreground: "#09090b",
|
|
4
5
|
muted: "#71717a",
|
|
5
6
|
faint: "#a1a1aa",
|
|
@@ -13,7 +14,8 @@ export const lightColors = {
|
|
|
13
14
|
brandGlow: "#0099ff",
|
|
14
15
|
};
|
|
15
16
|
export const darkColors = {
|
|
16
|
-
surface: "#
|
|
17
|
+
surface: "#111113",
|
|
18
|
+
background: "#0c0c0d",
|
|
17
19
|
foreground: "#ededed",
|
|
18
20
|
muted: "#a1a1aa",
|
|
19
21
|
faint: "#71717a",
|
|
@@ -26,7 +28,7 @@ export const darkColors = {
|
|
|
26
28
|
warn: "#e0a400",
|
|
27
29
|
brandGlow: "#0099ff",
|
|
28
30
|
};
|
|
29
|
-
export const hairlineMix = 0.
|
|
31
|
+
export const hairlineMix = 0.09;
|
|
30
32
|
export function hairline(palette) {
|
|
31
33
|
return mixHex(palette.foreground, palette.surface, hairlineMix);
|
|
32
34
|
}
|
package/dist/values/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./colors";
|
|
2
|
-
export * from "./type";
|
|
1
|
+
export * from "./colors.js";
|
|
2
|
+
export * from "./type.js";
|
package/dist/values/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./colors";
|
|
2
|
-
export * from "./type";
|
|
1
|
+
export * from "./colors.js";
|
|
2
|
+
export * from "./type.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusgraph/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "LocusGraph design tokens: theme CSS for Tailwind v4, typography, brand effects and motion, plus the color and type values for places CSS cannot reach.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"@fontsource-variable/inter": "^5.3.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@locusgraph/config": "0.1.
|
|
38
|
+
"@locusgraph/config": "0.1.1",
|
|
39
39
|
"@types/node": "^22.0.0",
|
|
40
40
|
"typescript": "^7.0.2",
|
|
41
41
|
"vitest": "^5.0.3"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json && rsync -a --include='*/' --include='*.css' --exclude='*' src/ dist/",
|
|
44
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && rsync -a --include='*/' --include='*.css' --exclude='*' src/ dist/ && node ../../scripts/esm-extensions.mjs dist",
|
|
45
45
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
46
46
|
"test": "vitest run"
|
|
47
47
|
}
|