v4.0.0-beta.4

Installation

The installation process is simple and straightforward. You can install Shuriken UI in your project using the following methods.

Create a new project

Start by creating a new Nuxt project.
See nuxt.com for more information.

bash
pnpm dlx nuxi@latest init my-shuriken-app
cd my-shuriken-app

Install Shuriken UI

Install Tailwind 4 and Shuriken UI using your package manager.

bash
pnpm add -D @shuriken-ui/nuxt@next tailwindcss

Update your Nuxt configuration

Add Shuriken UI module and setup your Tailwind CSS file.

js
export default defineNuxtConfig({
  modules: [
    '@shuriken-ui/nuxt',   ],
  css: [
    '~/assets/css/main.css',   ],
})

Configure Tailwind CSS

Create a assets/css/main.css to load Tailwind and Shuriken UI theme.

css
@import 'tailwindcss';
@import '@shuriken-ui/nuxt'; 

Add Shuriken UI Providers

This will provide contexts to nested components such as toast, tooltip, etc.

vue
<template>
  <BaseProviders>     <NuxtPage />
  </BaseProviders> </template>

Theming concepts

Get the most out of Shuriken UI by exploring more concepts and features.

Setting up VSCode

If you're using VSCode, you can install the Tailwind CSS IntelliSense extension to get autocompletion for the utility classes.

Tailwind Intellisense

You can read more on how to set it up on the tailwindlabs/tailwindcss-intellisense github repository, but to summarize, you'll need to add the following to your .vscode/settings.json:

json
{
  "files.associations": {
    "*.css": "tailwindcss"
  },
  "editor.quickSuggestions": {
    "strings": true
  }
}