Skip to content

Feature/simplify and add word colors#174

Merged
thinkjrs merged 8 commits intodevelopfrom
feature/simplify-and-add-word-colors
Sep 20, 2023
Merged

Feature/simplify and add word colors#174
thinkjrs merged 8 commits intodevelopfrom
feature/simplify-and-add-word-colors

Conversation

@thinkjrs
Copy link
Copy Markdown
Member

@thinkjrs thinkjrs commented Sep 20, 2023

This adds basic color extensibility to the button for clients.

Now users can specify word colors when rendering the PromoButton as a prop, e.g.:

<PromoButton
  logoSrc=""
  words={['Super', 'Easy', 'Ads']}
  wordColors={['red', 'slate', 'blue']}
  shape="square"
  email="j.doe@example.com"
  backend="/api/promo"
/>

Current color choices include

  • "gray",
  • "slate",
  • "red",
  • "indigo",
  • "blue",
  • "green",
  • "yellow",
  • "orange",
  • "violet"

@thinkjrs thinkjrs added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 20, 2023
@thinkjrs thinkjrs self-assigned this Sep 20, 2023
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 20, 2023

size-limit report 📦

Path Size
dist/promo-button.cjs.production.min.js 74.46 KB (+0.38% 🔺)
dist/promo-button.esm.js 58.9 KB (+0.52% 🔺)

@thinkjrs thinkjrs merged commit 12c7a70 into develop Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant