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

css variables: additional variables for colors omitting the rgb() function call #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

1 participant