Installing class-recipe
npm install @lynstack/class-recipepnpm add @lynstack/class-recipeyarn add @lynstack/class-recipebun add @lynstack/class-recipedeno add npm:@lynstack/class-recipeIts one dependency is @lynstack/recipe.
The package is an ES module only. Bundlers and frameworks load it as it
is. In a plain Node.js script, use import, and either set
"type": "module" in your package.json or name the file .mjs or
.mts.
With Tailwind CSS, set up your editor to complete and sort the classes in your recipes.
Requirements
Section titled “Requirements”| Needs | Supported |
|---|---|
| TypeScript | 5.4 or newer |
| Runtimes | Node.js 16.9, Bun 1.0, Deno 2.0, or newer |
| Browsers | ES2022: Chrome 93, Firefox 92, Safari 15.4, or newer |
| Modules | ES modules only: import it, or require it in Bun or from Node.js 20.19, 22.12, or newer |
Every change runs each package on the oldest and the newest Node.js, Bun, and Deno in this table, and compiles its types with the oldest and the newest TypeScript.
Next steps
Section titled “Next steps”- Quick start styles a button and a card.
- Editor setup completes and sorts Tailwind CSS classes in your recipes.