@lindaui/tokens 0.3.0 → 0.4.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 +41 -1
- package/dist/index.css +3042 -1282
- package/dist/lead-converter.css +14493 -0
- package/llms.txt +12 -0
- package/package.json +12 -5
- package/src/heroui.css +2 -0
- package/src/lead-converter.css +58 -0
package/llms.txt
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
10
|
+
The migration stylesheet entries and utility layer require tokens >=0.4.0.
|
|
11
|
+
UI/blocks 0.5.0 declare this floor; tokens 0.3.1 does not provide these entries.
|
|
12
|
+
|
|
10
13
|
```bash
|
|
11
14
|
pnpm add @lindaui/tokens
|
|
12
15
|
```
|
|
@@ -83,5 +86,14 @@ Toggle with `document.documentElement.dataset.theme = "ocean"` + the `.dark` cla
|
|
|
83
86
|
apps that run their own Tailwind pass and need the custom utilities to resolve there too;
|
|
84
87
|
normal consumers never import this.
|
|
85
88
|
- `@lindaui/tokens/theme-template.css` → commented theme template to copy (not imported).
|
|
89
|
+
- `@lindaui/tokens/heroui.css` → HeroUI defaults only; import after Tailwind.
|
|
90
|
+
- `@lindaui/tokens/lead-converter.css` → Tailwind source entry: HeroUI defaults +
|
|
91
|
+
original violet light/dark accents, field border/background, notice CTAs and
|
|
92
|
+
scrollbars. Does NOT inherit teal tokens or the 18px root font size. Import
|
|
93
|
+
after `tailwindcss`, instead of `@heroui/styles`, and scan app + ui/blocks
|
|
94
|
+
`dist`/`src` via relative `@source` paths to their installed node_modules paths.
|
|
95
|
+
- `@lindaui/tokens/lead-converter/compiled.css` → standalone prebuilt variant
|
|
96
|
+
including library utilities for apps without Tailwind. Never combine it with
|
|
97
|
+
source `/lead-converter.css`, `/css`, or another compiled Tailwind bundle.
|
|
86
98
|
- No JS entry point. `@lindaui/ui` and `@lindaui/blocks` declare this as a peer.
|
|
87
99
|
- If a layout looks unstyled ("just text"), the consumer usually forgot the `/css` import.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lindaui/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Brand design tokens (OKLCH light/dark) + HeroUI v3 + Tailwind v4 compiled into a single CSS bundle.",
|
|
5
5
|
"author": "Franco Carballar <francocarballar@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,12 +27,16 @@
|
|
|
27
27
|
"exports": {
|
|
28
28
|
"./css": "./dist/index.css",
|
|
29
29
|
"./theme.css": "./src/theme.css",
|
|
30
|
+
"./heroui.css": "./src/heroui.css",
|
|
31
|
+
"./lead-converter.css": "./src/lead-converter.css",
|
|
32
|
+
"./lead-converter/compiled.css": "./dist/lead-converter.css",
|
|
30
33
|
"./theme-template.css": "./theme-template.css",
|
|
31
34
|
"./package.json": "./package.json"
|
|
32
35
|
},
|
|
33
36
|
"files": [
|
|
34
37
|
"dist",
|
|
35
|
-
"
|
|
38
|
+
"!dist/.build-css-*",
|
|
39
|
+
"src",
|
|
36
40
|
"LICENSE",
|
|
37
41
|
"README.md",
|
|
38
42
|
"llms.txt",
|
|
@@ -41,10 +45,13 @@
|
|
|
41
45
|
"sideEffects": [
|
|
42
46
|
"*.css"
|
|
43
47
|
],
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@heroui/styles": "3.2.6"
|
|
50
|
+
},
|
|
44
51
|
"devDependencies": {
|
|
45
|
-
"
|
|
46
|
-
"@tailwindcss/cli": "^4.
|
|
47
|
-
"
|
|
52
|
+
"@heroui/react": "^3.2.6",
|
|
53
|
+
"@tailwindcss/cli": "^4.3.3",
|
|
54
|
+
"tailwindcss": "^4.3.3"
|
|
48
55
|
},
|
|
49
56
|
"scripts": {
|
|
50
57
|
"build": "node scripts/build-css.mjs",
|
package/src/heroui.css
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@import "./heroui.css";
|
|
2
|
+
@custom-variant dark (&:is(.dark *));
|
|
3
|
+
|
|
4
|
+
/* LeadConverter preserves HeroUI defaults except for these existing overrides.
|
|
5
|
+
Deliberately does not import the default Lindaui teal theme. */
|
|
6
|
+
:root,
|
|
7
|
+
.light,
|
|
8
|
+
[data-theme="light"] {
|
|
9
|
+
--accent: oklch(0.541 0.281 293.009);
|
|
10
|
+
--accent-foreground: oklch(1 0 0);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.dark,
|
|
14
|
+
[data-theme="dark"] {
|
|
15
|
+
--accent: oklch(0.606 0.25 292.717);
|
|
16
|
+
--accent-foreground: oklch(1 0 0);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:root,
|
|
20
|
+
.light,
|
|
21
|
+
.dark,
|
|
22
|
+
[data-theme="light"],
|
|
23
|
+
[data-theme="dark"] {
|
|
24
|
+
--field-border-width: 1px;
|
|
25
|
+
--field-border: color-mix(
|
|
26
|
+
in oklab,
|
|
27
|
+
var(--muted) 34%,
|
|
28
|
+
var(--surface-secondary)
|
|
29
|
+
);
|
|
30
|
+
--field-background: var(--surface-secondary);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.notice-action.button--primary {
|
|
34
|
+
--button-bg: color-mix(in oklab, var(--accent) 92%, black);
|
|
35
|
+
--button-bg-hover: color-mix(in oklab, var(--accent) 85%, black);
|
|
36
|
+
--button-bg-pressed: var(--button-bg-hover);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.notice-action.button--danger {
|
|
40
|
+
--button-bg: color-mix(in oklab, var(--danger) 80%, black);
|
|
41
|
+
--button-bg-hover: color-mix(in oklab, var(--danger) 72%, black);
|
|
42
|
+
--button-bg-pressed: var(--button-bg-hover);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@layer utilities {
|
|
46
|
+
::-webkit-scrollbar {
|
|
47
|
+
width: 6px;
|
|
48
|
+
height: 8px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
::-webkit-scrollbar-track {
|
|
52
|
+
background: transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
::-webkit-scrollbar-thumb {
|
|
56
|
+
@apply bg-muted/70 rounded-full hover:bg-muted transition-colors;
|
|
57
|
+
}
|
|
58
|
+
}
|