Web site style guides cover a publication's visual and technical aspects, along with text. Many style guides are revised periodically to accommodate changes in conventions and usage.
Wikipedia A styleguide is a tool to set standards in how the brand identity is communicated. Important in this definition is "visual and technical" and "revised periodically"ul.nav-main .nav-sub .nav-sub-top, ul.nav-language .nav-sub .nav-sub-top {}When we needed a new component to implement, we were writing new lines, to be sure not to breack anything 9000 lines of CSS, with no documentation, used accross 10 websites. Main website with other landing page ... using the same CSS Collaboration with in-house developers, the need for a documentation (which stay up to date). - we needed to do something
/* # Text components ## Titles ````
For Switzerland public administration
We only had to create the styleguide$ yo styleguideEasy as .... this
. ├── README.md ├── assets ├── bower.json ├── gulpfile.js ├── hologram_config.yml ├── node_modules ├── package.json └── robots.txtHere is the structure when Yeoman finished is first setup
assets ├── README.md ├── doc_assets │ ├── _footer.html │ └── _header.html ├── fonts ├── js │ └── FEC14.js └── sass ├── FEC14-mixins.scss ├── FEC14-variables.scss ├── FEC14.scss ├── bootstrap-variables.scss ├── bootstrap.scss ├── components ├── javascript └── layoutTaking a closer look to the assets directory, you see where you will start to work, changing bootstrap variable and start implementing/documenting your first modular components
hologram_config.yml
source: ./assets destination: ./styleguide documentation_assets: ./bower_components/Cortana dependencies: - ./build css_include: - 'css/FEC14.css' index: READMEHologram configuation says. Look at assets folder, generate the styleguide in styleguide folder using Cortana theme
$ gulp serve
Find this presentation on slidedeck.io/antistatique or antistatique.github.io/slides-styleguide-by-default