Custom colors in UI
Custom Colors in UI
1. Add custom theme colors
Start by extending the Tailwind theme with the raw color tokens.
export default {
theme: {
extend: {
colors: {
// Add the colors here...
},
},
},
}
There should be 14 new colors added to the theme:
tealpurplegrey-0grey-5grey-10grey-20grey-30grey-40grey-50grey-60grey-70grey-80grey-90grey-100
2. Replace the colors in the UI
Update the UI to use the color tokens to match the design.
Remember, we'll change to semantic design tookens later — but let's get the UI right first with these new colors in place.