Skip to content

Generate CSS variables for -colors #23446

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

Closed
wants to merge 1 commit into from
Closed

Generate CSS variables for -colors #23446

wants to merge 1 commit into from

Conversation

mdo
Copy link
Member

@mdo mdo commented Aug 15, 2017

Interesting idea proposed by #23349. We could build with Sass, but compile some utilities to help those not using our Sass-based compilation flow. I'd say we could even wrap these in conditionals to not include them unless asked for, but that'd defeat the purpose a bit.

I dunno how far we'd take this though...

@passcod
Copy link
Contributor

passcod commented Aug 15, 2017

Yay! Okay, this works great. I've tried it with postcss-custom-properties for non-Sass build usage, and also directly in the browser. Here's a GIF of the latter:

bootstrapvars

passcod added a commit to passcod/bootstrap that referenced this pull request Aug 31, 2017
@mdo mdo closed this Oct 2, 2017
@mdo mdo deleted the css-vars branch October 2, 2017 03:59
mdo pushed a commit that referenced this pull request Oct 2, 2017
* Generate CSS variables

See #23349
Supersedes #23446

* Ignore _root.scss for linting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants