Giter Site home page Giter Site logo

styleguide_temp's Introduction

#Datto Styleguide The Datto Styleguide provides design and usage guidelines for Branding, Marketing, and the UI Library.

Running

  • use most recent version of node (at least 0.12.7)
  • npm install
  • npm install -g gulp
  • gulp dev

Content Creation

Step 1 - Name your sections/subsections

Add the desired sections and subsections to the appropriate content file:

app/uidesign/modules/UIDesignContent.js
app/marketing/modules/MarketingContent.js
app/guidelines/modules/GuidelinesContent.js

Note that files will be created upon saving the content file, based upon the section/subsection names and tabs you have created.

Step 2 - Create your content

Find your newly created section folder in the top level state (marketing, uidesign) that you are managing, in the components folder.

For example:

app/uidesign/components/buttons/
app/uidesign/components/buttons/primary/

Inside your new section/subsection folder you will find partial HTML and Markdown files that will be embedded in your new section:

example.html 
<tabname>.md

The example.html file will be rendered as the example for all of your tabs when editing in UI Design. Marketing has a more flexible template system in which you are given an HTML template per tab, similar to your Markdown files. Simply edit these HTML and Markdown partials, and they will be piped into your section!

Also, feel free to add stylesheets for your templates inside your section folder, but note that when using SCSS your stylesheet must be included in the state's index stylesheet:

app/uidesign/_index.scss

Step 3 - Reload

Finally, when creating new folders and files, you will need to restart the server:

ctrl+c to stop
gulp dev to start

After that, your new sections should be good to go! Any empty white sections represent your empty templates, while seeing a navbar represents the absence of a file - try restarting the server!

styleguide_temp's People

Contributors

hoodsy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

mcnasby

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.