http://jakobloekke.github.io/tdcss.js/
In front-end development, if you can have a style guide for the design is professional stability, consistency. In the links above, there is a tdcss.js tool that can help you create a visual style guide,
Very convenient. The idea is to use that JS file to re-structure the specific section after the HTML is loaded, to form style guide.
@stop-color:red; @wait-color:orange; @go-0 30px;font-size:2em; &. Stop {background-color: @stop-color;color:contrast (@stop-color);} &. Wait {background-color: @wait-color;color:contrast (@wait-color);} &. Go {background-color: @go-color;color:contrast (@go-color);}}
<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"><title>Style Guide</title><Linkrel= "Stylesheet/less"type= "Text/css"href= "Less/buttons.less"><Scriptsrc= "Js/less.min.js"type= "Text/javascript"></Script><!--Tdcss -<Linkrel= "stylesheet"href= "Tdcss.js-master/src/tdcss.css"type= "Text/css"Media= "Screen"><Scripttype= "Text/javascript"src= "Https://code.jquery.com/jquery-2.1.1.min.js"></Script><Scripttype= "Text/javascript"src= "Tdcss.jsmaster/src/tdcss.js"></Script><Scripttype= "Text/javascript">$(function(){$("#tdcss"). Tdcss ();})</Script></Head><Body><DivID= "Tdcss"><!--# Button Styles -<!--& Collection of buttons. -<!--: Stop button -<Buttonclass= "Btn Stop">Stop</Button><!--: Wait button -<Buttonclass= "btn Wait">Wait</Button><!--: Go button -<Buttonclass= "Btn Go">Go</Button></Div></Body></HTML>
Easily make your own style guide with Tdcss.js