@larsen-utvikling/create-next-app
v0.5.1
Published
Request create-next-app, then add the Larsen Utvikling vanilla CSS design system, agent docs, and an optional palette generated from one HEX.
Maintainers
Readme
@larsen-utvikling/create-next-app
Request create-next-app's mutable latest npm dist-tag, then add the Larsen Utvikling design system: vanilla CSS design tokens, agent docs, and an optional 12-step color palette generated from a single HEX.
No Tailwind. No CSS framework. Just tokens.
Usage
npx --yes @larsen-utvikling/create-next-app my-appor via the create alias:
npm create @larsen-utvikling/next-app my-appThe CLI requests create-next-app@latest by default. latest is a mutable npm
dist-tag, so this does not pin or guarantee the version npm resolves or its
stability. Use --cna-version <spec> to request an explicit upstream spec.
What you get
- Next.js requested through the selected create-next-app spec, with App Router, TypeScript, and
src/directory - Vanilla CSS design system at
src/lib/design-system/:core.css- spacing scale (8 steps, 4px base), max-widths, radii, type, z-indextheme.css- full light/dark color theme (auto viaprefers-color-scheme, manual override via[data-theme], zero JS)motion.css- durations, easing curves and gesture tokens, plus a reduced-motion contract that keeps feedback and drops movementbase.css- modern resetindex.css- single entry importing all of the above
- Agent docs:
AGENTS.md(project rules),CLAUDE.md(pointer), andDESIGN.md(token documentation).NEXTJS.mdpreserves upstream guidance only when create-next-app suppliesAGENTS.md - A welcome page demonstrating the tokens
- Optional custom color palette: answer one prompt with a HEX color and get a 12-step accent scale, gray scale, and semantic colors in both light and dark mode from the vendored engine.
--neutral-tint subtle|strongcontrols how much seed hue reaches the gray ramp and the tokens built on it, and leaves the accent scale unchanged for chromatic seeds. The hueless exceptions are#000000,#010101,#FEFEFE, and#FFFFFF - Optional agent skills: request entries from Larsen Skills or Jakub Antalik's
transitions-dev. Each source installs directly from its own repository, and the wrapper verifies only.agents/skills/<name>/SKILL.md
Prompts
The interactive flow asks for the app name, palette, linter, package manager, optional agent skills, git initialization and dependency installation. The generated reference below is the complete published list of choices and defaults. Maintainers use the repository's canonical CLI reference for prompt conditions, interactions, invalid pairs, and CI behavior.
CLI reference
Every prompt has a flag - useful for scripts and CI:
PACKAGE_VERSION=0.5.0 # use after this exact version is published
npx --yes "@larsen-utvikling/create-next-app@${PACKAGE_VERSION}" \
my-app --defaults --pm npmPACKAGE_VERSION=0.5.0 # use after this exact version is published
npx --yes "@larsen-utvikling/create-next-app@${PACKAGE_VERSION}" my-app \
--hex 4DA6FF --preset shadcn --format hsl-values \
--neutral-tint strong --linter eslint --pm pnpm --no-skills \
--no-git --no-install| Flag | Description |
| --- | --- |
| -d, --defaults | Skip all prompts, use defaults (no skills) |
| --default-palette | Answer No to a custom palette and use the default palette. Interactive default: no. Conflicts with --hex |
| --hex <color> | Palette seed HEX - implies a custom palette. Value must not be empty. Conflicts with --default-palette |
| --preset <name> | Palette preset: shadcn | radix | css-variables. Default: shadcn. Value must not be empty. Requires --hex |
| --format <name> | Color format: hex | rgb | hsl | hsl-values | oklab | oklch. Default: hsl-values. Value must not be empty. Requires --hex |
| --neutral-tint <name> | Neutral gray-ramp tint: subtle | strong. Default: subtle. Value must not be empty. Requires --hex |
| --pm <name> | Package manager: npm | pnpm | yarn | bun. Default: npm. Value must not be empty |
| --linter <name> | Linter: eslint | biome | none. Default: eslint. Value must not be empty |
| --skills <list> | Agent skills: recommended, all Larsen, or comma-separated names. Default with --defaults: none. Interactive default: recommended. Value must not be empty. Conflicts with --no-skills |
| --no-skills | Skip agent skill installs. Conflicts with --skills |
| --git | Initialize a git repository. Default: yes. Conflicts with --no-git |
| --no-git | Skip git init. Conflicts with --git |
| --install | Install dependencies. Default: yes. Conflicts with --no-install |
| --no-install | Skip dependency install. Conflicts with --install |
| --cna-version <spec> | Select the create-next-app version spec. Default: latest. Value must not be empty |
| -v, --version | Print version |
| -h, --help | Show this help |
Requirements
- Node.js >= 20.12.0
- Network access (fetches the selected create-next-app spec,
latestby default)
License
MIT - built by Stian Larsen - Larsen Utvikling
