Skip to content

I cannot change the theme's default primary color #1920

Discussion options

You must be logged in to vote

You can change it inside the tailwind-config.js file. For example:

module.exports = {
...
  theme: {
    extend: {
      colors: {
        primary: {
          DEFAULT: "#FF0000",
          50: "#F1F5FB",
          100: "#E3EBF7",
          200: "#C7D7F0",
          300: "#ABC2E8",
          400: "#8FAEE0",
          500: "#6590D5",
          600: "#3061AF",
          700: "#285192",
          800: "#204075",
          900: "#183058",
          "accent-100": "#d9e4f3",
          "accent-200": "#cedbee",
        },
      },
    },
  },
...
};

In this example, I've changed the default primary color to red resulting for example for the datepicker to have red header:

Don't forget to change …

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@memiljamel
Comment options

@juujisai
Comment options

Answer selected by cheulong
Comment options

You must be logged in to vote
3 replies
@juujisai
Comment options

@aguiagui5
Comment options

@juujisai
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants