@lindaui/tokens 0.3.1 → 0.4.1
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 +57 -1
- package/dist/index.css +1518 -74
- package/dist/lead-converter.css +14493 -0
- package/llms.txt +28 -0
- package/package.json +30 -5
- package/src/heroui.css +2 -0
- package/src/lead-converter.css +58 -0
- package/src/style.d.ts +2 -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,30 @@ 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.
|
|
100
|
+
|
|
101
|
+
## Agent integration skill
|
|
102
|
+
|
|
103
|
+
For UI implementation, use the portable `lindaui` Agent Skill from
|
|
104
|
+
https://github.com/francocarballar/lindaui/tree/main/skills/lindaui .
|
|
105
|
+
Install with `npx skills add francocarballar/lindaui --skill lindaui`.
|
|
106
|
+
Its Node CLI supports Windows, macOS and Linux and reads the consumer-installed
|
|
107
|
+
API: doctor, api, setup, theme, scaffold, activate and check. Mutation commands
|
|
108
|
+
produce plans by default. Use activate when adopting LindaUI for all UI tasks.
|
|
109
|
+
Always prefer this installed package's exports, types and llms.txt over newer
|
|
110
|
+
unpublished GitHub APIs. See the skill for setup, recipes and verification.
|
|
111
|
+
|
|
112
|
+
CSS entries include a `types` condition pointing to the shipped `src/style.d.ts`.
|
|
113
|
+
Strict TypeScript `noUncheckedSideEffectImports` resolves the extensionless
|
|
114
|
+
`@lindaui/tokens/css` import without a consumer ambient declaration. Runtime
|
|
115
|
+
CSS targets remain unchanged; import styles once at the application root.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lindaui/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
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",
|
|
@@ -25,14 +25,36 @@
|
|
|
25
25
|
},
|
|
26
26
|
"type": "module",
|
|
27
27
|
"exports": {
|
|
28
|
-
"./css":
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
"./css": {
|
|
29
|
+
"types": "./src/style.d.ts",
|
|
30
|
+
"default": "./dist/index.css"
|
|
31
|
+
},
|
|
32
|
+
"./theme.css": {
|
|
33
|
+
"types": "./src/style.d.ts",
|
|
34
|
+
"default": "./src/theme.css"
|
|
35
|
+
},
|
|
36
|
+
"./heroui.css": {
|
|
37
|
+
"types": "./src/style.d.ts",
|
|
38
|
+
"default": "./src/heroui.css"
|
|
39
|
+
},
|
|
40
|
+
"./lead-converter.css": {
|
|
41
|
+
"types": "./src/style.d.ts",
|
|
42
|
+
"default": "./src/lead-converter.css"
|
|
43
|
+
},
|
|
44
|
+
"./lead-converter/compiled.css": {
|
|
45
|
+
"types": "./src/style.d.ts",
|
|
46
|
+
"default": "./dist/lead-converter.css"
|
|
47
|
+
},
|
|
48
|
+
"./theme-template.css": {
|
|
49
|
+
"types": "./src/style.d.ts",
|
|
50
|
+
"default": "./theme-template.css"
|
|
51
|
+
},
|
|
31
52
|
"./package.json": "./package.json"
|
|
32
53
|
},
|
|
33
54
|
"files": [
|
|
34
55
|
"dist",
|
|
35
|
-
"
|
|
56
|
+
"!dist/.build-css-*",
|
|
57
|
+
"src",
|
|
36
58
|
"LICENSE",
|
|
37
59
|
"README.md",
|
|
38
60
|
"llms.txt",
|
|
@@ -41,6 +63,9 @@
|
|
|
41
63
|
"sideEffects": [
|
|
42
64
|
"*.css"
|
|
43
65
|
],
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@heroui/styles": "3.2.6"
|
|
68
|
+
},
|
|
44
69
|
"devDependencies": {
|
|
45
70
|
"@heroui/react": "^3.2.6",
|
|
46
71
|
"@tailwindcss/cli": "^4.3.3",
|
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
|
+
}
|
package/src/style.d.ts
ADDED