From 4dd41b0d0438526c4bc7b13979570ad0f9b9fb78 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 19 Apr 2016 16:36:19 +0800 Subject: add compiling custom version doc --- README.md | 4 ++++ index.html | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index af4f419..5f01dc2 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,10 @@ And include it in your website or Web app <head> part. `` +### Compiling custom version + +You can compiling your custom version of Spectre.css. Read [the documentation](http://picturepan2.github.io/spectre/#compiling). + ### Documentation and demos #### Elements diff --git a/index.html b/index.html index 8c0e6c0..ca46cc2 100644 --- a/index.html +++ b/index.html @@ -107,10 +107,24 @@ <link rel="stylesheet" href="dist/spectre.min.css" /> -

You could even customize Spectre CSS with your own code and removing unneeded components. It requires a LESS compiler and Autoprefixer.

+ + +
+

compiling custom version

+
+

Spectre uses Gulp for compiling CSS. You can customize your version of Spectre.css by editing LESS files in /src directory or removing unneeded components from spectre.less.

+

Then, you can build the CSS file from the command line:

+
    +
  1. Navigate to the root directory of Spectre where you can find package.json file.
  2. +
  3. Run npm install. NPM will install all dev dependencies as listed in package.json.
  4. +
  5. When completed, run gulp build to compile LESS to CSS and minify files.
  6. +
  7. You can find compiled CSS files in /dist directory.
  8. +
+

You can watch file changes and rebuild CSS files by using gulp watch.

+
    -- cgit v1.3.1-26-gb76a