Strapi.js: How to Customize the Theme Color

How to config

This customization can be done in the file configuration in your Strapi project

Why there is no change?

For this kind of config you MUST run the Strapi in development watching admin mode

How much can you config? Strapi Theme

There are plenty of color here but the main one are:

  1. Primary color primary
  2. Secondary color secondary

and it has ONLY 5 TONES on the accent colors 100,200,500,600,700

Then what you config is just concat ‘tone’ and ‘accent’ i.e.

  • primary100
  • primary200
  • secondary100
  • secondary200

For more colors you can visit

But most of the time you do not want to change the success or error color, don’t you?

What to do if you don’t have that color

Try out some random online generator as below

then generate and pick such tones

Gotchas on Button Color

You might wonder why the color of the button doesn’t change when you changing primary color.

I don’t know too. But adding buttonPrimaryXXX property does the trick !

Hope this help and see you next time !



Co-founder and Coder at work !

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store