yeun / open-color

Color scheme for UI design.
https://yeun.github.io/open-color/
MIT License
5.27k stars 239 forks source link

can you generator the colors for css style directly? #35

Closed yeluolei closed 7 years ago

yeluolei commented 7 years ago

It will be very convenient to use if there is some css style generated directly including

background-color color border fill stroke

makepanic commented 7 years ago

could you elaborate on what you want to have? Should there be a css file that contains classnames that enable open-color colors, background-colors, border-colors, fill, stroke, ...?

The problem i have with pregenerated classnames is that they could collide with existing project css conventions (bem, oocss, ...).

lukasoppermann commented 7 years ago

Also you have css variables, why would you need classes like border-lime-8? This goes hugely against OOCSS best practises as you would have tons of classes on every element.

yeluolei commented 7 years ago

yes, you guys are right. I changed my build to scss, and there is no problem now~ thank you !