Get Started

Installation

Learn how to install and set up Kuina UI in your Nuxt or Vue application.
Use the Nuxt / Vue switch in the header to show the steps for your framework.

Requirements

  • Nuxt 4
  • Tailwind CSS v4
  • Vue 3.5 or later
  • Tailwind CSS v4

Setup

Install Kuina UI and Tailwind CSS

npm install @kuina-ui/vue tailwindcss

Add the Kuina UI module to nuxt.config.ts

nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@kuina-ui/vue/nuxt']
})

Import Tailwind CSS and Kuina UI in main.css

@import "tailwindcss";
@import "@kuina-ui/vue";

Set the theme in app.vue

app/app.vue
<script setup lang="ts">
useHead({
  htmlAttrs: { 'data-theme': 'light' }
})
</script>

<template>
  <NuxtPage />
</template>

Use a component, no import needed

app/pages/index.vue
<template>
  <KButton>Save</KButton>
</template>

Install Kuina UI, Tailwind CSS and its Vite plugin

npm install @kuina-ui/vue tailwindcss @tailwindcss/vite

Add the Tailwind CSS plugin to vite.config.ts

vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite'

export default defineConfig({
  plugins: [vue(), tailwindcss()]
})

Import Tailwind CSS and Kuina UI in your stylesheet

@import "tailwindcss";
@import "@kuina-ui/vue";

Set the theme in index.html

index.html
<html lang="en" data-theme="light">

Import and use a component

src/App.vue
<script setup lang="ts">
import { KButton } from '@kuina-ui/vue'
</script>

<template>
  <KButton>Save</KButton>
</template>

Themes

Kuina UI comes in a light and a dark theme. The data-theme attribute on <html> picks it: set it to light or dark, and every component follows, along with the light: and dark: variants in your own classes.

Copyright © 2026