@tollerud/ui 4.0.3 → 4.0.4

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/AGENTS.md CHANGED
@@ -39,10 +39,10 @@ npm install @tollerud/footer
39
39
  ```css
40
40
  /* app/globals.css */
41
41
  @import "@tollerud/ui/globals.css";
42
- @source "../node_modules/@tollerud/ui/dist";
42
+ @import "@tollerud/ui/source.css";
43
43
  ```
44
44
 
45
- Adjust `@source` relative to your CSS file. Without it, classes used only inside `@tollerud/ui` dist may be purged.
45
+ `source.css` resolves `@source` inside the installed package (npm, pnpm, workspaces, Bun). Without it, classes used only inside `@tollerud/ui` dist may be purged.
46
46
 
47
47
  **Optional preset shim** — extra utilities from `@tollerud/ui/preset`:
48
48
 
package/CHANGELOG.md CHANGED
@@ -7,6 +7,34 @@
7
7
  • Never write bold mid-paragraph as a heading substitute — it merges into surrounding text
8
8
  -->
9
9
 
10
+ ## 4.0.4 — 2026-06-10 — Export verification and source.css
11
+
12
+ Patch release: verifies all subpath exports in CI, adds package-owned Tailwind scanning, and expands install docs.
13
+
14
+ ### Added
15
+
16
+ - `@tollerud/ui/source.css` — package-owned `@source` for `dist` scanning (npm, pnpm, workspaces, Bun)
17
+ - `test:subpath` now checks all 70 manifest entries (`dist/{name}.js` + `.d.ts`)
18
+ - `test:package` runs attw against every public subpath export
19
+
20
+ ### Changed
21
+
22
+ - Recommended Tailwind v4 setup: `@import "@tollerud/ui/source.css"` after `globals.css`
23
+ - `GETTING_STARTED.md` — monorepo `@source` path table, footer-only minimal install
24
+ - `tailwind.css` re-exports `source.css` for one-import convenience
25
+ - Docs site getting-started page updated for `source.css`
26
+
27
+ ### Migration
28
+
29
+ Replace manual `@source "../node_modules/@tollerud/ui/dist"` with:
30
+
31
+ ```css
32
+ @import "@tollerud/ui/globals.css";
33
+ @import "@tollerud/ui/source.css";
34
+ ```
35
+
36
+ ---
37
+
10
38
  ## 4.0.3 — 2026-06-09 — Publish pipeline hardening
11
39
 
12
40
  Patch release: aligns npm publish with `validate`, fixes preset export shape, enables provenance via OIDC, and fixes `@tollerud/footer` CI build.
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Install
4
4
 
5
+ ### Full design system
6
+
7
+ Copy-paste — installs `@tollerud/ui` and all required peers:
8
+
5
9
  ```bash
6
10
  npm install @tollerud/ui clsx tailwind-merge tailwindcss@4 \
7
11
  @radix-ui/react-dialog @radix-ui/react-dropdown-menu @radix-ui/react-progress \
@@ -17,17 +21,54 @@ As of **v2.0.0**, Radix, Lucide, Framer Motion, and Sonner are **required peer d
17
21
  npm install @paper-design/shaders-react
18
22
  ```
19
23
 
24
+ ### Footer only (minimal)
25
+
26
+ If you only need the branded footer — no Tailwind, Radix, or other design-system peers:
27
+
28
+ ```bash
29
+ npm install @tollerud/footer
30
+ ```
31
+
32
+ ```tsx
33
+ import { Footer } from '@tollerud/footer'
34
+
35
+ <Footer />
36
+ ```
37
+
38
+ `@tollerud/footer` bundles `clsx` and `tailwind-merge` as dependencies. Use `@tollerud/ui` when you need the full component set.
39
+
20
40
  ---
21
41
 
22
42
  ## Tailwind Setup (v4)
23
43
 
44
+ **Recommended** — package-owned `@source` (works with npm, pnpm, Yarn workspaces, and Bun):
45
+
24
46
  ```css
25
47
  /* app/globals.css */
26
48
  @import "@tollerud/ui/globals.css";
49
+ @import "@tollerud/ui/source.css";
50
+ ```
51
+
52
+ `globals.css` bundles Tailwind v4, design tokens, and all component layer styles. `source.css` points Tailwind at the installed package `dist` folder so component utility classes are not purged — no fragile `../node_modules` paths.
53
+
54
+ ### Manual `@source` path (monorepos / custom layouts)
55
+
56
+ If you prefer an explicit path, resolve it **relative to your CSS file** to `node_modules/@tollerud/ui/dist`:
57
+
58
+ | Layout | Example CSS file | `@source` path |
59
+ |--------|------------------|----------------|
60
+ | Next.js App Router (default) | `app/globals.css` | `../node_modules/@tollerud/ui/dist` |
61
+ | `src/` app dir | `src/app/globals.css` | `../../node_modules/@tollerud/ui/dist` |
62
+ | Turborepo / npm workspace app | `apps/web/app/globals.css` | `../../../node_modules/@tollerud/ui/dist` |
63
+ | pnpm (package in workspace) | `app/globals.css` | Prefer `@import "@tollerud/ui/source.css"` — hoisting varies |
64
+ | Bun | `app/globals.css` | Prefer `@import "@tollerud/ui/source.css"` |
65
+
66
+ ```css
67
+ @import "@tollerud/ui/globals.css";
27
68
  @source "../node_modules/@tollerud/ui/dist";
28
69
  ```
29
70
 
30
- `globals.css` bundles Tailwind v4, design tokens, and all component layer styles. Point `@source` at the package `dist` folder relative to your CSS file so component utility classes are not purged.
71
+ If styles disappear in production, the `@source` path is wrong switch to `@tollerud/ui/source.css` or fix the relative path.
31
72
 
32
73
  **Optional preset shim** — for extra theme tokens from `@tollerud/ui/preset` (`tollerud-preset.cjs`):
33
74
 
@@ -42,7 +83,7 @@ export default { presets: [tollerudPreset] }
42
83
  @config "./tailwind.config.ts";
43
84
  @import "@tollerud/ui/tokens.css";
44
85
  @import "@tollerud/ui/globals-layers.css";
45
- @source "../node_modules/@tollerud/ui/dist";
86
+ @import "@tollerud/ui/source.css";
46
87
  ```
47
88
 
48
89
  ### Tailwind v3 (legacy)
package/README.md CHANGED
@@ -42,14 +42,14 @@ As of **v2.0.0**, Radix primitives, Lucide, Framer Motion, and Sonner are **peer
42
42
  npm install @paper-design/shaders-react
43
43
  ```
44
44
 
45
- **CSS** — one import in `app/globals.css` (Tailwind v4 + tokens + component classes):
45
+ **CSS** — two imports in `app/globals.css` (Tailwind v4 + tokens + component class scanning):
46
46
 
47
47
  ```css
48
48
  @import '@tollerud/ui/globals.css';
49
- @source '../node_modules/@tollerud/ui/dist';
49
+ @import '@tollerud/ui/source.css';
50
50
  ```
51
51
 
52
- Adjust the `@source` path relative to your CSS file so it resolves to `node_modules/@tollerud/ui/dist`.
52
+ `source.css` resolves `@source` inside the installed package works with npm, pnpm, Yarn workspaces, and Bun. See [GETTING_STARTED.md](GETTING_STARTED.md) for manual `@source` paths in monorepos.
53
53
 
54
54
  **Optional preset shim** — if you need utilities from `@tollerud/ui/preset` beyond what `tokens.css` provides:
55
55
 
@@ -64,7 +64,7 @@ export default { presets: [tollerudPreset] }
64
64
  @config './tailwind.config.ts';
65
65
  @import '@tollerud/ui/tokens.css';
66
66
  @import '@tollerud/ui/globals-layers.css';
67
- @source '../node_modules/@tollerud/ui/dist';
67
+ @import '@tollerud/ui/source.css';
68
68
  ```
69
69
 
70
70
  **Tailwind v3 (legacy)** — preset in `tailwind.config.ts` plus `@tollerud/ui/globals-v3.css`:
package/SKILL.md CHANGED
@@ -27,7 +27,7 @@ Apply the Tailwind preset when you need extra utilities from `@tollerud/ui/prese
27
27
  ```css
28
28
  /* app/globals.css — Tailwind v4 (default) */
29
29
  @import "@tollerud/ui/globals.css";
30
- @source "../node_modules/@tollerud/ui/dist";
30
+ @import "@tollerud/ui/source.css";
31
31
  ```
32
32
 
33
33
  As of **v1.4.0**, charts (`BarChart`, `AreaChart`, `Donut`, `Sparkline`) and marketing blocks (`HeroBlock`, `FeatureCard`, `CTABand`) ship in the package. As of **v1.3.0**, `@tollerud/ui/globals.css` is the Tailwind v4 entry. Tailwind colors are under `tollerud.*` only (`text-tollerud-yellow`, `bg-tollerud-surface-raised`, etc.) — not `tia-*`.
package/globals.css CHANGED
@@ -4,7 +4,7 @@
4
4
  Usage in app/globals.css:
5
5
 
6
6
  @import '@tollerud/ui/globals.css';
7
- @source '../node_modules/@tollerud/ui/dist';
7
+ @import '@tollerud/ui/source.css';
8
8
 
9
9
  Optional preset shim (extra theme tokens from tollerud-preset.cjs):
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tollerud/ui",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Tollerud User Interface — dark, monochrome + yellow accent. Noir aesthetic meets modern utility.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -32,6 +32,7 @@
32
32
  "./globals-v3.css": "./globals-v3.css",
33
33
  "./globals-layers.css": "./globals-layers.css",
34
34
  "./tailwind.css": "./tailwind.css",
35
+ "./source.css": "./source.css",
35
36
  "./tokens.css": "./tokens.css",
36
37
  "./preset": "./tollerud-preset.cjs",
37
38
  "./brand/tollerud-logo.svg": "./brand/tollerud-logo.svg",
@@ -52,6 +53,7 @@
52
53
  "globals-v3.css",
53
54
  "globals-layers.css",
54
55
  "tailwind.css",
56
+ "source.css",
55
57
  "tokens.css",
56
58
  "tollerud-preset.cjs",
57
59
  "GETTING_STARTED.md",
package/source.css ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Tailwind v4 — scan @tollerud/ui dist for component utility classes.
3
+ *
4
+ * Import in app/globals.css after globals.css:
5
+ *
6
+ * @import "@tollerud/ui/globals.css";
7
+ * @import "@tollerud/ui/source.css";
8
+ *
9
+ * Paths resolve inside the installed package — works with npm, pnpm, Yarn
10
+ * workspaces, and Bun without fragile ../node_modules relative paths.
11
+ */
12
+ @source "./dist";
package/tailwind.css CHANGED
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * Convenience entry for Tailwind v4 consumers.
3
- * Re-exports globals + documents the @source path for class scanning.
3
+ * Re-exports globals + source scanning in one import.
4
4
  */
5
5
  @import "./globals.css";
6
-
7
- /* In your app globals.css, add after this import:
8
- @source "../node_modules/@tollerud/ui/dist";
9
- */
6
+ @import "./source.css";