Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 2.18 KB

README.md

File metadata and controls

38 lines (25 loc) · 2.18 KB

DNA Recipe default theme

This is a very small theme, intended as a base for highly custom sites. It intentionally does not provide much design out of the box. If your project requires a more fully featured framework, just remove the references to pure.

Theme

The default theme uses:

Basic templates are provided, based on CWP templates using pure as a framework. Delete what you don't need.

Styleguide

Once you have your silverstripe project setup, the styleguide should be available at: http://yourprojectdomain/sg/

Docs for the styleguide are available here: https://github.com/benmanu/silverstripe-styleguide

When you create a new component, please document it in the scss file, as we have in the examples.

Custom breakpoints

It is recommended you work with the default grid where possible, but sometimes the 3, 5 and 24 grid may not be enough. Adding extra breakpoints and altering the grid units can be managed from the breakpoints file. Please be cautious changing these in non-new projects, as some components are likely to have been built with the breakpoints and grid units as they are.

Working with svgs

This recipe provides 2 ways of working with svgs:

Both of these allow for a limited amount of attribute changes in context (fill, stroke, etc). We use gulp-svgmin to optimize all svgs stored in the images/svg directory

Frontend coding guidelines

Our coding guidelines are available here