nuxt-modules / tailwindcss

Tailwind CSS module for Nuxt

Home Page:https://tailwindcss.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The following docs reference includes code that no longer works.

pmnzt opened this issue · comments

reference.

The following code

import defaultTheme from 'tailwindcss/defaultTheme'

export default {
  theme: {
    extend: {
      colors: {
        primary: defaultTheme.colors.green
      }
    }
  }
}

no longer works the output of defaultTheme.colors.green is undefined.

after researching the tailwind docs i tried this instead and it worked.

 import colors from 'tailwindcss/colors'

export default {
  theme: {
    extend: {
      colors: {
        primary: colors.green
      }
    }
  }
}

@pmnzt PR to the docs welcome!

@manniL

@pmnzt PR to the docs welcome!

Sorry for being late!
Here is the PR #788