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

[FEATURE] enable css-vars and skeleton build #108

Merged
merged 12 commits into from
Feb 10, 2020
Merged

[FEATURE] enable css-vars and skeleton build #108

merged 12 commits into from
Feb 10, 2020

Conversation

petermuessig
Copy link
Contributor

@petermuessig petermuessig commented Dec 31, 2019

Enable CSS variables support:
https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties

can be enabled via compiler option cssVars

@claassistantio
Copy link

claassistantio commented Dec 31, 2019

CLA assistant check
All committers have signed the CLA.

add simple and complex scenario.
complex scenario has more than one variable and nesting.
Copy link
Member

@matz3 matz3 left a comment

Choose a reason for hiding this comment

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

Looks good to me in general, great work 👍

README.md Outdated Show resolved Hide resolved
lib/index.js Outdated Show resolved Hide resolved
lib/index.js Show resolved Hide resolved
lib/index.js Outdated Show resolved Hide resolved
@petermuessig
Copy link
Contributor Author

Ah - ok - I will also incorporate your feedback. For now I introduced a library scope for the dynamic variables. This ensures no duplicates across the libraries which could happen in theory. A scoping per theme is not needed as they are not mixed.

@petermuessig
Copy link
Contributor Author

Comments are incorporated!

@petermuessig
Copy link
Contributor Author

One last thing is to avoid the redundancies in the CSS variables list - let's discuss this briefly...

lib/index.js Outdated Show resolved Hide resolved
lib/plugin/css-variables-collector.js Outdated Show resolved Hide resolved
lib/plugin/css-variables-collector.js Outdated Show resolved Hide resolved
lib/index.js Outdated Show resolved Hide resolved
lib/index.js Outdated Show resolved Hide resolved
@matz3 matz3 merged commit e6d8503 into master Feb 10, 2020
@matz3 matz3 deleted the feature-cssvars branch February 10, 2020 16:19
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.

None yet

4 participants