@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
@@ -0,0 +1,93 @@
1
+ Copyright 2021 The Hanken Grotesk Project Authors (https://github.com/marcologous/hanken-grotesk) HankenGrotesk-Italic[wght].ttf: Copyright 2021 The Hanken Grotesk Project Authors (https://github.com/marcologous/hanken-grotesk)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,28 +1,16 @@
1
- /* LoopScale UI — font loading via Google Fonts CDN (opt-in).
1
+ /* LoopScale UI — font loading from the Google Fonts CDN (opt-in).
2
2
  *
3
- * Use this entrypoint instead of `@theokit/ui/fonts.css` if you prefer to
4
- * fetch Geist + Geist Mono from `fonts.googleapis.com` rather than ship the
5
- * 290 KB of woff2 assets that the self-hosted entrypoint includes.
3
+ * Use this instead of `@getloopscale/ui/fonts.css` to fetch Hanken Grotesk and JetBrains Mono
4
+ * from `fonts.googleapis.com` and skip the woff2 files the self-hosted entry ships.
6
5
  *
7
- * Trade-offs:
8
- * - PRO: zero static assets to host; smaller npm tarball footprint for
9
- * consumers who use a `pnpm dlx` workflow.
10
- * - CON: third-party network request on every page load; conflicts with
11
- * strict CSP and GDPR jurisdictions; render-blocking on cold cache.
6
+ * The cost is a third-party request on every page load: it conflicts with a strict CSP and it
7
+ * blocks rendering on a cold cache. `@getloopscale/ui/styles.css` bundles the self-hosted fonts,
8
+ * so pair this file with the pieces instead:
12
9
  *
13
- * The default for `@theokit/ui/styles.css` (and `@theokit/ui/fonts.css`)
14
- * is the self-hosted path (HIGH-002 / D6). Switch to this only if your
15
- * threat model permits the third-party fetch.
10
+ * @import "@getloopscale/ui/fonts-cdn.css";
11
+ * @import "@getloopscale/ui/tokens.css";
16
12
  *
17
- * Usage:
18
- *
19
- * @import "@theokit/ui/tokens.css";
20
- * @import "@theokit/ui/fonts-cdn.css"; // NOT styles.css (which bundles
21
- * // the self-hosted @font-face)
22
- *
23
- * The CSS variables (`--font-display`, `--font-body`, `--font-mono`) in
24
- * tokens.css already reference `"Geist"` / `"Geist Mono"`; no component
25
- * change required when switching entrypoints.
13
+ * `--font-display`, `--font-body` and `--font-mono` in `tokens.css` already name both families.
26
14
  */
27
15
 
28
- @import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Geist+Mono:wght@100..900&display=swap");
16
+ @import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100..900&family=JetBrains+Mono:wght@100..800&display=swap");
package/dist/fonts.css CHANGED
@@ -1,75 +1,59 @@
1
- /* LoopScale UI — font loading (self-hosted by default).
1
+ /* LoopScale UI — font loading, self-hosted.
2
2
  *
3
- * Default theme (Violet Forge): Geist Sans + Geist Mono.
4
- * Vercel-inspired typographic vocabulary — tight letter-spacing on display,
5
- * 3 strict weights (400 body / 500 UI / 600 display), OpenType "liga"
6
- * enabled globally. Geist is Vercel's open-source typeface, optimized for
7
- * product UIs and code surfaces. Licensed under SIL Open Font License
8
- * (LICENSE-GEIST.txt sits next to the woff2 files in `dist/fonts/`).
3
+ * Hanken Grotesk for text and JetBrains Mono for code, labels and numbers. Both are variable
4
+ * fonts under the SIL Open Font License; the license texts sit next to the woff2 files in
5
+ * `dist/fonts/`.
9
6
  *
10
- * ── Why self-hosted by default (HIGH-002 / D6) ────────────────────────────
11
- * The previous default `@import url("https://fonts.googleapis.com/...")`
12
- * triggered a third-party network request on every page load — friction for
13
- * CSP-strict deployments, GDPR jurisdictions, and offline-first products.
14
- * The fonts ship as woff2 next to this CSS; consumers who installed
15
- * `@theokit/ui/styles.css` get Geist with zero external dependencies.
7
+ * Self-hosting is the default because a stylesheet import from a font CDN is a third-party
8
+ * request on every page load, which strict CSP deployments and offline products cannot make.
9
+ * `@getloopscale/ui/fonts-cdn.css` is the opt-in alternative.
16
10
  *
17
- * Asset budget: 6 woff2 files (~290 KB total). Three weights per family
18
- * cover the entire Violet Forge typescale (display-2xl through code-sm).
19
- *
20
- * ── Opt-in CDN ────────────────────────────────────────────────────────────
21
- * Consumers who prefer Google Fonts CDN (e.g. don't want to host static
22
- * assets) can use the parallel entrypoint instead:
23
- *
24
- * @import "@theokit/ui/fonts-cdn.css";
25
- *
26
- * That file keeps the legacy @import to fonts.googleapis.com.
11
+ * Each family ships one file per subset, and the browser downloads a subset only when the page
12
+ * uses a character in its `unicode-range`. Latin covers Portuguese and Western European text.
27
13
  */
28
14
 
29
15
  @font-face {
30
- font-family: "Geist";
31
- font-style: normal;
32
- font-weight: 400;
33
- font-display: swap;
34
- src: url("./fonts/geist-400.woff2") format("woff2");
35
- }
36
-
37
- @font-face {
38
- font-family: "Geist";
39
- font-style: normal;
40
- font-weight: 500;
41
- font-display: swap;
42
- src: url("./fonts/geist-500.woff2") format("woff2");
43
- }
44
-
45
- @font-face {
46
- font-family: "Geist";
16
+ font-family: "Hanken Grotesk";
47
17
  font-style: normal;
48
- font-weight: 600;
18
+ font-weight: 100 900;
49
19
  font-display: swap;
50
- src: url("./fonts/geist-600.woff2") format("woff2");
20
+ src: url("./fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
21
+ unicode-range:
22
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
23
+ U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
24
+ U+A720-A7FF;
51
25
  }
52
26
 
53
27
  @font-face {
54
- font-family: "Geist Mono";
28
+ font-family: "Hanken Grotesk";
55
29
  font-style: normal;
56
- font-weight: 400;
30
+ font-weight: 100 900;
57
31
  font-display: swap;
58
- src: url("./fonts/geist-mono-400.woff2") format("woff2");
32
+ src: url("./fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
33
+ unicode-range:
34
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
35
+ U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
59
36
  }
60
37
 
61
38
  @font-face {
62
- font-family: "Geist Mono";
39
+ font-family: "JetBrains Mono";
63
40
  font-style: normal;
64
- font-weight: 500;
41
+ font-weight: 100 800;
65
42
  font-display: swap;
66
- src: url("./fonts/geist-mono-500.woff2") format("woff2");
43
+ src: url("./fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
44
+ unicode-range:
45
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
46
+ U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
47
+ U+A720-A7FF;
67
48
  }
68
49
 
69
50
  @font-face {
70
- font-family: "Geist Mono";
51
+ font-family: "JetBrains Mono";
71
52
  font-style: normal;
72
- font-weight: 600;
53
+ font-weight: 100 800;
73
54
  font-display: swap;
74
- src: url("./fonts/geist-mono-600.woff2") format("woff2");
55
+ src: url("./fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
56
+ unicode-range:
57
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
58
+ U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
75
59
  }
package/dist/index.js CHANGED
@@ -543,9 +543,6 @@ var KIND_LABEL = {
543
543
  var buttonVariants = cva(
544
544
  [
545
545
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg",
546
- // NIT-004: `font-medium` (500) aligns with the design-system.md UI weight.
547
- // Previously `font-bold` (700) exceeded the normative 400/500/600 weight
548
- // range declared for Geist Sans in the Violet Forge identity.
549
546
  "font-medium font-sans tracking-tight",
550
547
  "transition-[box-shadow,background-color,color,transform] duration-base ease-out-soft",
551
548
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
@@ -565,9 +562,9 @@ var buttonVariants = cva(
565
562
  variants: {
566
563
  variant: {
567
564
  primary: [
568
- "bg-primary text-primary-foreground",
569
- "hover:bg-primary hover:shadow-glow",
570
- "active:scale-[0.98] active:bg-primary-deep active:shadow-none"
565
+ "bg-foreground text-background",
566
+ "hover:bg-foreground/90",
567
+ "active:scale-[0.98] active:bg-foreground/80"
571
568
  ],
572
569
  secondary: [
573
570
  "border border-border bg-secondary text-secondary-foreground",
@@ -636,7 +633,7 @@ var badgeVariants = cva(
636
633
  variant: {
637
634
  default: "border-border/40 bg-muted text-muted-foreground",
638
635
  primary: "border-primary/30 bg-primary/10 text-primary",
639
- accent: "border-accent/40 bg-accent/15 text-accent",
636
+ accent: "border-accent bg-accent text-accent-foreground",
640
637
  success: "border-success/40 bg-success/15 text-success",
641
638
  warning: "border-warning/40 bg-warning/15 text-warning",
642
639
  destructive: "border-destructive/40 bg-destructive/15 text-destructive",
@@ -1872,7 +1869,7 @@ var ScrollBar = forwardRef(({ className, orientation = "vertical", size = "thin"
1872
1869
  orientation,
1873
1870
  className: cn(
1874
1871
  "z-10 flex touch-none select-none p-0.5 transition-[width,height,background-color] duration-base ease-out-soft",
1875
- // hover state slightly lifts the track with a near-invisible violet wash
1872
+ // hover state slightly lifts the track with a near-invisible wash of the brand color
1876
1873
  "hover:bg-primary/5",
1877
1874
  orientation === "vertical" && (size === "thin" ? "h-full w-2.5 border-l border-l-transparent" : "h-full w-3 border-l border-l-transparent"),
1878
1875
  orientation === "horizontal" && (size === "thin" ? "h-2.5 w-full flex-col border-t border-t-transparent" : "h-3 w-full flex-col border-t border-t-transparent"),
@@ -5873,7 +5870,7 @@ var LoginSplit = forwardRef(
5873
5870
  {
5874
5871
  className: cn(
5875
5872
  "relative flex items-center justify-center px-6 py-12 lg:px-12",
5876
- "bg-dotted-violet bg-muted/60"
5873
+ "bg-dotted-brand bg-muted/60"
5877
5874
  ),
5878
5875
  children: /* @__PURE__ */ jsx("div", { className: "w-full max-w-lg", children: right })
5879
5876
  }
package/dist/preset.css CHANGED
@@ -1,26 +1,12 @@
1
1
  /* LoopScale UI — Tailwind v4 CSS preset.
2
2
  *
3
- * For consumers running their own Tailwind v4 build (TheoKit framework
4
- * path, custom Vite/Astro/Next apps with @tailwindcss/vite, etc.). The
5
- * preset pulls in:
6
- * 1. `tokens.css` — runtime `--*` vars `<ThemeProvider>` mutates per
7
- * theme cascade.
8
- * 2. `tokens-v4.css` — the `@theme { --color-*, --font-*, --text-*,
9
- * --radius-*, --shadow-*, --ease-*, --animate-* }` namespace
10
- * Tailwind v4 actually reads to generate utilities.
11
- *
12
- * Consumer usage (their entry CSS):
3
+ * For apps that run their own Tailwind v4 build and want the tokens without the base layer:
13
4
  *
14
5
  * @import "tailwindcss";
15
- * @import "@theokit/ui/preset.css";
16
- *
17
- * /* the consumer's own @theme overrides come AFTER, so they win. * /
18
- *
19
- * Tailwind v4 dropped the v3 JS preset format. The previous JS preset
20
- * remains shipped under `@theokit/ui/preset-v3-legacy` (which works only
21
- * with `tailwindcss@^3`). New v4 consumers MUST use this CSS preset.
6
+ * @import "@getloopscale/ui/preset.css";
22
7
  *
23
- * See RFC 0008 follow-up.
8
+ * It pulls `tokens.css` (the runtime variables) and `tokens-v4.css` (the `@theme` namespace
9
+ * Tailwind reads). The app's own `@theme` overrides go after the import, so they win.
24
10
  */
25
11
 
26
12
  @import "./tokens.css";
@@ -1,9 +1,9 @@
1
1
  /**
2
- * LoopScale UI Tailwind preset — Violet Forge identity.
2
+ * LoopScale UI Tailwind preset (Tailwind 3).
3
3
  *
4
4
  * Single source of truth for the design system's utility-level tokens:
5
5
  * - colors mapped to CSS variables (HSL split via `hsl(var(--x) / <alpha>)`)
6
- * - Geist-inspired typescale (display / title / body / label / code tiers)
6
+ * - typescale (display / title / body / label / code tiers)
7
7
  * - radii, shadows, motion timing & duration, keyframes
8
8
  * - tailwindcss-animate plugin
9
9
  *
@@ -7,7 +7,7 @@
7
7
 
8
8
  @layer base {
9
9
  * {
10
- border-color: hsl(var(--border));
10
+ border-color: var(--border);
11
11
  }
12
12
 
13
13
  html {
@@ -18,14 +18,11 @@
18
18
  }
19
19
 
20
20
  body {
21
- background-color: hsl(var(--background));
22
- color: hsl(var(--foreground));
23
- /* OpenType ligatures globally — Geist's "liga" feature is structural
24
- * and gives the Vercel-tight glyph combinations. */
25
- font-feature-settings: "liga" 1, "ss01" 1;
21
+ background-color: var(--background);
22
+ color: var(--foreground);
26
23
  }
27
24
 
28
- /* Display headings inherit theme display font (Geist by default).
25
+ /* Display headings inherit theme display font (Hanken Grotesk by default).
29
26
  * Per-size tracking is set in tailwind.config.ts; this is the safety net. */
30
27
  h1,
31
28
  h2,
@@ -45,19 +42,19 @@
45
42
  font-feature-settings: "tnum" 1, "liga" 1;
46
43
  }
47
44
 
48
- /* Focus ring — violet (signature) */
45
+ /* Focus ring: the brand color. */
49
46
  :focus-visible {
50
- outline: 2px solid hsl(var(--ring));
47
+ outline: 2px solid var(--ring);
51
48
  outline-offset: 2px;
52
49
  }
53
50
 
54
- /* Selection — soft violet */
51
+ /* Selection: a soft wash of the brand color. */
55
52
  ::selection {
56
- background-color: hsl(var(--primary) / 0.25);
57
- color: hsl(var(--foreground));
53
+ background-color: color-mix(in oklch, var(--primary) 25%, transparent);
54
+ color: var(--foreground);
58
55
  }
59
56
 
60
- /* Native scrollbar fallback (Violet Forge).
57
+ /* Native scrollbar fallback .
61
58
  * Used for native browser scroll on elements that don't wrap in <ScrollArea>.
62
59
  * Components that DO use <ScrollArea> hide the native scrollbar via Radix.
63
60
  */
@@ -69,20 +66,20 @@
69
66
  background: transparent;
70
67
  }
71
68
  *::-webkit-scrollbar-thumb {
72
- background-color: hsl(var(--primary) / 0.25);
69
+ background-color: color-mix(in oklch, var(--muted-foreground) 25%, transparent);
73
70
  border: 2px solid transparent;
74
71
  background-clip: content-box;
75
72
  border-radius: 9999px;
76
73
  transition: background-color var(--duration-fast) var(--ease-out-soft);
77
74
  }
78
75
  *::-webkit-scrollbar-thumb:hover {
79
- background-color: hsl(var(--primary) / 0.5);
76
+ background-color: color-mix(in oklch, var(--muted-foreground) 50%, transparent);
80
77
  }
81
78
  *::-webkit-scrollbar-thumb:active {
82
- background-color: hsl(var(--primary) / 0.75);
79
+ background-color: color-mix(in oklch, var(--muted-foreground) 75%, transparent);
83
80
  }
84
81
  * {
85
82
  scrollbar-width: thin;
86
- scrollbar-color: hsl(var(--primary) / 0.3) transparent;
83
+ scrollbar-color: color-mix(in oklch, var(--muted-foreground) 30%, transparent) transparent;
87
84
  }
88
85
  }