Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support fillStyleId #76

Open
donfour opened this issue May 9, 2023 · 0 comments
Open

Support fillStyleId #76

donfour opened this issue May 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@donfour
Copy link
Contributor

donfour commented May 9, 2023

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',
    },
  },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant