Resources:
Thoughts:
- Probably not much use in HTML + inline CSS
- For JS + inline CSS, we can create a string variable from the paint style, then use it whenever the color needs to be used. For example:
const blue = "#235EE7";
// inside the component...
<div style={{ color: blue, /* other styles */}}>Title</div>
- For JS/HTML + Tailwind CSS, we can add the colors into
tailwind.config.js:
module.exports = {
theme: {
colors: {
'blue': '#235EE7',
},
},
}
Resources:
Thoughts:
tailwind.config.js: