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

Using CSS variables in Mobi.css v3 #79

Open
xcatliu opened this issue Feb 16, 2017 · 2 comments
Open

Using CSS variables in Mobi.css v3 #79

xcatliu opened this issue Feb 16, 2017 · 2 comments

Comments

@xcatliu
Copy link
Member

xcatliu commented Feb 16, 2017

After some investigating, I think maybe it's time to use css variables in Mobi.css@2.0.0

First of all, css variables is the future of css. It's already drafted three years ago, and most of modern browsers supports it. There is a demo here.

Secondly, for me, the most useful feature of SASS is variables. Css variables not only extends the all function of SASS variables, but also has some exciting features. Such as scoping, calculating and re-rendering in time.

Last, using css variables can bring us a comfortable way to customizing themes, just need to override some variables. No more compiling!

@xcatliu xcatliu added this to the v2.0.0 milestone Feb 16, 2017
@xcatliu
Copy link
Member Author

xcatliu commented Feb 16, 2017

@xcatliu xcatliu removed this from the v2.0.0 milestone Feb 25, 2017
@xcatliu xcatliu changed the title Using CSS variables in Mobi.css@2.0.0 Using CSS variables in Mobi.css v3 Feb 25, 2017
@xcatliu
Copy link
Member Author

xcatliu commented Feb 25, 2017

It's too risky to use css variables now, let's put it in the v3

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

No branches or pull requests

1 participant