Nuxt Installation

Install styleframe in a Nuxt project with the CLI, which adds the packages, a config file and, where it can, the Nuxt module. Then import the CSS.

Initialize styleframe in your project

Use the CLI to initialize styleframe in your project. Make sure you have a nuxt.config.ts file in your project root.

pnpx styleframe init
pnpm install

Using the CLI command above, it will:

  • Add all styleframe packages to your project dependencies
  • Create a new styleframe.config.ts file
  • Create or update tsconfig.json with styleframe includes
  • Add the styleframe module to Nuxt, if possible

Import styleframe in your project

Open your app.vue file and import the auto-generated virtual module:

app.vue
import 'virtual:styleframe.css';

Enjoy using styleframe

Enjoy writing modern, maintainable, composable theme files using styleframe!

Create a Design System with styleframe in under 15 minutes.


Manual Nuxt Installation Instructions

Have a custom Nuxt setup and need to install styleframe manually? Click here.