How to recompiles .css files starting from bootswatch .less files?

瘦欲@ 提交于 2019-12-05 20:08:01

The simplest way to get a Bootswatch customized Bootstrap css (if you don't want to bother with all that black magic) is the following:

  1. Download Bootstrap Less sources
  2. Download corresponding Bootswatch variable.less and bootswatch.less.
  3. Create new file with the following imports:

    // Set imported file paths to their actual location in your environment
    @import "..../bootstrap/less/bootstrap"; // <- Bootstrap  bootstrap.less 
    @import "..../.../bootswatch";           // <- Bootswatch bootswatch.less 
    @import "..../.../variables";            // <- Bootswatch variables.less
    
  4. Compile this file with lessc (or whatever compatible tool).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!