0.0.12 • Published 3 years ago

@vt7/nuxt-tailwindui v0.0.12

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

@vt7/nuxt-tailwindui

Getting started

yarn add @vt7/nuxt-tailwindui

Basic Usage

In nuxt.config.js

export default {
  ...
  components: true,
  buildModules: [
    ...
    '@vt7/nuxt-tailwindui/nuxt',
  ],
  build: {
    postcss: {
      plugins: {
        'postcss-nesting': {},
        'postcss-nested': {},
      }
    }    
  },
  tailwindUI: {
    prefix: 't',
  }
}

In tailwind.config.js

module.exports = {
  ...
  theme: {
    extend: {
        colors: {
          primary: {
            DEFAULT: colors.indigo['600'],
              focus: colors.indigo['500'],
              hover: colors.indigo['700'],
              content: colors.white,
          },
          secondary: {
            DEFAULT: colors.indigo['100'],
              focus: colors.indigo['500'],
              hover: colors.indigo['200'],
              content: colors.indigo['700'],
          },
          error: colors.red['500'],
          info: colors.blue['500'],
          warning: colors.yellow['500'],
          success: colors.green['500'],
        }
    }
  }
}

In index.vue

<template>
  <t-button color="primary" size="sm">Button base</t-button>
</template>
0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.3

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.2

3 years ago