Look and Feel
lsg-custom-styles
The default look and feel of your Live Style Guide is going to be similar to DocumentJS.com as it is using the default theme.
The default look and feel of your Live Style Guide is going to be similar to DocumentJS.com as it is using the default theme.
Additional Configuration
You'll need to make a
style-guide-themefolder and point to it indocumentjs.jsonbefore you can start changing anything. You should also make astylesfolder in thatthemefolder.Updated directory structure:
You'll need to tell DocumentJS to look for static resources in your theme folder.
Updated
documentjs.json:Changing the Styles
To see DocumentJS default styles, look in
node_modules/documentjs/site/default/static/styles. See the documentation for these styles in the example Live Style Guide. To change any of these styles for your style guide, simply copy one of the files over tostyle-guide-theme/stylesand make your changes.If you'd like to add a new LESS file, simply copy over
styles.less(which imports all the stylesheets) and@importyour new file. DocumentJS will automatically resolve default file imports for any files you don't copy over so don't worry about fixing the file paths for the@importstatement.