@locusgraph/tokens 0.5.1 → 0.7.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 CHANGED
@@ -18,6 +18,26 @@ pnpm add @locusgraph/tokens
18
18
 
19
19
  `@locusgraph/components/theme.css` already imports both; import tokens directly only in an app that does not use the components.
20
20
 
21
+ `theme.css` is three files you can also import on their own:
22
+
23
+ - `fonts.css`: the IBM Plex Sans, Archivo and IBM Plex Mono packages.
24
+ - `core.css`: the palette, the Tailwind mapping, element styles, utilities and effects.
25
+ - `document.css`: the 17px root font size and a pointer cursor on buttons, tabs, options and other interactive elements.
26
+
27
+ `core.css` changes nothing outside Locus classes except the `body` colors and font and the heading font, so it fits inside an app with its own type. Without `document.css`, `rem` sizes follow the app's root size (usually 16px), so controls and text are about 6% smaller than on the Locus sites. Without `fonts.css`, text falls back to system fonts until you set your own:
28
+
29
+ ```css
30
+ @import "tailwindcss";
31
+ @import "@locusgraph/tokens/core.css";
32
+
33
+ @theme inline {
34
+ --font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
35
+ --font-heading: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
36
+ }
37
+ ```
38
+
39
+ `@locusgraph/components` re-exports the same three as `@locusgraph/components/core.css`, `fonts.css` and `document.css`; its `core.css` also adds the shadcn aliases, typeset and the Tailwind source for the components.
40
+
21
41
  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:
22
42
 
23
43
  ```css
@@ -30,17 +50,46 @@ Everything the theme defines is prefixed with `locus`: variables are `--locus-*`
30
50
  - 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.
31
51
  - 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.
32
52
  - Hairlines: `--locus-border` is the text color mixed into the surface, 9% light and 10% dark.
33
- - Square containers: every radius token is 0. Buttons, chips, badges, dots and avatars use `rounded-full`.
53
+ - Square containers: `--locus-radius` is 0, and the radius scale (`rounded-sm` to `rounded-4xl`) is derived from `--radius`, falling back to it. Fields, menus, popovers and dialogs carry a step of the scale, so they stay square until an app sets `--radius`. Buttons, chips, badges, dots and avatars use `rounded-pill` (`--radius-pill`, 9999px).
34
54
  - 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.
35
- - Base: interactive elements (buttons, tabs, options, switches, `summary`, `label[for]`) get `cursor: pointer` unless disabled.
55
+ - Document (`document.css`): interactive elements (buttons, tabs, options, switches, `summary`, `label[for]`) get `cursor: pointer` unless disabled, and the root font size is 17px.
36
56
  - Type scale: Tailwind's steps plus `text-2xs` (0.6875rem) for badges and counters and `text-code` (0.8125rem) for code.
37
57
  - 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-*`.
38
58
  - Focus: `locus-focus-ring` draws a 2px ring outside the element; `locus-focus-ring-inset` draws it inside for rows, tabs and scroll areas.
39
- - Base: 17px root size, tight balanced headings, `text-pretty` paragraphs.
59
+ - Base: tight balanced headings, `text-pretty` paragraphs. `body`, `locus-eyebrow` and `locus-focus-ring` read the shadcn variables first (`--background`, `--foreground`, `--muted-foreground`, `--ring`), like the Tailwind colors.
40
60
  - 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.
41
61
 
42
62
  `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.
43
63
 
64
+ ## Theming with the shadcn variables
65
+
66
+ Every Tailwind color the components use reads the standard shadcn variable first and falls back to the Locus value: `bg-primary` is `var(--primary, var(--locus-btn))`. With no overrides nothing changes. To retheme, set the shadcn variables in your app, in `:root` and `.dark`:
67
+
68
+ ```css
69
+ :root {
70
+ --primary: oklch(0.55 0.2 260);
71
+ --primary-foreground: oklch(0.98 0 0);
72
+ --radius: 0.5rem;
73
+ --radius-pill: 0.5rem;
74
+ --font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
75
+ --font-heading: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
76
+ }
77
+ ```
78
+
79
+ - Colors: `--background`, `--foreground`, `--card`, `--popover`, `--primary`, `--secondary`, `--muted`, `--accent`, `--destructive`, `--border`, `--input`, `--ring`, the `-foreground` pairs and the `--sidebar-*` set.
80
+ - Radius: `--radius` sets the scale (`sm` 0.6×, `md` 0.8×, `lg` 1×, `xl` 1.4×). Buttons, toggles, button groups, segmented tabs, chips, badges and avatars are pills by design and do not follow `--radius`; set `--radius-pill` (9999px by default) to change all of them, for example `0` for square buttons.
81
+ - Locus-only roles (`memory`, `good`, `warn`, `faint`, `interactive`, `skeleton`, `scrim` and the `--locus-s1` to `--locus-s8` series) have no shadcn name. They keep the Locus values, so a theme only needs the shadcn variables; override their `--locus-*` variable to change one.
82
+ - Fonts: `--font-sans` (body text, inputs, menus), `--font-heading` (headings, buttons, toggles, toasts, `locus-eyebrow`), `--font-mono` (code, ids) and `--font-brand` (the wordmark). Set them in `:root` like the colors, or in your own `@theme inline`; the `font-*` classes read them at runtime. Load the font files yourself; without `fonts.css` the Locus fonts are not loaded.
83
+ - The `--locus-*` variables keep working.
84
+
85
+ ## Migrating to the shadcn fallbacks
86
+
87
+ If your app already defines shadcn variables (a `shadcn init` app does), Locus components now use them instead of the Locus palette and radius. To keep the Locus look in such an app, import `@locusgraph/tokens/shadcn.css` after your own variables, or remove the shadcn variables you don't want. An app that defines none sees no change.
88
+
89
+ With `shadcn.css` imported, the shadcn names are set once on `:root` from the `--locus-*` values. Overriding a `--locus-*` variable on a nested element then no longer reaches the components; override the shadcn name on that element instead.
90
+
91
+ `rounded-full` in the components is now `rounded-pill`. It is still 9999px unless you set `--radius-pill`.
92
+
44
93
  ## Migrating from 0.3
45
94
 
46
95
  The role colors are renamed so each one names its meaning, and the gray text tones are darker so they pass WCAG AA.
@@ -0,0 +1,9 @@
1
+ @layer base {
2
+ :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]) {
3
+ cursor: pointer;
4
+ }
5
+ }
6
+
7
+ html {
8
+ font-size: 17px;
9
+ }
@@ -23,19 +23,11 @@
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
- }
30
- }
31
-
32
- html {
33
- font-size: 17px;
34
26
  }
35
27
 
36
28
  body {
37
- background: var(--locus-background);
38
- color: var(--locus-foreground);
29
+ background: var(--background, var(--locus-background));
30
+ color: var(--foreground, var(--locus-foreground));
39
31
  }
40
32
 
41
33
  .locus-typeset-docs {
@@ -64,6 +56,6 @@ body {
64
56
  }
65
57
 
66
58
  [data-rehype-pretty-code-figure] [data-highlighted-line] {
67
- background: var(--locus-muted);
68
- box-shadow: inset 2px 0 var(--locus-border);
59
+ background: var(--muted, var(--locus-muted));
60
+ box-shadow: inset 2px 0 var(--border, var(--locus-border));
69
61
  }
package/dist/core.css ADDED
@@ -0,0 +1,11 @@
1
+ @import "./variables/palette.css";
2
+ @import "./variables/mapping.css";
3
+ @import "./base/elements.css";
4
+ @import "./effects/motion/motion.css";
5
+ @import "./effects/keyframes.css";
6
+ @import "./effects/micro/archive.css";
7
+ @import "./effects/utilities.css";
8
+ @import "./effects/scroll-fade.css";
9
+ @import "./effects/enter.css";
10
+ @import "./effects/motion/morph.css";
11
+ @import "./effects/brand.css";
@@ -95,3 +95,42 @@
95
95
  }
96
96
  }
97
97
  }
98
+
99
+ @keyframes locus-ring {
100
+ 0%,
101
+ 100% {
102
+ rotate: 0deg;
103
+ }
104
+ 15% {
105
+ rotate: 16deg;
106
+ }
107
+ 30% {
108
+ rotate: -13deg;
109
+ }
110
+ 45% {
111
+ rotate: 9deg;
112
+ }
113
+ 60% {
114
+ rotate: -5deg;
115
+ }
116
+ 75% {
117
+ rotate: 2deg;
118
+ }
119
+ }
120
+
121
+ @keyframes locus-pop {
122
+ from {
123
+ opacity: 0;
124
+ scale: 0.6;
125
+ }
126
+ }
127
+
128
+ @media (prefers-reduced-motion: reduce) {
129
+ @keyframes locus-ring {
130
+ }
131
+ @keyframes locus-pop {
132
+ from {
133
+ opacity: 0;
134
+ }
135
+ }
136
+ }
@@ -0,0 +1,101 @@
1
+ @keyframes locus-archive-lid {
2
+ 0% {
3
+ rotate: 0deg;
4
+ translate: 0 0;
5
+ animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
6
+ }
7
+ 20%,
8
+ 55% {
9
+ rotate: -10deg;
10
+ translate: 0 -20px;
11
+ animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
12
+ }
13
+ 72%,
14
+ 100% {
15
+ rotate: 0deg;
16
+ translate: 0 0;
17
+ }
18
+ }
19
+
20
+ @keyframes locus-archive-paper {
21
+ 0%,
22
+ 10% {
23
+ opacity: 0;
24
+ translate: 0 -96px;
25
+ }
26
+ 18% {
27
+ opacity: 1;
28
+ translate: 0 -96px;
29
+ animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
30
+ }
31
+ 52% {
32
+ opacity: 1;
33
+ translate: 0 48px;
34
+ }
35
+ 60%,
36
+ 100% {
37
+ opacity: 0;
38
+ translate: 0 48px;
39
+ }
40
+ }
41
+
42
+ @keyframes locus-archive-fill {
43
+ 0%,
44
+ 66% {
45
+ fill: transparent;
46
+ stroke: currentColor;
47
+ }
48
+ 80%,
49
+ 100% {
50
+ fill: var(--locus-good-fill);
51
+ stroke: var(--locus-good-fill);
52
+ }
53
+ }
54
+
55
+ @keyframes locus-archive-ink {
56
+ 0%,
57
+ 66% {
58
+ stroke: currentColor;
59
+ }
60
+ 80%,
61
+ 100% {
62
+ stroke: var(--locus-good-fill);
63
+ }
64
+ }
65
+
66
+ @keyframes locus-archive-handle {
67
+ 0%,
68
+ 66% {
69
+ stroke: currentColor;
70
+ }
71
+ 80%,
72
+ 100% {
73
+ stroke: var(--locus-background);
74
+ }
75
+ }
76
+
77
+ @keyframes locus-archive-settle {
78
+ 0%,
79
+ 72% {
80
+ scale: 1;
81
+ }
82
+ 82% {
83
+ scale: 0.9;
84
+ }
85
+ 100% {
86
+ scale: 1;
87
+ }
88
+ }
89
+
90
+ @media (prefers-reduced-motion: reduce) {
91
+ @keyframes locus-archive-lid {
92
+ }
93
+ @keyframes locus-archive-paper {
94
+ 0%,
95
+ 100% {
96
+ opacity: 0;
97
+ }
98
+ }
99
+ @keyframes locus-archive-settle {
100
+ }
101
+ }
@@ -0,0 +1,74 @@
1
+ @keyframes locus-morph-in {
2
+ from {
3
+ clip-path: var(--locus-morph-from, inset(0 round var(--locus-morph-radius, 0)));
4
+ }
5
+ to {
6
+ clip-path: inset(-1.5rem round calc(var(--locus-morph-radius, 0px) + 1.5rem));
7
+ }
8
+ }
9
+
10
+ @keyframes locus-morph-out {
11
+ from {
12
+ clip-path: inset(-1.5rem round calc(var(--locus-morph-radius, 0px) + 1.5rem));
13
+ opacity: 1;
14
+ }
15
+ to {
16
+ clip-path: var(--locus-morph-from, inset(0 round var(--locus-morph-radius, 0)));
17
+ opacity: 0;
18
+ }
19
+ }
20
+
21
+ @keyframes locus-stagger {
22
+ from {
23
+ opacity: 0;
24
+ translate: 0 4px;
25
+ filter: blur(2px);
26
+ }
27
+ }
28
+
29
+ @utility locus-morph-in {
30
+ animation: locus-morph-in 240ms var(--ease-locus-out) both;
31
+ }
32
+
33
+ @utility locus-morph-out {
34
+ animation: locus-morph-out 150ms var(--ease-locus-out) both;
35
+ }
36
+
37
+ @utility locus-stagger-children {
38
+ & > * {
39
+ animation: locus-stagger 200ms var(--ease-locus-out) both;
40
+ animation-delay: calc(40ms + var(--locus-stagger-step, 4) * 20ms);
41
+ }
42
+ & > :nth-child(1) {
43
+ --locus-stagger-step: 0;
44
+ }
45
+ & > :nth-child(2) {
46
+ --locus-stagger-step: 1;
47
+ }
48
+ & > :nth-child(3) {
49
+ --locus-stagger-step: 2;
50
+ }
51
+ & > :nth-child(4) {
52
+ --locus-stagger-step: 3;
53
+ }
54
+ }
55
+
56
+ @media (prefers-reduced-motion: reduce) {
57
+ @keyframes locus-morph-in {
58
+ from {
59
+ opacity: 0;
60
+ }
61
+ }
62
+
63
+ @keyframes locus-morph-out {
64
+ to {
65
+ opacity: 0;
66
+ }
67
+ }
68
+
69
+ @keyframes locus-stagger {
70
+ from {
71
+ opacity: 0;
72
+ }
73
+ }
74
+ }
@@ -0,0 +1,30 @@
1
+ @theme {
2
+ --ease-locus-out: cubic-bezier(0.23, 1, 0.32, 1);
3
+ --ease-locus-in-out: cubic-bezier(0.77, 0, 0.175, 1);
4
+ --ease-locus-drawer: cubic-bezier(0.32, 0.72, 0, 1);
5
+ }
6
+
7
+ @layer base {
8
+ :where([data-slot$="-content"], [data-slot$="-overlay"], [data-slot$="-viewport"]) {
9
+ --tw-ease: var(--ease-locus-out);
10
+ }
11
+ }
12
+
13
+ @media (prefers-reduced-motion: reduce) {
14
+ :is([data-slot$="-content"], [data-slot$="-overlay"], [data-slot$="-viewport"]) {
15
+ --tw-enter-scale: 1;
16
+ --tw-exit-scale: 1;
17
+ --tw-enter-translate-x: 0;
18
+ --tw-enter-translate-y: 0;
19
+ --tw-exit-translate-x: 0;
20
+ --tw-exit-translate-y: 0;
21
+ --tw-enter-rotate: 0;
22
+ --tw-exit-rotate: 0;
23
+ --tw-enter-blur: 0;
24
+ --tw-exit-blur: 0;
25
+ }
26
+
27
+ [data-slot]:active {
28
+ scale: none;
29
+ }
30
+ }
@@ -60,14 +60,14 @@
60
60
  font-size: var(--text-xs);
61
61
  line-height: var(--text-xs--line-height);
62
62
  font-weight: 500;
63
- color: var(--locus-muted-foreground);
63
+ color: var(--muted-foreground, var(--locus-muted-foreground));
64
64
  }
65
65
 
66
66
  @utility locus-focus-ring {
67
67
  outline: none;
68
68
 
69
69
  &:focus-visible {
70
- outline: 2px solid color-mix(in oklch, var(--color-ring) 70%, transparent);
70
+ outline: 2px solid color-mix(in oklch, var(--ring, var(--locus-interactive)) 70%, transparent);
71
71
  outline-offset: 2px;
72
72
  }
73
73
  }
@@ -76,7 +76,7 @@
76
76
  outline: none;
77
77
 
78
78
  &:focus-visible {
79
- outline: 2px solid color-mix(in oklch, var(--color-ring) 70%, transparent);
79
+ outline: 2px solid color-mix(in oklch, var(--ring, var(--locus-interactive)) 70%, transparent);
80
80
  outline-offset: -2px;
81
81
  }
82
82
  }
package/dist/fonts.css ADDED
@@ -0,0 +1,5 @@
1
+ @import "@fontsource-variable/ibm-plex-sans";
2
+ @import "@fontsource-variable/archivo";
3
+ @import "@fontsource/ibm-plex-mono/400.css";
4
+ @import "@fontsource/ibm-plex-mono/500.css";
5
+ @import "@fontsource/ibm-plex-mono/600.css";
package/dist/theme.css CHANGED
@@ -1,13 +1,3 @@
1
- @import "@fontsource-variable/ibm-plex-sans";
2
- @import "@fontsource-variable/archivo";
3
- @import "@fontsource/ibm-plex-mono/400.css";
4
- @import "@fontsource/ibm-plex-mono/500.css";
5
- @import "@fontsource/ibm-plex-mono/600.css";
6
- @import "./variables/palette.css";
7
- @import "./variables/mapping.css";
8
- @import "./base.css";
9
- @import "./effects/keyframes.css";
10
- @import "./effects/utilities.css";
11
- @import "./effects/scroll-fade.css";
12
- @import "./effects/enter.css";
13
- @import "./effects/brand.css";
1
+ @import "./fonts.css";
2
+ @import "./core.css";
3
+ @import "./base/document.css";
@@ -1,9 +1,21 @@
1
1
  @custom-variant dark (&:is(.dark *));
2
2
 
3
+ @custom-variant locus-label-hover {
4
+ @media (hover: hover) and (pointer: fine) {
5
+ &:is(
6
+ :hover,
7
+ :has(> label:hover) > *,
8
+ [data-slot="field"]:has(label:hover) > *
9
+ ):not(:disabled, [data-disabled]) {
10
+ @slot;
11
+ }
12
+ }
13
+ }
14
+
3
15
  @theme inline {
4
- --color-background: var(--locus-background);
16
+ --color-background: var(--background, var(--locus-background));
5
17
  --color-surface: var(--locus-surface);
6
- --color-foreground: var(--locus-foreground);
18
+ --color-foreground: var(--foreground, var(--locus-foreground));
7
19
  --color-faint: var(--locus-faint);
8
20
  --color-interactive: var(--locus-interactive);
9
21
  --color-memory: var(--locus-memory);
@@ -11,38 +23,36 @@
11
23
  --color-warn: var(--locus-warn);
12
24
  --color-good-fill: var(--locus-good-fill);
13
25
  --color-warn-fill: var(--locus-warn-fill);
14
- --color-border: var(--locus-border);
15
- --color-input: var(--locus-input);
26
+ --color-border: var(--border, var(--locus-border));
27
+ --color-input: var(--input, var(--locus-input));
16
28
  --color-skeleton: var(--locus-skeleton);
17
29
  --color-scrim: var(--locus-scrim);
18
- --color-ring: var(--locus-interactive);
19
- --color-primary: var(--locus-btn);
20
- --color-primary-foreground: var(--locus-btn-ink);
21
- --color-secondary: var(--locus-muted);
22
- --color-secondary-foreground: var(--locus-foreground);
23
- --color-accent: var(--locus-muted);
24
- --color-accent-foreground: var(--locus-foreground);
25
- --color-muted: var(--locus-muted);
26
- --color-muted-foreground: var(--locus-muted-foreground);
27
- --color-popover: var(--locus-popover);
28
- --color-popover-foreground: var(--locus-foreground);
29
- --color-card: var(--locus-surface);
30
- --color-card-foreground: var(--locus-foreground);
31
- --color-destructive: var(--locus-destructive);
32
- --color-destructive-foreground: var(--locus-destructive-foreground);
33
- --color-sidebar: var(--locus-sidebar);
34
- --color-sidebar-foreground: var(--locus-sidebar-foreground);
35
- --color-sidebar-primary: var(--locus-sidebar-primary);
36
- --color-sidebar-primary-foreground: var(--locus-sidebar-primary-foreground);
37
- --color-sidebar-accent: var(--locus-sidebar-accent);
38
- --color-sidebar-accent-foreground: var(--locus-sidebar-accent-foreground);
39
- --color-sidebar-border: var(--locus-sidebar-border);
40
- --color-sidebar-ring: var(--locus-sidebar-ring);
41
- --font-sans: var(--locus-font-ibm-plex-sans);
42
- --font-heading: var(--locus-font-archivo);
43
- --font-mono: var(--locus-font-ibm-plex-mono);
44
- --font-brand: var(--locus-font-archivo);
30
+ --color-ring: var(--ring, var(--locus-interactive));
31
+ --color-primary: var(--primary, var(--locus-btn));
32
+ --color-primary-foreground: var(--primary-foreground, var(--locus-btn-ink));
33
+ --color-secondary: var(--secondary, var(--locus-muted));
34
+ --color-secondary-foreground: var(--secondary-foreground, var(--locus-foreground));
35
+ --color-accent: var(--accent, var(--locus-muted));
36
+ --color-accent-foreground: var(--accent-foreground, var(--locus-foreground));
37
+ --color-muted: var(--muted, var(--locus-muted));
38
+ --color-muted-foreground: var(--muted-foreground, var(--locus-muted-foreground));
39
+ --color-popover: var(--popover, var(--locus-popover));
40
+ --color-popover-foreground: var(--popover-foreground, var(--locus-foreground));
41
+ --color-card: var(--card, var(--locus-surface));
42
+ --color-card-foreground: var(--card-foreground, var(--locus-foreground));
43
+ --color-destructive: var(--destructive, var(--locus-destructive));
44
+ --color-destructive-foreground: var(--destructive-foreground, var(--locus-destructive-foreground));
45
+ --color-sidebar: var(--sidebar, var(--locus-sidebar));
46
+ --color-sidebar-foreground: var(--sidebar-foreground, var(--locus-sidebar-foreground));
47
+ --color-sidebar-primary: var(--sidebar-primary, var(--locus-sidebar-primary));
48
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground, var(--locus-sidebar-primary-foreground));
49
+ --color-sidebar-accent: var(--sidebar-accent, var(--locus-sidebar-accent));
50
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground, var(--locus-sidebar-accent-foreground));
51
+ --color-sidebar-border: var(--sidebar-border, var(--locus-sidebar-border));
52
+ --color-sidebar-ring: var(--sidebar-ring, var(--locus-sidebar-ring));
45
53
  --shadow-overlay: var(--locus-overlay-shadow);
54
+ --text-3xs: 0.625rem;
55
+ --text-3xs--line-height: 0.875rem;
46
56
  --text-2xs: 0.6875rem;
47
57
  --text-2xs--line-height: 1rem;
48
58
  --text-code: 0.8125rem;
@@ -51,12 +61,20 @@
51
61
  --spacing-control-sm: 2rem;
52
62
  --spacing-control: 2.25rem;
53
63
  --spacing-control-lg: 2.5rem;
54
- --radius-xs: 0px;
55
- --radius-sm: 0px;
56
- --radius-md: 0px;
57
- --radius-lg: 0px;
58
- --radius-xl: 0px;
59
- --radius-2xl: 0px;
60
- --radius-3xl: 0px;
61
- --radius-4xl: 0px;
64
+ --radius-xs: calc(var(--radius, var(--locus-radius)) * 0.4);
65
+ --radius-sm: calc(var(--radius, var(--locus-radius)) * 0.6);
66
+ --radius-md: calc(var(--radius, var(--locus-radius)) * 0.8);
67
+ --radius-lg: var(--radius, var(--locus-radius));
68
+ --radius-xl: calc(var(--radius, var(--locus-radius)) * 1.4);
69
+ --radius-2xl: calc(var(--radius, var(--locus-radius)) * 1.8);
70
+ --radius-3xl: calc(var(--radius, var(--locus-radius)) * 2.2);
71
+ --radius-4xl: calc(var(--radius, var(--locus-radius)) * 2.6);
72
+ }
73
+
74
+ @theme {
75
+ --font-sans: var(--locus-font-ibm-plex-sans);
76
+ --font-heading: var(--locus-font-archivo);
77
+ --font-mono: var(--locus-font-ibm-plex-mono);
78
+ --font-brand: var(--locus-font-archivo);
79
+ --radius-pill: 9999px;
62
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusgraph/tokens",
3
- "version": "0.5.1",
3
+ "version": "0.7.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": {
@@ -22,6 +22,9 @@
22
22
  "default": "./dist/values/index.js"
23
23
  },
24
24
  "./theme.css": "./dist/theme.css",
25
+ "./core.css": "./dist/core.css",
26
+ "./fonts.css": "./dist/fonts.css",
27
+ "./document.css": "./dist/base/document.css",
25
28
  "./typeset.css": "./dist/typeset.css",
26
29
  "./shadcn.css": "./dist/variables/shadcn.css"
27
30
  },