back

by newusertoday·8y ago·view on hn ↗
can i use custom css element's defined in some other library in another css? e.g. I have some html say <nav> ...</nav> i have a separate css style.css which would be .nav{ <class defined in the library i am importing> } basically i don't want to spray div/classes everywhere while i am experimenting with which css lib to choose, is there any elegant way to do this?
1 comments
Use libraries that come in Sass form or figure out how you use them in a Sass-y way. In your Sass file (style.scss), write .nav { @extend .lib-nav-thing } and compile a new style.css. You won't have to touch your HTML.