@getloopscale/ui 0.37.1 → 0.38.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.
Files changed (37) hide show
  1. package/README.md +35 -5
  2. package/dist/base.css +110 -0
  3. package/dist/components/composites/project-card/project-card.d.ts +1 -1
  4. package/dist/components/primitives/badge/badge.d.ts +2 -2
  5. package/dist/components/primitives/button/button.d.ts +4 -4
  6. package/dist/components/primitives/checkbox/checkbox.d.ts +1 -1
  7. package/dist/components/primitives/input/input.d.ts +2 -2
  8. package/dist/components/primitives/login-split/login-split.d.ts +1 -1
  9. package/dist/components/primitives/scroll-area/scroll-area.d.ts +2 -2
  10. package/dist/components/primitives/select/select.d.ts +1 -1
  11. package/dist/components/primitives/skeleton/skeleton.d.ts +1 -1
  12. package/dist/components/primitives/switch/switch.d.ts +1 -1
  13. package/dist/components/primitives/textarea/textarea.d.ts +1 -1
  14. package/dist/components.css +1 -1
  15. package/dist/fonts/LICENSE-hanken-grotesk.txt +93 -0
  16. package/dist/fonts/LICENSE-jetbrains-mono.txt +93 -0
  17. package/dist/fonts/hanken-grotesk-latin-ext-wght-normal.woff2 +0 -0
  18. package/dist/fonts/hanken-grotesk-latin-wght-normal.woff2 +0 -0
  19. package/dist/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
  20. package/dist/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
  21. package/dist/fonts-cdn.css +10 -22
  22. package/dist/fonts.css +35 -51
  23. package/dist/index.js +6 -9
  24. package/dist/preset.css +4 -18
  25. package/dist/styles/tailwind-preset.d.ts +2 -2
  26. package/dist/styles-v3-legacy.css +14 -17
  27. package/dist/styles.css +12 -126
  28. package/dist/tailwind-preset.js +6 -6
  29. package/dist/tokens-v4.css +10 -11
  30. package/dist/tokens.css +127 -154
  31. package/package.json +3 -3
  32. package/dist/fonts/geist-400.woff2 +0 -0
  33. package/dist/fonts/geist-500.woff2 +0 -0
  34. package/dist/fonts/geist-600.woff2 +0 -0
  35. package/dist/fonts/geist-mono-400.woff2 +0 -0
  36. package/dist/fonts/geist-mono-500.woff2 +0 -0
  37. package/dist/fonts/geist-mono-600.woff2 +0 -0
package/dist/styles.css CHANGED
@@ -1,137 +1,23 @@
1
- /* LoopScale UI — Tailwind v4 prebuilt entry stylesheet.
1
+ /* LoopScale UI — Tailwind v4 entry stylesheet.
2
2
  *
3
- * What ships at `@theokit/ui/styles.css` since RFC 0008 follow-up
4
- * (`0.5.1-next.0`). Consumer imports this once and the framework's
5
- * Tailwind v4 build picks up:
6
- * - `@import "tailwindcss"` — Tailwind v4 core (preflight + utilities)
7
- * - `@import "./fonts.css"` — self-hosted Geist + Geist Mono @font-face
8
- * - `@import "./tokens.css"` — runtime `--*` vars (theme cascade target)
9
- * - `@import "./tokens-v4.css"` — `@theme { --color-*, --text-*, … }`
10
- * namespace Tailwind v4 reads to emit utilities
11
- * - `@layer base` — `border-color`, body font, focus ring, scrollbar
12
- * styling that depend on the runtime vars
3
+ * Import this once from the app's own CSS. It brings, in order:
4
+ * - `tailwindcss`: Tailwind v4 core (preflight and utilities)
5
+ * - `fonts.css`: self-hosted Hanken Grotesk and JetBrains Mono
6
+ * - `tokens.css`: the `--*` variables, light by default and dark under `.dark`
7
+ * - `tokens-v4.css`: the `@theme` namespace Tailwind v4 reads to emit utilities
8
+ * - `base.css`: element defaults that depend on the tokens
9
+ * - `components.css`: the utilities this package's own components use
13
10
  *
14
- * v3-only consumers (Tailwind 3.x + the shadcn registry preset) should
15
- * load `@theokit/ui/styles-v3-legacy.css` instead — that file is the
16
- * unchanged `@tailwind base; @tailwind components; @tailwind utilities`
17
- * variant. See RFC 0008 follow-up.
11
+ * Tailwind 3 consumers load `@getloopscale/ui/styles-v3-legacy.css` instead.
18
12
  */
19
13
 
20
14
  @import "tailwindcss";
21
15
  @import "./fonts.css";
22
16
  @import "./tokens.css";
23
17
  @import "./tokens-v4.css";
18
+ @import "./base.css";
24
19
 
25
- @layer base {
26
- * {
27
- border-color: hsl(var(--border));
28
- }
29
-
30
- /* Tailwind v4 preflight regression compensation —
31
- * v4 intentionally dropped the `button { cursor: pointer }` rule
32
- * (https://tailwindcss.com/docs/upgrade-guide#default-button-cursor)
33
- * so every native <button> renders with the default arrow cursor.
34
- *
35
- * Library authors are expected to opt in explicitly per button. The
36
- * Violet Forge `<Button>` primitive does so (see its CVA). For the
37
- * dozens of native <button> elements composites render directly,
38
- * we restore the v3 behavior here — scoped to *interactive* buttons:
39
- *
40
- * - `:not(:disabled)` skips the HTML `disabled` attribute path
41
- * (browser already shows `cursor: default` for disabled, but the
42
- * rule below stays explicit for clarity).
43
- * - `:not([aria-disabled="true"])` skips the ARIA-disabled path
44
- * (where the button stays focusable but acts as no-op).
45
- *
46
- * This is an EXPLICIT opt-in by the library author for consumers who
47
- * imported `@theokit/ui/styles.css` — it does NOT alter Tailwind's
48
- * global preflight, only this stylesheet's @layer base.
49
- */
50
- button:not(:disabled):not([aria-disabled="true"]),
51
- [role="button"]:not([aria-disabled="true"]) {
52
- cursor: pointer;
53
- }
54
-
55
- html {
56
- font-family: var(--font-body);
57
- -webkit-font-smoothing: antialiased;
58
- -moz-osx-font-smoothing: grayscale;
59
- text-rendering: optimizeLegibility;
60
- }
61
-
62
- body {
63
- background-color: hsl(var(--background));
64
- color: hsl(var(--foreground));
65
- /* OpenType ligatures globally — Geist's "liga" feature is structural
66
- * and gives the Vercel-tight glyph combinations. */
67
- font-feature-settings: "liga" 1, "ss01" 1;
68
- }
69
-
70
- /* Display headings inherit theme display font (Geist by default).
71
- * Per-size tracking is set in tokens-v4.css; this is the safety net. */
72
- h1,
73
- h2,
74
- h3,
75
- h4 {
76
- font-family: var(--font-display);
77
- font-weight: 600;
78
- }
79
-
80
- /* Code surfaces: use the mono token + tabular numerals so columns of
81
- * numbers line up in tables/logs/metrics. */
82
- code,
83
- pre,
84
- kbd,
85
- samp {
86
- font-family: var(--font-mono);
87
- font-feature-settings: "tnum" 1, "liga" 1;
88
- }
89
-
90
- /* Focus ring — violet (signature) */
91
- :focus-visible {
92
- outline: 2px solid hsl(var(--ring));
93
- outline-offset: 2px;
94
- }
95
-
96
- /* Selection — soft violet */
97
- ::selection {
98
- background-color: hsl(var(--primary) / 0.25);
99
- color: hsl(var(--foreground));
100
- }
101
-
102
- /* Native scrollbar fallback (Violet Forge).
103
- * Used for native browser scroll on elements that don't wrap in <ScrollArea>.
104
- * Components that DO use <ScrollArea> hide the native scrollbar via Radix.
105
- */
106
- *::-webkit-scrollbar {
107
- width: 10px;
108
- height: 10px;
109
- }
110
- *::-webkit-scrollbar-track {
111
- background: transparent;
112
- }
113
- *::-webkit-scrollbar-thumb {
114
- background-color: hsl(var(--primary) / 0.25);
115
- border: 2px solid transparent;
116
- background-clip: content-box;
117
- border-radius: 9999px;
118
- transition: background-color var(--duration-fast) var(--ease-out-soft);
119
- }
120
- *::-webkit-scrollbar-thumb:hover {
121
- background-color: hsl(var(--primary) / 0.5);
122
- }
123
- *::-webkit-scrollbar-thumb:active {
124
- background-color: hsl(var(--primary) / 0.75);
125
- }
126
- * {
127
- scrollbar-width: thin;
128
- scrollbar-color: hsl(var(--primary) / 0.3) transparent;
129
- }
130
- }
131
-
132
- /* RFC 0008 follow-up #2 — pre-compiled utility rules. The bytes here
133
- * are emitted at build time by `scripts/build-precompiled-css.ts` so
134
- * consumers do not depend on Tailwind v4 `@source` scanning the
135
- * library's node_modules tree (which breaks under pnpm symlinks).
20
+ /* Compiled at build time by `scripts/build-css.ts`, so consumers do not depend on Tailwind's
21
+ * `@source` scanning this package inside `node_modules`, which finds nothing under pnpm symlinks.
136
22
  */
137
23
  @import "./components.css";
@@ -87,11 +87,11 @@ var loopscaleUIPreset = {
87
87
  sans: "var(--font-body)",
88
88
  mono: "var(--font-mono)"
89
89
  },
90
- /* Geist-inspired Violet Forge typescale.
90
+ /* Typescale.
91
91
  *
92
92
  * Three strict weights: 400 (body), 500 (UI), 600 (display/headings).
93
93
  * Letter-spacing scales with size — aggressive negative on display.
94
- * Mirrors the Vercel/Geist vocabulary while keeping LoopZero's identity.
94
+ * Kept in step with the `@theme` typescale in tokens-v4.css.
95
95
  */
96
96
  fontSize: {
97
97
  // Display tier — aggressive compression, content-led headlines
@@ -104,9 +104,9 @@ var loopscaleUIPreset = {
104
104
  "title-lg": ["24px", { lineHeight: "1.33", letterSpacing: "-0.04em", fontWeight: "600" }],
105
105
  "title-md": ["20px", { lineHeight: "1.4", letterSpacing: "-0.03em", fontWeight: "600" }],
106
106
  // Body tier — FAANG-density realignment 2026-05-22: body-md is the
107
- // industry-standard 14px (shadcn / Vercel Geist / Linear / Stripe /
107
+ // industry-standard 14px (shadcn / Vercel / Linear / Stripe /
108
108
  // Mantine). The previous 15px was idiosyncratic. body-sm is 13px (its
109
- // own line-height / weight signature), kept in lockstep with @theokit/ui
109
+ // own line-height / weight signature), kept in lockstep with tokens-v4.css
110
110
  // and this preset's own tokens-v4.css so menu items / secondary text
111
111
  // render at the same size across both scopes.
112
112
  "body-lg": ["18px", { lineHeight: "1.56", letterSpacing: "-0.01em", fontWeight: "400" }],
@@ -150,8 +150,8 @@ var loopscaleUIPreset = {
150
150
  "100%": { opacity: "1", transform: "translateY(0)" }
151
151
  },
152
152
  "pulse-glow": {
153
- "0%, 100%": { boxShadow: "0 0 0 0 hsl(var(--primary) / 0.5)" },
154
- "50%": { boxShadow: "0 0 0 8px hsl(var(--primary) / 0)" }
153
+ "0%, 100%": { boxShadow: "0 0 0 0 color-mix(in oklch, var(--primary) 50%, transparent)" },
154
+ "50%": { boxShadow: "0 0 0 8px transparent" }
155
155
  }
156
156
  },
157
157
  animation: {
@@ -81,49 +81,49 @@
81
81
  --font-sans: var(--font-body);
82
82
  --font-mono: var(--font-mono);
83
83
 
84
- /* Violet Forge typescale -------------------------------------------- *
84
+ /* Typescale. Tracking is tuned for Hanken Grotesk: tight on display, open on body. *
85
85
  * Compound text utilities: each `--text-{name}` declares the size,
86
86
  * with companion `--*--line-height`, `--*--letter-spacing`, and
87
87
  * `--*--font-weight` properties Tailwind v4 picks up automatically.
88
88
  */
89
89
  --text-display-2xl: 64px;
90
90
  --text-display-2xl--line-height: 1;
91
- --text-display-2xl--letter-spacing: -0.0464em;
91
+ --text-display-2xl--letter-spacing: -0.03em;
92
92
  --text-display-2xl--font-weight: 600;
93
93
 
94
94
  --text-display-xl: 48px;
95
95
  --text-display-xl--line-height: 1.05;
96
- --text-display-xl--letter-spacing: -0.05em;
96
+ --text-display-xl--letter-spacing: -0.03em;
97
97
  --text-display-xl--font-weight: 600;
98
98
 
99
99
  --text-display-lg: 40px;
100
100
  --text-display-lg--line-height: 1.1;
101
- --text-display-lg--letter-spacing: -0.05em;
101
+ --text-display-lg--letter-spacing: -0.025em;
102
102
  --text-display-lg--font-weight: 600;
103
103
 
104
104
  --text-display-md: 32px;
105
105
  --text-display-md--line-height: 1.2;
106
- --text-display-md--letter-spacing: -0.04em;
106
+ --text-display-md--letter-spacing: -0.025em;
107
107
  --text-display-md--font-weight: 600;
108
108
 
109
109
  --text-headline: 28px;
110
110
  --text-headline--line-height: 1.25;
111
- --text-headline--letter-spacing: -0.035em;
111
+ --text-headline--letter-spacing: -0.02em;
112
112
  --text-headline--font-weight: 600;
113
113
 
114
114
  --text-title-lg: 24px;
115
115
  --text-title-lg--line-height: 1.33;
116
- --text-title-lg--letter-spacing: -0.04em;
116
+ --text-title-lg--letter-spacing: -0.02em;
117
117
  --text-title-lg--font-weight: 600;
118
118
 
119
119
  --text-title-md: 20px;
120
120
  --text-title-md--line-height: 1.4;
121
- --text-title-md--letter-spacing: -0.03em;
121
+ --text-title-md--letter-spacing: -0.015em;
122
122
  --text-title-md--font-weight: 600;
123
123
 
124
124
  --text-body-lg: 18px;
125
125
  --text-body-lg--line-height: 1.56;
126
- --text-body-lg--letter-spacing: -0.01em;
126
+ --text-body-lg--letter-spacing: 0;
127
127
  --text-body-lg--font-weight: 400;
128
128
 
129
129
  --text-body-md: 14px;
@@ -161,8 +161,7 @@
161
161
  --radius-2xl: 20px;
162
162
  --radius-full: 9999px;
163
163
 
164
- /* Shadows — alias to tokens.css computed values (which already use
165
- * `hsl(var(--foreground) / …)` so theme-switch keeps them in step). */
164
+ /* Shadows: aliases of the values computed in tokens.css. */
166
165
  --shadow-sm: var(--shadow-sm);
167
166
  --shadow-md: var(--shadow-md);
168
167
  --shadow-lg: var(--shadow-lg);
package/dist/tokens.css CHANGED
@@ -1,93 +1,85 @@
1
- /* LoopScale UI — Design System "Violet Forge" tokens.
1
+ /* LoopScale UI — design tokens.
2
2
  *
3
- * Tokens normativos. Não edite valores aqui sem revisão do design system.
4
- * Referência: docs/design-system.md
3
+ * The values are the LoopScale brand: ink and paper neutrals and one brand color, lime.
4
+ * Ink is a very dark gray pulled toward green and the text is a slightly warm bone, so the
5
+ * dark theme sits at 14.8:1 where pure white on pure black would be 21:1.
5
6
  *
6
- * Estratégia:
7
- * - CSS custom properties para todas as cores, scales e durations.
8
- * - Default é light. Dark é ativado via [data-theme="dark"] ou .dark.
9
- * - HSL split (h s l) em vez de hex permite alpha via color-mix() ou hsl(var(--x) / .5).
7
+ * - Every color, scale and duration is a CSS custom property.
8
+ * - Light is the default. The `.dark` class on an ancestor switches to dark.
9
+ * - Values are plain colors, so alpha goes through `color-mix()` or Tailwind's `/50`
10
+ * modifiers. Never wrap a token in `hsl()`.
10
11
  *
11
- * Roxo LoopScale: #A855F7 → oklch(0.628 0.225 296) (electric violet — unified 2026-06-09)
12
- * Burnt sienna: #C96442 → hsl(15 54% 53%)
12
+ * `tests/brand-tokens.test.ts` holds these values and their contrast ratios in place.
13
13
  */
14
14
 
15
- /* `:root` and `[data-theme="dark"]` declarations are intentionally NOT wrapped
16
- * in `@layer base` so they apply at the document level regardless of whether
17
- * the consumer's CSS pipeline runs Tailwind's preflight. The texture utilities
18
- * below remain in `@layer utilities` because that layer affects ordering only,
19
- * not the cascade root.
15
+ /* `:root` and `.dark` are intentionally NOT wrapped in `@layer base`, so they apply at the
16
+ * document level whether or not the consumer's CSS pipeline runs Tailwind's preflight. The
17
+ * texture utilities below stay in `@layer utilities` because that layer only affects ordering.
20
18
  */
21
19
  :root {
22
- /* Base palette ------------------------------------------------------- *
23
- * Neutrals are 100% desaturated (Vercel-style). Color comes from the
24
- * primary (violet) + accent (burnt sienna) tokens below — never from
25
- * surface tints.
26
- */
27
- --background: oklch(1 0 0); /* #FFFFFF */
28
- --foreground: oklch(0.146 0 0); /* #0A0A0A */
29
-
30
- --card: oklch(1 0 0); /* #FFFFFF */
31
- --card-foreground: oklch(0.146 0 0);
32
-
33
- --popover: oklch(1 0 0);
34
- --popover-foreground: oklch(0.146 0 0);
35
-
36
- /* Primary — LoopScale violet (equity) ------------------------------------- *
37
- * Post-T3.1 (ADR-0006): -deep and -glow are derived algorithmically via
38
- * OKLCH relative-color syntax. Themes that need a per-token override may
39
- * still declare these explicitly — the cascade resolves the override.
40
- * `max()`/`min()` clamps protect dark/light themes from L overflow (EC-7).
20
+ color-scheme: light;
21
+
22
+ /* Neutrals: paper ---------------------------------------------------- */
23
+ --background: #f4f3ef; /* paper */
24
+ --foreground: #16191a; /* ink, 15.9:1 */
25
+
26
+ --card: #fbfaf7; /* paper-raised */
27
+ --card-foreground: #16191a;
28
+
29
+ --popover: #fbfaf7;
30
+ --popover-foreground: #16191a;
31
+
32
+ /* Primary: the brand color where it has to work as text ------------- *
33
+ * Lime itself has no contrast on paper, so the light theme uses its dark
34
+ * olive for links, focus and filled controls. `-deep` and `-glow` are derived
35
+ * with OKLCH relative-color syntax; the clamps keep L inside the gamut.
41
36
  */
42
- --primary: oklch(0.628 0.225 296); /* #A855F7 — LoopScale violet electric (unified 2026-06-09) */
43
- --primary-deep: oklch(from var(--primary) max(0.05, calc(l - 0.16)) c h);
37
+ --primary: #556b00; /* lime-text, 5.4:1 */
38
+ --primary-deep: oklch(from var(--primary) max(0.05, calc(l - 0.08)) c h);
44
39
  --primary-glow: oklch(from var(--primary) min(0.95, calc(l + 0.18)) c h);
45
- --primary-foreground: oklch(1 0 0);
40
+ --primary-foreground: #fbfaf7;
46
41
 
47
- /* Secondary — neutral muted ----------------------------------------- */
48
- --secondary: oklch(0.97 0 0); /* #F5F5F5 */
49
- --secondary-foreground: oklch(0.146 0 0);
42
+ /* Secondary and muted: one step below paper -------------------------- */
43
+ --secondary: #eae8e2;
44
+ --secondary-foreground: #16191a;
45
+ --muted: #eae8e2;
46
+ --muted-foreground: #5a615f; /* ink-muted, 5.7:1 */
50
47
 
51
- /* Accent — burnt sienna --------------------------------------------- *
52
- * T3.1: accent-deep derived. Override path identical to primary.
48
+ /* Accent: lime as a fill, always with ink on top --------------------- *
49
+ * Reserved for the one highlighted action on a screen. Never use it as a
50
+ * text color: on paper it fails contrast.
53
51
  */
54
- --accent: oklch(0.621 0.132 39); /* #C96442 */
55
- --accent-deep: oklch(from var(--accent) max(0.05, calc(l - 0.13)) c h);
56
- --accent-foreground: oklch(1 0 0);
57
-
58
- /* Muted ------------------------------------------------------------- */
59
- --muted: oklch(0.97 0 0);
60
- --muted-foreground: oklch(0.555 0 0); /* #737373 */
52
+ --accent: #c4e34f; /* lime-fill */
53
+ --accent-deep: oklch(from var(--accent) max(0.05, calc(l - 0.06)) c h);
54
+ --accent-foreground: #111415; /* 12.7:1 */
61
55
 
62
- /* Surfaces, borders, inputs ----------------------------------------- */
63
- --border: oklch(0.931 0 0); /* #E8E8E8 — Vercel-style hairline */
64
- --input: oklch(0.931 0 0);
65
- --ring: oklch(0.628 0.225 296); /* matches primary */
56
+ /* Borders, inputs, focus -------------------------------------------- */
57
+ --border: #dcdad3; /* paper-line */
58
+ --input: #dcdad3;
59
+ --ring: #556b00;
66
60
 
67
61
  /* Semantics --------------------------------------------------------- */
68
- --success: oklch(0.611 0.161 149.7); /* #16A34A */
69
- --success-foreground: oklch(1 0 0);
70
- --warning: oklch(0.67 0.154 60.6); /* #D97706 */
71
- --warning-foreground: oklch(1 0 0);
72
- --destructive: oklch(0.579 0.214 27.2); /* #DC2626 */
73
- --destructive-foreground: oklch(1 0 0);
74
- --info: oklch(0.626 0.186 259.6); /* #3B82F6 */
75
- --info-foreground: oklch(1 0 0);
76
-
77
- /* Status (D4 — operational state group) ----------------------------- *
78
- * Separate from semantic group (success/destructive/warning/info, which
79
- * are action-result colors). Status describes component liveness:
80
- * online (alive), offline (dead), degraded (alive-but-slow), info (flag).
81
- * Defaults mirror semantic counterparts; themes override for distinction.
62
+ --success: #1f7a4f;
63
+ --success-foreground: #fbfaf7;
64
+ --warning: #7a6200;
65
+ --warning-foreground: #fbfaf7;
66
+ --destructive: #b3372a;
67
+ --destructive-foreground: #fbfaf7;
68
+ --info: #2c5e99;
69
+ --info-foreground: #fbfaf7;
70
+
71
+ /* Status: liveness of a component, as opposed to the result of an action.
72
+ * Lime sits between the warning yellow and the success green, so a status
73
+ * always carries a text label next to its color.
82
74
  */
83
- --status-online: oklch(0.611 0.161 149.7);
84
- --status-online-foreground: oklch(1 0 0);
85
- --status-offline: oklch(0.579 0.214 27.2);
86
- --status-offline-foreground: oklch(1 0 0);
87
- --status-degraded: oklch(0.67 0.154 60.6);
88
- --status-degraded-foreground: oklch(1 0 0);
89
- --status-info: oklch(0.626 0.186 259.6);
90
- --status-info-foreground: oklch(1 0 0);
75
+ --status-online: #1f7a4f;
76
+ --status-online-foreground: #fbfaf7;
77
+ --status-offline: #b3372a;
78
+ --status-offline-foreground: #fbfaf7;
79
+ --status-degraded: #7a6200;
80
+ --status-degraded-foreground: #fbfaf7;
81
+ --status-info: #2c5e99;
82
+ --status-info-foreground: #fbfaf7;
91
83
 
92
84
  /* Radii ------------------------------------------------------------- */
93
85
  --radius-none: 0px;
@@ -115,11 +107,7 @@
115
107
  --space-24: 96px;
116
108
  --space-32: 128px;
117
109
 
118
- /* Elevation — theme-aware (uses --foreground for shadow ink,
119
- * --primary for the signature glow, so swapping themes recolors them).
120
- * Post-T2.5: tokens are OKLCH; we compose alpha via color-mix(in oklch, ...)
121
- * which is perceptually correct AND works with any color-space variable.
122
- */
110
+ /* Elevation. Shadows take their ink from --foreground and the glow from --primary. */
123
111
  --shadow-sm: 0 1px 2px 0 color-mix(in oklch, var(--foreground) 6%, transparent);
124
112
  --shadow-md: 0 2px 8px -2px color-mix(in oklch, var(--foreground) 8%, transparent), 0 1px 3px
125
113
  color-mix(in oklch, var(--foreground) 6%, transparent);
@@ -137,75 +125,63 @@
137
125
  --duration-slow: 360ms;
138
126
  --stagger: 60ms;
139
127
 
140
- /* Typography (Geist family — Vercel-inspired Violet Forge) ---------- */
141
- --font-display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
142
- --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
143
- --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
128
+ /* Typography: Hanken Grotesk for text, JetBrains Mono for code, labels and numbers. */
129
+ --font-display: "Hanken Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
130
+ --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
131
+ --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
144
132
  }
145
133
 
146
- /* Dark mode — dominante --------------------------------------------- *
147
- * Vercel-aligned grayscale: pure neutrals (0% saturation) for every
148
- * surface and text layer. Color only in primary (violet), accent (burnt
149
- * sienna), and semantic tokens (success/warning/destructive/info).
150
- *
151
- * Activated exclusively via the `.dark` class on `<html>` (set by
152
- * `ThemeProvider`, `ThemeScript`, or consumers manually). The previous
153
- * `[data-theme="dark"]` companion selector was dead — `data-theme` holds
154
- * the theme NAME, never the literal `"dark"`.
155
- */
134
+ /* Dark theme. Activated by the `.dark` class on an ancestor, usually `<html>`. */
156
135
  .dark {
157
- --background: oklch(0.146 0 0); /* #0A0A0A */
158
- --foreground: oklch(0.97 0 0); /* #F5F5F5 */
159
-
160
- --card: oklch(0.182 0 0); /* #121212 */
161
- --card-foreground: oklch(0.97 0 0);
162
-
163
- --popover: oklch(0.204 0 0); /* #171717 */
164
- --popover-foreground: oklch(0.97 0 0);
165
-
166
- --primary: oklch(0.628 0.225 296);
167
- --primary-deep: oklch(from var(--primary) max(0.05, calc(l - 0.16)) c h);
168
- --primary-glow: oklch(from var(--primary) min(0.95, calc(l + 0.18)) c h);
169
- --primary-foreground: oklch(1 0 0);
170
-
171
- --secondary: oklch(0.227 0 0); /* #1C1C1C */
172
- --secondary-foreground: oklch(0.97 0 0);
173
-
174
- --accent: oklch(0.621 0.132 39);
175
- --accent-deep: oklch(from var(--accent) max(0.05, calc(l - 0.13)) c h);
176
- --accent-foreground: oklch(1 0 0);
177
-
178
- --muted: oklch(0.227 0 0);
179
- --muted-foreground: oklch(0.683 0 0); /* #999 — Vercel gray-500 */
180
-
181
- --border: oklch(0.28 0 0); /* #292929 */
182
- --input: oklch(0.227 0 0);
183
- --ring: oklch(0.628 0.225 296);
184
-
185
- --success: oklch(0.814 0.192 155.7); /* #22E58C */
186
- --success-foreground: oklch(0.146 0 0);
187
- --warning: oklch(0.77 0.165 70.6); /* #F59E0B */
188
- --warning-foreground: oklch(0.146 0 0);
189
- --destructive: oklch(0.677 0.213 15.6); /* #FF4F6D */
190
- --destructive-foreground: oklch(0.146 0 0);
191
- --info: oklch(0.732 0.142 254.4); /* #5FB3FF */
192
- --info-foreground: oklch(0.146 0 0);
193
-
194
- /* Status (D4 — dark mode mirror of light defaults) ------------------ */
195
- --status-online: oklch(0.814 0.192 155.7);
196
- --status-online-foreground: oklch(0.146 0 0);
197
- --status-offline: oklch(0.677 0.213 15.6);
198
- --status-offline-foreground: oklch(0.146 0 0);
199
- --status-degraded: oklch(0.77 0.165 70.6);
200
- --status-degraded-foreground: oklch(0.146 0 0);
201
- --status-info: oklch(0.732 0.142 254.4);
202
- --status-info-foreground: oklch(0.146 0 0);
203
-
204
- /* In dark mode, shadows are heavier ink (against the dark surface) and
205
- * the glow brightens. Both still derive from theme tokens.
206
- * Post-T2.5: OKLCH-aware composition via color-mix() — black ink via
207
- * the literal oklch(0 0 0) (no theme indirection needed).
208
- */
136
+ color-scheme: dark;
137
+
138
+ /* Neutrals: ink ------------------------------------------------------ */
139
+ --background: #111415; /* ink */
140
+ --foreground: #e7e6e0; /* bone, 14.8:1 */
141
+
142
+ --card: #181c1d; /* ink-raised */
143
+ --card-foreground: #e7e6e0;
144
+
145
+ --popover: #1d2223;
146
+ --popover-foreground: #e7e6e0;
147
+
148
+ --primary: #c4e34f; /* lime, 12.7:1 */
149
+ --primary-deep: oklch(from var(--primary) max(0.05, calc(l - 0.08)) c h);
150
+ --primary-glow: oklch(from var(--primary) min(0.95, calc(l + 0.08)) c h);
151
+ --primary-foreground: #111415;
152
+
153
+ --secondary: #202526;
154
+ --secondary-foreground: #e7e6e0;
155
+ --muted: #202526;
156
+ --muted-foreground: #9ba29f; /* bone-muted, 7.1:1 */
157
+
158
+ --accent: #c4e34f;
159
+ --accent-deep: oklch(from var(--accent) max(0.05, calc(l - 0.06)) c h);
160
+ --accent-foreground: #111415;
161
+
162
+ --border: #2a3032; /* ink-line */
163
+ --input: #2a3032;
164
+ --ring: #c4e34f;
165
+
166
+ --success: #5db98a;
167
+ --success-foreground: #111415;
168
+ --warning: #e6c84f;
169
+ --warning-foreground: #111415;
170
+ --destructive: #e8705f;
171
+ --destructive-foreground: #111415;
172
+ --info: #7fa8d9;
173
+ --info-foreground: #111415;
174
+
175
+ --status-online: #5db98a;
176
+ --status-online-foreground: #111415;
177
+ --status-offline: #e8705f;
178
+ --status-offline-foreground: #111415;
179
+ --status-degraded: #e6c84f;
180
+ --status-degraded-foreground: #111415;
181
+ --status-info: #7fa8d9;
182
+ --status-info-foreground: #111415;
183
+
184
+ /* Shadows are heavier ink against the dark surface. */
209
185
  --shadow-sm: 0 1px 2px 0 oklch(0 0 0 / 0.4);
210
186
  --shadow-md: 0 2px 8px -2px oklch(0 0 0 / 0.5), 0 1px 3px oklch(0 0 0 / 0.4);
211
187
  --shadow-lg: 0 12px 32px -8px oklch(0 0 0 / 0.6), 0 4px 12px oklch(0 0 0 / 0.4);
@@ -214,7 +190,7 @@
214
190
  }
215
191
 
216
192
  /* Forced colors (Windows High Contrast Mode) — D7 / ADR-0008 ----------- *
217
- * Maps LoopZero's semantic tokens to system colors so the UI remains usable
193
+ * Maps the semantic tokens to system colors so the UI remains usable
218
194
  * (and required by WCAG 1.4.1) when the OS forces a high-contrast palette.
219
195
  * Decorative textures opt out via `forced-color-adjust: none` (the dotted
220
196
  * patterns and hero glow would invert into solid blocks otherwise).
@@ -244,8 +220,8 @@
244
220
  }
245
221
 
246
222
  /* Texture utilities are decorative — keep them out of the system-color map. */
247
- .bg-dotted-violet,
248
- .bg-dotted-violet-strong,
223
+ .bg-dotted-brand,
224
+ .bg-dotted-brand-strong,
249
225
  .bg-hero-glow,
250
226
  .bg-paper-grain {
251
227
  forced-color-adjust: none;
@@ -276,12 +252,9 @@
276
252
  }
277
253
  }
278
254
 
279
- /* Texture utilities (signature) ---------------------------------------- *
280
- * Post-T2.5: tokens are OKLCH; we compose alpha via color-mix(in oklch, …),
281
- * which is perceptually correct and works with any color-space variable.
282
- */
255
+ /* Texture utilities. */
283
256
  @layer utilities {
284
- .bg-dotted-violet {
257
+ .bg-dotted-brand {
285
258
  background-image: radial-gradient(
286
259
  color-mix(in oklch, var(--primary) 8%, transparent) 1px,
287
260
  transparent 1px
@@ -289,7 +262,7 @@
289
262
  background-size: 20px 20px;
290
263
  }
291
264
 
292
- .bg-dotted-violet-strong {
265
+ .bg-dotted-brand-strong {
293
266
  background-image: radial-gradient(
294
267
  color-mix(in oklch, var(--primary) 16%, transparent) 1px,
295
268
  transparent 1px
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@getloopscale/ui",
3
- "version": "0.37.1",
3
+ "version": "0.38.0",
4
4
  "packageManager": "pnpm@10.32.1+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
- "description": "Violet Forge design system — generic React components + primitives (the non-AI foundation of @theokit/ui).",
7
+ "description": "LoopScale design system: React components, primitives and the brand tokens.",
8
8
  "keywords": [
9
9
  "react",
10
10
  "design-system",
@@ -15,7 +15,7 @@
15
15
  "primitives",
16
16
  "dashboard",
17
17
  "loopscale",
18
- "violet-forge"
18
+ "loopscale"
19
19
  ],
20
20
  "homepage": "https://github.com/getloopscale/ui#readme",
21
21
  "bugs": {
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file