Colors

List of color tokens available for customization.

Modify colors

If you want to customize the colors of the theme, you have to override the color tokens use in the theme system. To do that, you can use the theme.colors tailwind configuration file.

tailwind.config.js
module.exports = {
    ...,
    content: [
        "./node_modules/@andore-ui/**/*.{js,ts,jsx,tsx}",
    ],
    plugins: [
        require('@andore-ui/theme')({
            theme: {
                colors: {
                    primary: {
                        DEFAULT: '#65558F',
                    }
                }
            }
        }),
    ],
};

How does it work?

The theme system uses the color tokens to apply the colors to the components. When you override a color token, the theme system will apply the new color to the components that use that token.


For example, let's take this component and modify color:



Color tokens

The following table lists all the color tokens available in the theme system.


Token NameDescriptionDefault Value
Primary color used in the theme.
  • #65558F
  • Primary text color.
  • #FFFFFF
  • Primary container background color.
  • #EADDFF
  • Primary container text color.
  • #21005D
  • Primary color in dark mode.
  • #D0BCFE
  • Primary text color in dark mode.
  • #381E72
  • Primary container background color in dark mode.
  • #4F378B
  • Primary container text color in dark mode.
  • #EADDFF
  • Secondary color used in the theme.
  • #635B70
  • Secondary text color.
  • #FFFFFF
  • Secondary container background color.
  • #E9DEF8
  • Secondary container text color.
  • #1F182B
  • Secondary color in dark mode.
  • #CDC2DB
  • Secondary text color in dark mode.
  • #342D40
  • Secondary container background color in dark mode.
  • #4B4358
  • Secondary container text color in dark mode.
  • #E9DEF8
  • Info color used in the theme.
  • #4c5c92
  • Info text color.
  • #ffffff
  • Info container background color.
  • #dce1ff
  • Info container text color.
  • #02174b
  • Info color in dark mode.
  • #b5c4ff
  • Info text color in dark mode.
  • #1c2d61
  • Info container background color in dark mode.
  • #344479
  • Info container text color in dark mode.
  • #dce1ff
  • Success color used in the theme.
  • #00696b
  • Success text color.
  • #ffffff
  • Success container background color.
  • #9cf1f2
  • Success container text color.
  • #002020
  • Success color in dark mode.
  • #80d4d5
  • Success text color in dark mode.
  • #003737
  • Success container background color in dark mode.
  • #004f50
  • Success container text color in dark mode.
  • #9cf1f2
  • Warning color used in the theme.
  • #7c580d
  • Warning text color.
  • #ffffff
  • Warning container background color.
  • #ffdeab
  • Warning container text color.
  • #271900
  • Warning color in dark mode.
  • #efbf6d
  • Warning text color in dark mode.
  • #422c00
  • Warning container background color in dark mode.
  • #5f4100
  • Warning container text color in dark mode.
  • #ffdeab
  • Error color used in the theme.
  • #BA1A1A
  • Error text color.
  • #FFFFFF
  • Error container background color.
  • #FFDAD6
  • Error container text color.
  • #410002
  • Error color in dark mode.
  • #FFB4AB
  • Error text color in dark mode.
  • #690005
  • Error container background color in dark mode.
  • #93000A
  • Error container text color in dark mode.
  • #FFDAD6
  • Default outline color.
  • #7A757F
  • Outline variant color.
  • #CBC4CF
  • Outline color in dark mode.
  • #948F99
  • Outline variant color in dark mode.
  • #49454E
  • Default surface background color.
  • #FEF7FF
  • Default surface text color.
  • #1D1B20
  • Surface variant background color.
  • #E7E0EB
  • Surface variant text color.
  • #49454E
  • Dim surface color.
  • #DED8E0
  • Bright surface color.
  • #FEF7FF
  • Lowest level surface container background color.
  • #FFFFFF
  • Low-level surface container background color.
  • #F8F1FA
  • Default surface container background color.
  • #F2ECF4
  • High-level surface container background color.
  • #EDE6EE
  • Highest level surface container background color.
  • #E7E0E8
  • Scrim color.
  • #000000
  • Inverse surface color.
  • #322F35
  • Inverse surface text color.
  • #F5EFF7
  • Inverse primary surface color.
  • #D3BCFD
  • Default surface color in dark mode.
  • #151218
  • Default surface text color in dark mode.
  • #E7E0E8
  • Surface variant background color in dark mode.
  • #49454E
  • Surface variant text color in dark mode.
  • #CBC4CF
  • Dim surface color in dark mode.
  • #151218
  • Bright surface color in dark mode.
  • #3B383E
  • Lowest level surface container color in dark mode.
  • #0F0D13
  • Low-level surface container color in dark mode.
  • #1D1B20
  • Default surface container color in dark mode.
  • #211F24
  • High-level surface container color in dark mode.
  • #2C292F
  • Highest level surface container color in dark mode.
  • #36343A
  • Scrim color in dark mode.
  • #000000
  • Inverse surface color in dark mode.
  • #E7E0E8
  • Inverse surface text color in dark mode.
  • #322F35
  • Inverse primary surface color in dark mode.
  • #68548E