Skip to content

Instantly share code, notes, and snippets.

@vitalbone
Last active August 29, 2015 14:24
Show Gist options
  • Save vitalbone/e4b684470921ab694ba4 to your computer and use it in GitHub Desktop.
Save vitalbone/e4b684470921ab694ba4 to your computer and use it in GitHub Desktop.
dsfsdfds

Here is how to get Semantic-UI-Less working in Keystone:

Directory structure:

styles
|- semantic
    - definitions
        - elements
        - globals
    - themes
    - semantic.less
    - theme.config
    - theme.less
|- site
    - layout.less
    - site.min.css
    - variables.less
|- site.less
|- site.min.css

Make sure you have a Semantic-UI theme in the themes directory. Make sure you have theme.config & theme.less files.

Then inside your site.less

// styles/site.less

@import "semantic/semantic.less";

Inside your semantic.less

// styles/semantic/semantic.less

/* Globals */
@import "definitions/globals/reset";
@import "definitions/globals/site";

/* Elements */
@import "definitions/elements/button";
@import "definitions/elements/divider";
@import "definitions/elements/flag";
@import "definitions/elements/header"

You'll also need to remove any reference to bootstrap variables in site/layout.less

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment