8000 GitHub - nuxt/ui at v0.1.1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nuxt/ui

Repository files navigation

@nuxthq/ui

Components library as a Nuxt module using TailwindCSS.

Installation

yarn add --dev @nuxthq/ui

Then, register the module in your nuxt.config.js:

import { defineNuxtConfig } from 'nuxt'

export default defineNuxtConfig({
  buildModules: [
    '@nuxthq/ui'
  ]
})

If you want latest updates, please use @nuxthq/ui-edge in your package.json:

{
  "devDependencies": {
    "@nuxthq/ui": "npm:@nuxthq/ui-edge@latest"
  }
}

Options

  • primary

Define the primary variant. Defaults to indigo. You can specify your own object of colors like here:

Example:

import { defineNuxtConfig } from 'nuxt'

export default defineNuxtConfig({
  buildModules: [
    '@nuxthq/ui'
  ],
  ui: {
    primary: 'blue'
  }
})
  • prefix

Define the prefix of the imported components. Defaults to u.

Example:

import { defineNuxtConfig } from 'nuxt'

export default defineNuxtConfig({
  buildModules: [
    '@nuxthq/ui'
  ],
  ui: {
    prefix: 'tw'
  }
})
0