Skip to content

Using the new colors in tailwind #2970

Answered by Akshay090
Akshay090 asked this question in Help
Discussion options

You must be logged in to vote

lol, I figured it out. I did it like this.

const colors = require("tailwindcss/colors");

module.exports = {
  purge: ["./components/**/*.{js,ts,jsx,tsx}", "./pages/**/*.{js,ts,jsx,tsx}"],
  darkMode: false, // or 'media' or 'class'
  theme: {
    colors: {
      ...colors,
    },
    extend: {
    },
  },
  variants: {
    extend: {},
  },
  plugins: [],
};

If someone can validate it then it would be helpful.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Akshay090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant