To modify a theme or create your own, follow the steps below in your terminal. You'll need to have Git and Node installed.
-
Download the repository:
git clone https://github.com/thomaspark/bootswatch.git -
Install dependencies:
npm install -
Make sure that you have
gruntavailable in the command line. You can installgrunt-clias described on the Grunt Getting Started page. -
Modify
variables.lessandbootswatch.lessin one of the theme directories, or create your own in/custom. -
Type
grunt swatch:[theme]to build the CSS for a theme, e.g.,grunt swatch:ameliafor Amelia. Or typegrunt swatchto build them all at once. -
You can run
gruntto start a server, watch for any changes to the LESS files, and automatically build a theme and reload it on change. Rungrunt serverfor just the server, andgrunt watchfor just the watcher.
本文指导您如何通过Git和Node在终端中下载、安装并自定义或创建Bootswatch主题。步骤包括下载仓库、安装依赖、确保Grunt可用、修改变量并构建CSS。
4820

被折叠的 条评论
为什么被折叠?



