Back to Windicss

Colors

utilities/general/colors.md

latest534 B
Original Source

Colors

<ColorsPalette />

Customization

ts
export default {
  theme: {
    colors: {
      // Configure your color palette here
    },
  },
}

Reuse Colors

All the colors from the palette are enabled by default. If you want to set alias or reuse some colors from the palette, you can import them from windicss/colors module.

ts
import colors from 'windicss/colors'

export default {
  theme: {
    extend: {
      colors: {
        grey: colors.gray,
      },
    },
  },
}