Skip to content

Conversation

@petemill
Copy link
Member

@petemill petemill commented Aug 7, 2022

So that colors may be used with custom opacity at the point of use. The new variables have the suffix "-rgb"

…ction call

So that colors may be used with custom opacity at the point of use. The new variables have the suffix "-rgb"
@petemill petemill requested a review from AlanBreck August 7, 2022 22:06
@petemill petemill self-assigned this Aug 7, 2022
const rgbEnd = ')'
if (token.value && token.value.startsWith(rgbStart) && token.value.endsWith(rgbEnd)) {
const newToken = { ...token }
newToken.value = token.value.slice(rgbStart.length).slice(0, rgbEnd.length * -1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why I've used 2 slices here!

@petemill
Copy link
Member Author

petemill commented Aug 10, 2022

Evaluate these as part of consideration for including this:

If this is a blocker for immediate consumption then we can merge and iron out details later.

As part of evaluation include react and styled-components and minimal tailwind that can use theme function in the example webpack app and show Douglas / wallet team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants