@nersh/render 0.2.3 → 0.2.5
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 +17 -3
- package/dist/index.cjs +37105 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +1154 -0
- package/dist/index.d.ts +1154 -0
- package/dist/index.mjs +37115 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -9,15 +9,17 @@ Used internally by projects scaffolded with `npm create nersh@latest`.
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npm install @nersh/render
|
|
12
|
+
npm install @nersh/render react react-dom
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
`@nersh/render` declares three runtime dependencies (`clsx`, `tailwind-merge`, `embla-carousel-react`), so npm installs them automatically. The peers below are the packages a consumer's own sections may need, install the ones your sections actually use. Tailwind classes come from your own build, not from the package, via the `@source "../node_modules/@nersh/render/dist"` directive described in Tailwind v4 setup below.
|
|
16
|
+
|
|
15
17
|
### Peer dependencies
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
Sections built on the full component library may need these too:
|
|
18
20
|
|
|
19
21
|
```bash
|
|
20
|
-
npm install react react-dom
|
|
22
|
+
npm install react react-dom lucide-react motion recharts class-variance-authority cobe zod @base-ui/react @calcom/embed-react shadcn
|
|
21
23
|
```
|
|
22
24
|
|
|
23
25
|
Projects created with `create-nersh` include all of these automatically.
|
|
@@ -109,7 +111,19 @@ Set via `skinId` in `site.json`.
|
|
|
109
111
|
|
|
110
112
|
---
|
|
111
113
|
|
|
114
|
+
## Dark mode
|
|
115
|
+
|
|
116
|
+
A skin's dark values ship under a `.dark` class selector, the shadcn convention: something needs to add `class="dark"` to `<html>` (by hand, or with a library like `next-themes`) before they take effect. Hosted nertia.ai pages do not use this convention. They switch on `prefers-color-scheme` instead, so a project built on `@nersh/render` with no `.dark` toggle wired up renders light only, even on a system set to dark.
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
112
120
|
## Related
|
|
113
121
|
|
|
114
122
|
- [`create-nersh`](https://www.npmjs.com/package/create-nersh) — scaffold a full site with `npm create nersh@latest`
|
|
115
123
|
- [nertia.ai](https://nertia.ai) — browser-based builder that writes the same `site.json` format
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Changelog
|
|
128
|
+
|
|
129
|
+
- 0.2.5: declares `tailwind-merge`, `clsx`, and `embla-carousel-react`; 0.2.4 required installing them by hand
|