106 | {{ props.subtitle }} 107 |
108 |22 | {{ props.description }} 23 |
24 | {{ model }}
34 | {{ model }}
51 | 106 | {{ props.subtitle }} 107 |
108 |
2 |
6 |
11 | v3.shurikenui.com | 12 | by cssninja.io 13 |
14 | 15 | > [!IMPORTANT] 16 | > Looking for Shuriken UI v4, with tailwind v4 support? Check https://github.com/shuriken-ui/shuriken-ui 17 | 18 | --- 19 | 20 | ## Shuriken UI - Nuxt 21 | 22 | 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. 23 | 24 | This repository contains the Nuxt version (a [layer](https://nuxt.com/docs/getting-started/layers)) of Shuriken UI with ready to use components (form inputs, buttons, cards, etc.) that you can use to build your project. 25 | 26 | ## Installation 27 | 28 | ```bash 29 | pnpm install -D @shuriken-ui/nuxt 30 | ``` 31 | 32 | > **Note**: This also installs the [Shuriken UI Tailwind CSS](https://github.com/shuriken-ui/tailwind) package and required nuxt modules: 33 | > 34 | > - [@nuxtjs/tailwindcss](https://github.com/nuxt-modules/tailwindcss) 35 | > - [@nuxtjs/color-mode](https://github.com/nuxt-modules/color-mode) 36 | > - [@vueuse/nuxt](https://github.com/vueuse/vueuse/tree/main/packages/nuxt) 37 | > - [nuxt-icon](https://github.com/nuxt-modules/icon) 38 | 39 | ## Usage 40 | 41 | 42 | ```ts 43 | // nuxt.config.ts 44 | export default defineNuxtConfig({ 45 | extends: [ 46 | '@shuriken-ui/nuxt' 47 | ] 48 | }) 49 | ``` 50 | 51 | > **Note**: This is a [layer](https://nuxt.com/docs/getting-started/layers) and not a module, so you must extend your nuxt config with it. 52 | 53 | ## Configuration 54 | 55 | ### Nuxt `app.config.ts` 56 | 57 | This is the [app configuration](https://nuxt.com/docs/getting-started/configuration#app-configuration) for Shuriken UI components 58 | 59 | > **Note**: It's not a module configuration, so you must define it in `app.config.ts`, not in `nuxt.config.ts`. 60 | 61 | ```ts 62 | export default defineAppConfig({ 63 | /** 64 | * Shuriken UI layer configuration 65 | */ 66 | nui: { 67 | /** 68 | * Set default properties for BaseButton component 69 | */ 70 | BaseButton: { 71 | variant: 'pastel', 72 | rounded: 'md', 73 | }, 74 | 75 | // ... 76 | }, 77 | }) 78 | ``` 79 | 80 | 81 | ### Tailwind `tailwind.config.ts` 82 | 83 | ```ts 84 | import { withShurikenUI } from '@shuriken-ui/tailwind' 85 | import colors from 'tailwindcss/colors' 86 | 87 | /** 88 | * Shuriken UI tailwind configuration 89 | */ 90 | export default withShurikenUI({ 91 | content: [], 92 | theme: { 93 | /** 94 | * Customize fonts 95 | * 96 | * You must load them yourself 97 | * (ex: with unplugin-fonts) 98 | */ 99 | fontFamily: { 100 | sans: ['Roboto Flex', 'sans-serif'], 101 | heading: ['Inter', 'sans-serif'], 102 | alt: ['Karla', 'sans-serif'], 103 | mono: ['ui-monospace', 'monospace'], 104 | }, 105 | extend: { 106 | /** 107 | * Customize colors 108 | * 109 | * Use tailwind predefined colors, 110 | * or generate your own with tools like https://tailwindshades.com 111 | */ 112 | colors: { 113 | // Define only the ones you want to override 114 | muted: colors.slate, 115 | primary: colors.violet, 116 | info: colors.sky, 117 | success: colors.teal, 118 | warning: colors.amber, 119 | danger: colors.rose, 120 | }, 121 | 122 | /** 123 | * Customize Shuriken UI components 124 | * 125 | * @see https://github.com/shuriken-ui/tailwind 126 | */ 127 | nui: { 128 | // ... 129 | } 130 | }, 131 | }, 132 | }) 133 | ``` 134 | -------------------------------------------------------------------------------- /.playground/pages/tests/base/list.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 |