Colors not working on TailwindCSS on Rails

Viewed 4331
1 Answers

You have to add the colors cyan and light-blue (used in the default playground code) to tailwind.config.js since they don't come with the default theme.

const colors = require('tailwindcss/colors')

module.exports = {
  theme: {
    extend: {
      colors: {
        'light-blue': colors.lightBlue,
        cyan: colors.cyan,
      },
    },
  },
  variants: {},
  plugins: [],
}
Related