3.1.6 • Published 9 days ago

@shuriken-ui/nuxt v3.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
9 days ago

Shuriken UI - Nuxt

Shuriken UI is a free and open-source Tailwind CSS UI Kit. It is a collection of components and templates that you can use to build your next Tailwind CSS project.

This repository contains the Nuxt version (a layer) of Shuriken UI with ready to use components (form inputs, buttons, cards, etc.) that you can use to build your project.

Installation

pnpm install -D @shuriken-ui/nuxt

Note: This also installs the Shuriken UI Tailwind CSS package and required nuxt modules:

Usage

// nuxt.config.ts
export default defineNuxtConfig({
  extends: [
    '@shuriken-ui/nuxt'
  ]
})

Note: This is a layer and not a module, so you must extend your nuxt config with it.

Configuration

Nuxt app.config.ts

This is the app configuration for Shuriken UI components

Note: It's not a module configuration, so you must define it in app.config.ts, not in nuxt.config.ts.

export default defineAppConfig({
  /**
   * Shuriken UI layer configuration
   */
  nui: {
    /**
     * Set default properties for BaseButton component
     */
    BaseButton: {
      variant: 'pastel',
      rounded: 'md',
    },

    // ...
  },
})

Tailwind tailwind.config.ts

import { withShurikenUI } from '@shuriken-ui/tailwind'
import colors from 'tailwindcss/colors'

/**
 * Shuriken UI tailwind configuration
 */
export default withShurikenUI({
  content: [],
  theme: {
    /**
     * Customize fonts
     * 
     * You must load them yourself
     * (ex: with unplugin-fonts)
     */
    fontFamily: {
      sans: ['Roboto Flex', 'sans-serif'],
      heading: ['Inter', 'sans-serif'],
      alt: ['Karla', 'sans-serif'],
      mono: ['ui-monospace', 'monospace'],
    },
    extend: {
      /**
       * Customize colors 
       * 
       * Use tailwind predefined colors,
       * or generate your own with tools like https://tailwindshades.com
       */
      colors: {
        // Define only the ones you want to override
        muted: colors.slate,
        primary: colors.violet,
        info: colors.sky,
        success: colors.teal,
        warning: colors.amber,
        danger: colors.rose,
      },

      /**
       * Customize Shuriken UI components
       * 
       * @see https://github.com/shuriken-ui/tailwind
       */
      nui: {
        // ...
      }
    },
  },
})
3.1.6

9 days ago

3.1.5

1 month ago

3.1.4

1 month ago

3.1.3

1 month ago

3.1.2

1 month ago

3.1.1

1 month ago

3.1.0

1 month ago

3.0.6

1 month ago

3.0.5

1 month ago

3.0.4

2 months ago

3.0.3

2 months ago

3.0.1

2 months ago

3.0.0

2 months ago

3.0.0-next.1

2 months ago

3.0.0-next.0

3 months ago

2.0.2

4 months ago

2.0.1

4 months ago

2.0.0

4 months ago

2.0.0-next.7

5 months ago

2.0.0-next.6

5 months ago

2.0.0-next.4

5 months ago

2.0.0-next.5

5 months ago

2.0.0-next.3

5 months ago

2.0.0-next.2

5 months ago

2.0.0-next.0

5 months ago

2.0.0-next.1

5 months ago

1.9.6

5 months ago

1.9.5

5 months ago

1.9.4

5 months ago

1.9.3

5 months ago

1.2.0

7 months ago

1.1.1

8 months ago

1.0.2

8 months ago

1.1.0

8 months ago

1.0.1

8 months ago

1.0.0

9 months ago

1.9.1

6 months ago

1.7.3

7 months ago

1.9.0

6 months ago

1.7.2

7 months ago

1.8.0

6 months ago

1.7.1

7 months ago

1.7.0

7 months ago

1.6.1

7 months ago

1.6.0

7 months ago

1.5.0

7 months ago

1.4.1

7 months ago

1.1.4

8 months ago

1.4.0

7 months ago

1.1.3

8 months ago

1.3.0

7 months ago

1.1.2

8 months ago

1.0.0-beta.2

9 months ago

1.0.0-beta.3

9 months ago

1.9.2

6 months ago

0.3.1

10 months ago

0.3.0

11 months ago

0.2.6

1 year ago

0.2.9

12 months ago

0.2.8

12 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago