@locusgraph/tokens 0.3.0 → 0.5.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/README.md +28 -7
- package/dist/base.css +5 -1
- package/dist/effects/brand.css +9 -2
- package/dist/effects/utilities.css +23 -6
- package/dist/theme.css +4 -2
- package/dist/typeset.css +81 -0
- package/dist/values/colors.d.ts +1 -1
- package/dist/values/colors.js +15 -13
- package/dist/values/type.d.ts +4 -4
- package/dist/values/type.js +4 -4
- package/dist/variables/mapping.css +21 -19
- package/dist/variables/palette.css +31 -23
- package/dist/variables/shadcn.css +7 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ pnpm add @locusgraph/tokens
|
|
|
14
14
|
|
|
15
15
|
`@locusgraph/components/theme.css` already imports both; import tokens directly only in an app that does not use the components.
|
|
16
16
|
|
|
17
|
-
Everything the theme defines is prefixed with `locus`: variables are `--locus-*` (light on `:root`, dark on `.dark`) and our classes, utilities and keyframes are `locus-*`. The Tailwind keys keep their names (`bg-surface`, `text-
|
|
17
|
+
Everything the theme defines is prefixed with `locus`: variables are `--locus-*` (light on `:root`, dark on `.dark`) and our classes, utilities and keyframes are `locus-*`. The Tailwind keys keep their names (`bg-surface`, `text-faint`, `bg-primary`, `text-muted-foreground`), now pointing at `--locus-*`. An app that also uses shadcn components and needs the shadcn variable names (`--background`, `--primary`, `--muted-foreground`, `--radius`, …) adds the optional aliases:
|
|
18
18
|
|
|
19
19
|
```css
|
|
20
20
|
@import "@locusgraph/tokens/shadcn.css";
|
|
@@ -22,14 +22,35 @@ Everything the theme defines is prefixed with `locus`: variables are `--locus-*`
|
|
|
22
22
|
|
|
23
23
|
## What `theme.css` holds
|
|
24
24
|
|
|
25
|
-
- Palette:
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
25
|
+
- Palette: `--locus-background` for the page, `--locus-surface` for cards and panels, `--locus-foreground`, `--locus-muted-foreground` and `--locus-faint` for text tones, `--locus-muted` for fills, and a dark set under `.dark`. Every text tone passes WCAG AA on background, surface and muted in both themes.
|
|
26
|
+
- Role colors: `interactive` (clickable, on hover), `memory` (remembered), `good`, `warn` (waiting) and `destructive`. Color means state; chart series `--locus-s1` to `--locus-s8` carry no meaning.
|
|
27
|
+
- Fill colors: `--locus-good-fill` and `--locus-warn-fill` (`bg-good-fill`, `bg-warn-fill`) for bars and meters. They are brighter than the role colors in light and equal to them in dark; never use them for text.
|
|
28
|
+
- Hairlines: `--locus-border` is the text color mixed into the surface, 9% light and 10% dark.
|
|
29
|
+
- Square containers: every radius token is 0. Buttons, chips, badges, dots and avatars use `rounded-full`.
|
|
30
|
+
- Fonts: IBM Plex Sans for text, inputs and menus, Archivo for headings, `locus-eyebrow` labels, buttons and the brand, IBM Plex Mono for code and ids.
|
|
31
|
+
- Base: interactive elements (buttons, tabs, options, switches, `summary`, `label[for]`) get `cursor: pointer` unless disabled.
|
|
32
|
+
- Type scale: Tailwind's steps plus `text-2xs` (0.6875rem) for badges and counters and `text-code` (0.8125rem) for code.
|
|
33
|
+
- Control heights: `h-control-xs` (1.5rem), `h-control-sm` (2rem), `h-control` (2.25rem) and `h-control-lg` (2.5rem), also as `size-control-*`.
|
|
34
|
+
- Focus: `locus-focus-ring` draws a 2px ring outside the element; `locus-focus-ring-inset` draws it inside for rows, tabs and scroll areas.
|
|
29
35
|
- Base: 17px root size, tight balanced headings, `text-pretty` paragraphs.
|
|
30
36
|
- Effects: `locus-brand-grid` and `locus-brand-grid-quiet` backgrounds, `locus-enter-cascade`, `locus-rises`, `locus-shimmer`, `locus-scroll-fade-b`, `locus-scroll-fade-x`, `locus-no-scrollbar`, `locus-scrollbar-none`, `locus-scrollbar-thin`, `locus-scrollbar-gutter-stable`, the `locus-eyebrow` label, `locus-ignites` and `locus-tracked`. Motion falls back to a fade under reduced motion.
|
|
31
37
|
|
|
32
|
-
`typeset.css` styles long-form content inside `.typeset
|
|
38
|
+
`typeset.css` styles long-form content inside `.typeset`, vendored from shadcn/typeset. Add `locus-typeset-chat` for agent replies: 14px, sans headings, tables without row rules.
|
|
39
|
+
|
|
40
|
+
## Migrating from 0.3
|
|
41
|
+
|
|
42
|
+
The role colors are renamed so each one names its meaning, and the gray text tones are darker so they pass WCAG AA.
|
|
43
|
+
|
|
44
|
+
| 0.3 | 0.4 |
|
|
45
|
+
|---|---|
|
|
46
|
+
| `--locus-muted` (gray text) | `--locus-muted-foreground` |
|
|
47
|
+
| `--locus-ghost` (fill) | `--locus-muted` |
|
|
48
|
+
| `--locus-bad`, `text-bad` | `--locus-destructive`, `text-destructive` |
|
|
49
|
+
| `--locus-info`, `text-info` | `--locus-interactive`, `text-interactive` |
|
|
50
|
+
| `text-soft`, `border-line`, `bg-ghost`, `bg-btn`, `bg-btn-ink` | `text-muted-foreground`, `border-border`, `bg-muted`, `bg-primary`, `text-primary-foreground` |
|
|
51
|
+
| `locus-focus-ring`, `locus-focus-ring-inset`, `typeset-chat` | `locus-focus-ring`, `locus-focus-ring-inset`, `locus-typeset-chat` |
|
|
52
|
+
|
|
53
|
+
New: `--locus-memory` (`text-memory`), `--locus-destructive-foreground`, `text-2xs`, `text-code` and the `h-control-*` heights.
|
|
33
54
|
|
|
34
55
|
## Migrating from 0.2
|
|
35
56
|
|
|
@@ -45,7 +66,7 @@ color). Tailwind classes such as `bg-surface`, `text-soft`, `text-good`, `bg-btn
|
|
|
45
66
|
| `--s1` … `--s8`, `--good`, `--bad`, `--info`, `--warn` | `--locus-s1` … `--locus-s8`, `--locus-good`, `--locus-bad`, `--locus-info`, `--locus-warn` |
|
|
46
67
|
| `--skeleton`, `--scrim`, `--overlay-shadow`, `--radius` | `--locus-skeleton`, `--locus-scrim`, `--locus-overlay-shadow`, `--locus-radius` |
|
|
47
68
|
| `--sidebar`, `--sidebar-*`, `--chart-1` … `--chart-5` | `--locus-sidebar`, `--locus-sidebar-*`, `--locus-chart-1` … `--locus-chart-5` |
|
|
48
|
-
| `--font-
|
|
69
|
+
| `--font-ibm-plex-sans`, `--font-archivo`, `--font-ibm-plex-mono` | `--locus-font-ibm-plex-sans`, `--locus-font-archivo`, `--locus-font-ibm-plex-mono` |
|
|
49
70
|
| `--brand-glow`, `--brand-loop`, `--brand-grid-image`, `--brand-grid-size` | `--locus-brand-glow`, `--locus-brand-loop`, `--locus-brand-grid-image`, `--locus-brand-grid-size` |
|
|
50
71
|
| `--shimmer-spread`, `--shimmer-color`, `--shimmer-duration` | `--locus-shimmer-spread`, `--locus-shimmer-color`, `--locus-shimmer-duration` |
|
|
51
72
|
| `--scroll-fade-size`, `--scroll-fade-reveal` | `--locus-scroll-fade-size`, `--locus-scroll-fade-reveal` |
|
package/dist/base.css
CHANGED
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
:where(p) {
|
|
24
24
|
text-wrap: pretty;
|
|
25
25
|
}
|
|
26
|
+
|
|
27
|
+
:where(button, [role="button"], [role="tab"], [role="option"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], summary, label[for], select):not(:disabled, [aria-disabled="true"], [data-disabled]) {
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
html {
|
|
@@ -60,6 +64,6 @@ body {
|
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
[data-rehype-pretty-code-figure] [data-highlighted-line] {
|
|
63
|
-
background: var(--locus-
|
|
67
|
+
background: var(--locus-muted);
|
|
64
68
|
box-shadow: inset 2px 0 var(--locus-border);
|
|
65
69
|
}
|
package/dist/effects/brand.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--locus-brand-glow: #0099ff;
|
|
3
|
+
--locus-brand-glow-mix: 30%;
|
|
4
|
+
--locus-brand-glow-quiet-mix: 18%;
|
|
3
5
|
--locus-brand-loop: 7s;
|
|
4
6
|
--locus-brand-grid-image:
|
|
5
7
|
radial-gradient(circle, color-mix(in oklch, var(--locus-foreground) 7%, transparent) 1.5px, transparent 1.5px),
|
|
@@ -8,6 +10,11 @@
|
|
|
8
10
|
--locus-brand-grid-size: 24px 24px, 24px 24px, 24px 24px;
|
|
9
11
|
}
|
|
10
12
|
|
|
13
|
+
.dark {
|
|
14
|
+
--locus-brand-glow-mix: 16%;
|
|
15
|
+
--locus-brand-glow-quiet-mix: 9%;
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
.locus-brand-grid {
|
|
12
19
|
position: relative;
|
|
13
20
|
isolation: isolate;
|
|
@@ -37,7 +44,7 @@
|
|
|
37
44
|
aspect-ratio: 1;
|
|
38
45
|
transform: translate(-50%, -50%) scale(0.98);
|
|
39
46
|
transform-origin: center;
|
|
40
|
-
background: radial-gradient(circle, color-mix(in oklch, var(--locus-brand-glow)
|
|
47
|
+
background: radial-gradient(circle, color-mix(in oklch, var(--locus-brand-glow) var(--locus-brand-glow-mix), transparent), transparent 62%);
|
|
41
48
|
filter: blur(14px);
|
|
42
49
|
opacity: 0.55;
|
|
43
50
|
animation: locus-brand-grid-halo var(--locus-brand-loop) ease-in-out infinite;
|
|
@@ -97,7 +104,7 @@
|
|
|
97
104
|
width: min(40rem, 70%);
|
|
98
105
|
aspect-ratio: 1;
|
|
99
106
|
transform: translate(-50%, -50%);
|
|
100
|
-
background: radial-gradient(circle, color-mix(in oklch, var(--locus-brand-glow)
|
|
107
|
+
background: radial-gradient(circle, color-mix(in oklch, var(--locus-brand-glow) var(--locus-brand-glow-quiet-mix), transparent), transparent 66%);
|
|
101
108
|
opacity: 0.4;
|
|
102
109
|
}
|
|
103
110
|
|
|
@@ -56,10 +56,27 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
@utility locus-eyebrow {
|
|
59
|
-
font-family: var(--font-
|
|
60
|
-
font-size:
|
|
61
|
-
line-height:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
font-family: var(--font-heading);
|
|
60
|
+
font-size: var(--text-xs);
|
|
61
|
+
line-height: var(--text-xs--line-height);
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
color: var(--locus-muted-foreground);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@utility locus-focus-ring {
|
|
67
|
+
outline: none;
|
|
68
|
+
|
|
69
|
+
&:focus-visible {
|
|
70
|
+
outline: 2px solid color-mix(in oklch, var(--color-ring) 70%, transparent);
|
|
71
|
+
outline-offset: 2px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@utility locus-focus-ring-inset {
|
|
76
|
+
outline: none;
|
|
77
|
+
|
|
78
|
+
&:focus-visible {
|
|
79
|
+
outline: 2px solid color-mix(in oklch, var(--color-ring) 70%, transparent);
|
|
80
|
+
outline-offset: -2px;
|
|
81
|
+
}
|
|
65
82
|
}
|
package/dist/theme.css
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
@import "@fontsource-variable/
|
|
1
|
+
@import "@fontsource-variable/ibm-plex-sans";
|
|
2
2
|
@import "@fontsource-variable/archivo";
|
|
3
|
-
@import "@fontsource-
|
|
3
|
+
@import "@fontsource/ibm-plex-mono/400.css";
|
|
4
|
+
@import "@fontsource/ibm-plex-mono/500.css";
|
|
5
|
+
@import "@fontsource/ibm-plex-mono/600.css";
|
|
4
6
|
@import "./variables/palette.css";
|
|
5
7
|
@import "./variables/mapping.css";
|
|
6
8
|
@import "./base.css";
|
package/dist/typeset.css
CHANGED
|
@@ -3,3 +3,84 @@
|
|
|
3
3
|
.typeset {
|
|
4
4
|
--radius: var(--locus-radius);
|
|
5
5
|
}
|
|
6
|
+
|
|
7
|
+
.locus-typeset-chat {
|
|
8
|
+
--typeset-font-body: var(--font-sans);
|
|
9
|
+
--typeset-font-heading: var(--font-sans);
|
|
10
|
+
--typeset-font-mono: var(--font-mono);
|
|
11
|
+
--typeset-size: 14px;
|
|
12
|
+
--typeset-leading: 1.65;
|
|
13
|
+
--typeset-flow: 0.85em;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@layer components {
|
|
17
|
+
.typeset.locus-typeset-chat {
|
|
18
|
+
font-size: var(--typeset-size);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.typeset.locus-typeset-chat
|
|
22
|
+
*:not(:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)) {
|
|
23
|
+
&:where(h1, h2, h3, h4) {
|
|
24
|
+
letter-spacing: -0.01em;
|
|
25
|
+
}
|
|
26
|
+
&:where(h1) {
|
|
27
|
+
font-size: 1.15em;
|
|
28
|
+
margin-block-start: calc(var(--typeset-flow) * 2);
|
|
29
|
+
}
|
|
30
|
+
&:where(h2) {
|
|
31
|
+
font-size: 1.075em;
|
|
32
|
+
margin-block-start: calc(var(--typeset-flow) * 1.75);
|
|
33
|
+
}
|
|
34
|
+
&:where(h3) {
|
|
35
|
+
font-size: 1em;
|
|
36
|
+
margin-block-start: calc(var(--typeset-flow) * 1.5);
|
|
37
|
+
}
|
|
38
|
+
&:where(h4) {
|
|
39
|
+
font-size: 1em;
|
|
40
|
+
font-weight: 500;
|
|
41
|
+
color: var(--typeset-muted);
|
|
42
|
+
margin-block-start: calc(var(--typeset-flow) * 1.5);
|
|
43
|
+
}
|
|
44
|
+
&:where(h1 + *, h2 + *, h3 + *, h4 + *) {
|
|
45
|
+
margin-block-start: 0.5em;
|
|
46
|
+
}
|
|
47
|
+
&:where(a) {
|
|
48
|
+
color: var(--color-foreground);
|
|
49
|
+
text-decoration-color: var(--color-faint);
|
|
50
|
+
text-underline-offset: 3px;
|
|
51
|
+
transition: color 150ms, text-decoration-color 150ms;
|
|
52
|
+
}
|
|
53
|
+
&:where(a:hover) {
|
|
54
|
+
color: var(--color-interactive);
|
|
55
|
+
text-decoration-color: var(--color-interactive);
|
|
56
|
+
}
|
|
57
|
+
&:where(li) {
|
|
58
|
+
margin-block-start: 0.35em;
|
|
59
|
+
}
|
|
60
|
+
&:where(blockquote) {
|
|
61
|
+
color: var(--typeset-muted);
|
|
62
|
+
}
|
|
63
|
+
&:where(hr) {
|
|
64
|
+
margin-block-start: calc(var(--typeset-flow) * 2);
|
|
65
|
+
}
|
|
66
|
+
&:where(table) {
|
|
67
|
+
border-block-end: 0;
|
|
68
|
+
}
|
|
69
|
+
&:where(thead th) {
|
|
70
|
+
font-size: 0.86em;
|
|
71
|
+
color: var(--color-faint);
|
|
72
|
+
padding: 0.45em 0.85em;
|
|
73
|
+
border-block-end: 1px solid var(--typeset-rule);
|
|
74
|
+
}
|
|
75
|
+
&:where(:is(tbody, tfoot) :is(td, th)) {
|
|
76
|
+
padding: 0.4em 0.85em;
|
|
77
|
+
border-block-start: 0;
|
|
78
|
+
}
|
|
79
|
+
&:where(th:first-child, td:first-child) {
|
|
80
|
+
padding-inline-start: 0;
|
|
81
|
+
}
|
|
82
|
+
&:where(th:last-child, td:last-child) {
|
|
83
|
+
padding-inline-end: 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
package/dist/values/colors.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ColorName = "surface" | "background" | "foreground" | "
|
|
1
|
+
export type ColorName = "surface" | "background" | "foreground" | "mutedForeground" | "faint" | "btn" | "btnInk" | "muted" | "interactive" | "memory" | "good" | "warn" | "destructive" | "brandGlow";
|
|
2
2
|
export type Palette = Record<ColorName, string>;
|
|
3
3
|
export declare const lightColors: Palette;
|
|
4
4
|
export declare const darkColors: Palette;
|
package/dist/values/colors.js
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
export const lightColors = {
|
|
2
2
|
surface: "#ffffff",
|
|
3
|
-
background: "#
|
|
3
|
+
background: "#f4f4f5",
|
|
4
4
|
foreground: "#09090b",
|
|
5
|
-
|
|
6
|
-
faint: "#
|
|
5
|
+
mutedForeground: "#52525b",
|
|
6
|
+
faint: "#636369",
|
|
7
7
|
btn: "#18181b",
|
|
8
8
|
btnInk: "#fafafa",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
warn: "#
|
|
9
|
+
muted: "#ebebed",
|
|
10
|
+
interactive: "#1b66c4",
|
|
11
|
+
memory: "#4a3aa7",
|
|
12
|
+
good: "#137a39",
|
|
13
|
+
warn: "#a84b07",
|
|
14
|
+
destructive: "#c81e1e",
|
|
14
15
|
brandGlow: "#0099ff",
|
|
15
16
|
};
|
|
16
17
|
export const darkColors = {
|
|
17
18
|
surface: "#111113",
|
|
18
19
|
background: "#0c0c0d",
|
|
19
20
|
foreground: "#ededed",
|
|
20
|
-
|
|
21
|
-
faint: "#
|
|
21
|
+
mutedForeground: "#a1a1aa",
|
|
22
|
+
faint: "#85858e",
|
|
22
23
|
btn: "#ededed",
|
|
23
24
|
btnInk: "#0a0a0a",
|
|
24
|
-
|
|
25
|
+
muted: "#1b1b1d",
|
|
26
|
+
interactive: "#5b9df0",
|
|
27
|
+
memory: "#9085e9",
|
|
25
28
|
good: "#0ca30c",
|
|
26
|
-
bad: "#e66767",
|
|
27
|
-
info: "#5b9df0",
|
|
28
29
|
warn: "#e0a400",
|
|
30
|
+
destructive: "#e66767",
|
|
29
31
|
brandGlow: "#0099ff",
|
|
30
32
|
};
|
|
31
33
|
export const hairlineMix = 0.09;
|
package/dist/values/type.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const fonts: {
|
|
2
|
-
readonly sans: '"
|
|
2
|
+
readonly sans: '"IBM Plex Sans Variable", ui-sans-serif, system-ui, sans-serif';
|
|
3
3
|
readonly heading: '"Archivo Variable", ui-sans-serif, system-ui, sans-serif';
|
|
4
|
-
readonly mono: '"
|
|
5
|
-
readonly emailSafeSans: "
|
|
6
|
-
readonly emailSafeMono: "'
|
|
4
|
+
readonly mono: '"IBM Plex Mono", ui-monospace, monospace';
|
|
5
|
+
readonly emailSafeSans: "'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif";
|
|
6
|
+
readonly emailSafeMono: "'IBM Plex Mono', SFMono-Regular, Menlo, Consolas, monospace";
|
|
7
7
|
};
|
|
8
8
|
export declare const radius: {
|
|
9
9
|
readonly container: 0;
|
package/dist/values/type.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const fonts = {
|
|
2
|
-
sans: '"
|
|
2
|
+
sans: '"IBM Plex Sans Variable", ui-sans-serif, system-ui, sans-serif',
|
|
3
3
|
heading: '"Archivo Variable", ui-sans-serif, system-ui, sans-serif',
|
|
4
|
-
mono: '"
|
|
5
|
-
emailSafeSans: "
|
|
6
|
-
emailSafeMono: "'
|
|
4
|
+
mono: '"IBM Plex Mono", ui-monospace, monospace',
|
|
5
|
+
emailSafeSans: "'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif",
|
|
6
|
+
emailSafeMono: "'IBM Plex Mono', SFMono-Regular, Menlo, Consolas, monospace",
|
|
7
7
|
};
|
|
8
8
|
export const radius = { container: 0, pill: 9999 };
|
|
9
9
|
export const headingTracking = "-0.02em";
|
|
@@ -3,39 +3,33 @@
|
|
|
3
3
|
@theme inline {
|
|
4
4
|
--color-background: var(--locus-background);
|
|
5
5
|
--color-surface: var(--locus-surface);
|
|
6
|
-
--color-line: var(--locus-border);
|
|
7
6
|
--color-foreground: var(--locus-foreground);
|
|
8
|
-
--color-soft: var(--locus-muted);
|
|
9
7
|
--color-faint: var(--locus-faint);
|
|
10
|
-
--color-
|
|
11
|
-
--color-
|
|
12
|
-
--color-ghost: var(--locus-ghost);
|
|
13
|
-
--color-s1: var(--locus-s1);
|
|
14
|
-
--color-s2: var(--locus-s2);
|
|
15
|
-
--color-s3: var(--locus-s3);
|
|
8
|
+
--color-interactive: var(--locus-interactive);
|
|
9
|
+
--color-memory: var(--locus-memory);
|
|
16
10
|
--color-good: var(--locus-good);
|
|
17
|
-
--color-bad: var(--locus-bad);
|
|
18
|
-
--color-info: var(--locus-info);
|
|
19
11
|
--color-warn: var(--locus-warn);
|
|
12
|
+
--color-good-fill: var(--locus-good-fill);
|
|
13
|
+
--color-warn-fill: var(--locus-warn-fill);
|
|
20
14
|
--color-border: var(--locus-border);
|
|
21
15
|
--color-input: var(--locus-input);
|
|
22
16
|
--color-skeleton: var(--locus-skeleton);
|
|
23
17
|
--color-scrim: var(--locus-scrim);
|
|
24
|
-
--color-ring: var(--locus-
|
|
18
|
+
--color-ring: var(--locus-interactive);
|
|
25
19
|
--color-primary: var(--locus-btn);
|
|
26
20
|
--color-primary-foreground: var(--locus-btn-ink);
|
|
27
|
-
--color-secondary: var(--locus-
|
|
21
|
+
--color-secondary: var(--locus-muted);
|
|
28
22
|
--color-secondary-foreground: var(--locus-foreground);
|
|
29
|
-
--color-accent: var(--locus-
|
|
23
|
+
--color-accent: var(--locus-muted);
|
|
30
24
|
--color-accent-foreground: var(--locus-foreground);
|
|
31
|
-
--color-muted: var(--locus-
|
|
32
|
-
--color-muted-foreground: var(--locus-muted);
|
|
25
|
+
--color-muted: var(--locus-muted);
|
|
26
|
+
--color-muted-foreground: var(--locus-muted-foreground);
|
|
33
27
|
--color-popover: var(--locus-popover);
|
|
34
28
|
--color-popover-foreground: var(--locus-foreground);
|
|
35
29
|
--color-card: var(--locus-surface);
|
|
36
30
|
--color-card-foreground: var(--locus-foreground);
|
|
37
|
-
--color-destructive: var(--locus-
|
|
38
|
-
--color-destructive-foreground:
|
|
31
|
+
--color-destructive: var(--locus-destructive);
|
|
32
|
+
--color-destructive-foreground: var(--locus-destructive-foreground);
|
|
39
33
|
--color-sidebar: var(--locus-sidebar);
|
|
40
34
|
--color-sidebar-foreground: var(--locus-sidebar-foreground);
|
|
41
35
|
--color-sidebar-primary: var(--locus-sidebar-primary);
|
|
@@ -44,11 +38,19 @@
|
|
|
44
38
|
--color-sidebar-accent-foreground: var(--locus-sidebar-accent-foreground);
|
|
45
39
|
--color-sidebar-border: var(--locus-sidebar-border);
|
|
46
40
|
--color-sidebar-ring: var(--locus-sidebar-ring);
|
|
47
|
-
--font-sans: var(--locus-font-
|
|
41
|
+
--font-sans: var(--locus-font-ibm-plex-sans);
|
|
48
42
|
--font-heading: var(--locus-font-archivo);
|
|
49
|
-
--font-mono: var(--locus-font-
|
|
43
|
+
--font-mono: var(--locus-font-ibm-plex-mono);
|
|
50
44
|
--font-brand: var(--locus-font-archivo);
|
|
51
45
|
--shadow-overlay: var(--locus-overlay-shadow);
|
|
46
|
+
--text-2xs: 0.6875rem;
|
|
47
|
+
--text-2xs--line-height: 1rem;
|
|
48
|
+
--text-code: 0.8125rem;
|
|
49
|
+
--text-code--line-height: 1.25rem;
|
|
50
|
+
--spacing-control-xs: 1.5rem;
|
|
51
|
+
--spacing-control-sm: 2rem;
|
|
52
|
+
--spacing-control: 2.25rem;
|
|
53
|
+
--spacing-control-lg: 2.5rem;
|
|
52
54
|
--radius-xs: 0px;
|
|
53
55
|
--radius-sm: 0px;
|
|
54
56
|
--radius-md: 0px;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--locus-surface: #ffffff;
|
|
3
|
-
--locus-background: #
|
|
3
|
+
--locus-background: #f4f4f5;
|
|
4
4
|
--locus-foreground: #09090b;
|
|
5
5
|
--locus-border: color-mix(in oklch, var(--locus-foreground) 9%, var(--locus-surface));
|
|
6
|
-
--locus-muted: #
|
|
7
|
-
--locus-faint: #
|
|
6
|
+
--locus-muted-foreground: #52525b;
|
|
7
|
+
--locus-faint: #636369;
|
|
8
8
|
--locus-btn: #18181b;
|
|
9
9
|
--locus-btn-ink: #fafafa;
|
|
10
|
-
--locus-
|
|
10
|
+
--locus-muted: #ebebed;
|
|
11
11
|
--locus-s1: #2a78d6;
|
|
12
12
|
--locus-s2: #eb6834;
|
|
13
13
|
--locus-s3: #1baf7a;
|
|
@@ -16,10 +16,14 @@
|
|
|
16
16
|
--locus-s6: #008300;
|
|
17
17
|
--locus-s7: #4a3aa7;
|
|
18
18
|
--locus-s8: #e34948;
|
|
19
|
-
--locus-
|
|
20
|
-
--locus-
|
|
21
|
-
--locus-
|
|
22
|
-
--locus-warn: #
|
|
19
|
+
--locus-interactive: #1b66c4;
|
|
20
|
+
--locus-memory: #4a3aa7;
|
|
21
|
+
--locus-good: #137a39;
|
|
22
|
+
--locus-warn: #a84b07;
|
|
23
|
+
--locus-destructive: #c81e1e;
|
|
24
|
+
--locus-good-fill: #16a34a;
|
|
25
|
+
--locus-warn-fill: var(--locus-s4);
|
|
26
|
+
--locus-destructive-foreground: #ffffff;
|
|
23
27
|
--locus-popover: var(--locus-surface);
|
|
24
28
|
--locus-input: color-mix(in oklch, var(--locus-foreground) 26%, var(--locus-surface));
|
|
25
29
|
--locus-skeleton: color-mix(in oklch, var(--locus-foreground) 9%, var(--locus-surface));
|
|
@@ -31,18 +35,18 @@
|
|
|
31
35
|
--locus-sidebar-foreground: var(--locus-foreground);
|
|
32
36
|
--locus-sidebar-primary: var(--locus-btn);
|
|
33
37
|
--locus-sidebar-primary-foreground: var(--locus-btn-ink);
|
|
34
|
-
--locus-sidebar-accent: var(--locus-
|
|
38
|
+
--locus-sidebar-accent: var(--locus-muted);
|
|
35
39
|
--locus-sidebar-accent-foreground: var(--locus-foreground);
|
|
36
40
|
--locus-sidebar-border: var(--locus-border);
|
|
37
|
-
--locus-sidebar-ring: var(--locus-
|
|
38
|
-
--locus-font-
|
|
41
|
+
--locus-sidebar-ring: var(--locus-interactive);
|
|
42
|
+
--locus-font-ibm-plex-sans: "IBM Plex Sans Variable", ui-sans-serif, system-ui, sans-serif;
|
|
39
43
|
--locus-font-archivo: "Archivo Variable", ui-sans-serif, system-ui, sans-serif;
|
|
40
|
-
--locus-font-
|
|
41
|
-
--locus-chart-1: var(--
|
|
42
|
-
--locus-chart-2: var(--
|
|
43
|
-
--locus-chart-3: var(--
|
|
44
|
-
--locus-chart-4: var(--
|
|
45
|
-
--locus-chart-5: var(--
|
|
44
|
+
--locus-font-ibm-plex-mono: "IBM Plex Mono", ui-monospace, monospace;
|
|
45
|
+
--locus-chart-1: var(--locus-s1);
|
|
46
|
+
--locus-chart-2: var(--locus-s2);
|
|
47
|
+
--locus-chart-3: var(--locus-s3);
|
|
48
|
+
--locus-chart-4: var(--locus-s4);
|
|
49
|
+
--locus-chart-5: var(--locus-s5);
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
.dark {
|
|
@@ -50,23 +54,27 @@
|
|
|
50
54
|
--locus-background: #0c0c0d;
|
|
51
55
|
--locus-foreground: #ededed;
|
|
52
56
|
--locus-border: color-mix(in oklch, var(--locus-foreground) 10%, var(--locus-surface));
|
|
53
|
-
--locus-muted: #a1a1aa;
|
|
54
|
-
--locus-faint: #
|
|
57
|
+
--locus-muted-foreground: #a1a1aa;
|
|
58
|
+
--locus-faint: #85858e;
|
|
55
59
|
--locus-btn: #ededed;
|
|
56
60
|
--locus-btn-ink: #0a0a0a;
|
|
57
|
-
--locus-
|
|
61
|
+
--locus-muted: #1b1b1d;
|
|
58
62
|
--locus-s1: #3987e5;
|
|
59
63
|
--locus-s2: #d95926;
|
|
60
64
|
--locus-s3: #199e70;
|
|
61
65
|
--locus-s4: #c98500;
|
|
62
66
|
--locus-s5: #d55181;
|
|
63
|
-
--locus-s6: #
|
|
67
|
+
--locus-s6: #2a9d2a;
|
|
64
68
|
--locus-s7: #9085e9;
|
|
65
69
|
--locus-s8: #e66767;
|
|
70
|
+
--locus-interactive: #5b9df0;
|
|
71
|
+
--locus-memory: #9085e9;
|
|
66
72
|
--locus-good: #0ca30c;
|
|
67
|
-
--locus-bad: #e66767;
|
|
68
|
-
--locus-info: #5b9df0;
|
|
69
73
|
--locus-warn: #e0a400;
|
|
74
|
+
--locus-destructive: #e66767;
|
|
75
|
+
--locus-good-fill: var(--locus-good);
|
|
76
|
+
--locus-warn-fill: var(--locus-warn);
|
|
77
|
+
--locus-destructive-foreground: #0a0a0a;
|
|
70
78
|
--locus-input: color-mix(in oklch, var(--locus-foreground) 24%, var(--locus-surface));
|
|
71
79
|
--locus-skeleton: color-mix(in oklch, var(--locus-foreground) 11%, var(--locus-surface));
|
|
72
80
|
--locus-popover: #18181a;
|
|
@@ -8,16 +8,17 @@
|
|
|
8
8
|
--popover-foreground: var(--locus-popover-foreground);
|
|
9
9
|
--primary: var(--locus-btn);
|
|
10
10
|
--primary-foreground: var(--locus-btn-ink);
|
|
11
|
-
--secondary: var(--locus-
|
|
11
|
+
--secondary: var(--locus-muted);
|
|
12
12
|
--secondary-foreground: var(--locus-foreground);
|
|
13
|
-
--muted: var(--locus-
|
|
14
|
-
--muted-foreground: var(--locus-muted);
|
|
15
|
-
--accent: var(--locus-
|
|
13
|
+
--muted: var(--locus-muted);
|
|
14
|
+
--muted-foreground: var(--locus-muted-foreground);
|
|
15
|
+
--accent: var(--locus-muted);
|
|
16
16
|
--accent-foreground: var(--locus-foreground);
|
|
17
|
-
--destructive: var(--locus-
|
|
17
|
+
--destructive: var(--locus-destructive);
|
|
18
|
+
--destructive-foreground: var(--locus-destructive-foreground);
|
|
18
19
|
--border: var(--locus-border);
|
|
19
20
|
--input: var(--locus-input);
|
|
20
|
-
--ring: var(--locus-
|
|
21
|
+
--ring: var(--locus-interactive);
|
|
21
22
|
--radius: var(--locus-radius);
|
|
22
23
|
--sidebar: var(--locus-sidebar);
|
|
23
24
|
--sidebar-foreground: var(--locus-sidebar-foreground);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusgraph/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.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": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@fontsource-variable/archivo": "^5.3.0",
|
|
35
|
-
"@fontsource
|
|
36
|
-
"@fontsource-variable/
|
|
35
|
+
"@fontsource/ibm-plex-mono": "5.3.0",
|
|
36
|
+
"@fontsource-variable/ibm-plex-sans": "^5.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@locusgraph/config": "0.1.1",
|