-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Resources:
- Use getStyleById() to get a paint style (reference)
- PaintStyle API
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',
},
},
}Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request