All Projects → JordyPouw → michelangelo

JordyPouw / michelangelo

Licence: MIT license
kss-node living styleguide theme.

Programming Languages

CSS
56736 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to michelangelo

Nodebestpractices
✅ The Node.js best practices list (December 2021)
Stars: ✭ 72,734 (+137133.96%)
Mutual labels:  styleguide
git-diff-lint
Lint only the files your branch touches
Stars: ✭ 36 (-32.08%)
Mutual labels:  styleguide
innoq-styleguide
INNOQ Styleguide and Component Library
Stars: ✭ 24 (-54.72%)
Mutual labels:  styleguide
pattern-library
AXA CH UI component library. Please share, comment, create issues and work with us!
Stars: ✭ 103 (+94.34%)
Mutual labels:  styleguide
suomifi-ui-components
Suomi.fi-styleguide in React components
Stars: ✭ 28 (-47.17%)
Mutual labels:  styleguide
styleguide
Official code style guide of Banksalad
Stars: ✭ 91 (+71.7%)
Mutual labels:  styleguide
Naming Convention Guides
📖 Collection of naming guides for writing more consistent and readable codes
Stars: ✭ 239 (+350.94%)
Mutual labels:  styleguide
The-One-True-Lisp-Style-Guide
A subset of style recommendations for Common Lisp based upon the points of agreement found in other style guides.
Stars: ✭ 32 (-39.62%)
Mutual labels:  styleguide
styleguide
A living styleguide powering the Mapzen brand (TM)
Stars: ✭ 13 (-75.47%)
Mutual labels:  styleguide
atomic-lab
Styleguide Generator based on partial templates ( html / ejs / haml )
Stars: ✭ 41 (-22.64%)
Mutual labels:  styleguide
tryceratops
A linter to prevent exception handling antipatterns in Python (limited only for those who like dinosaurs).
Stars: ✭ 381 (+618.87%)
Mutual labels:  styleguide
kotlin-style-guide
red_mad_robot Kotlin Style Guide
Stars: ✭ 85 (+60.38%)
Mutual labels:  styleguide
awesome-python-code-formatters
A curated list of awesome Python code formatters
Stars: ✭ 168 (+216.98%)
Mutual labels:  styleguide
Javascript
JavaScript Style Guide
Stars: ✭ 117,286 (+221194.34%)
Mutual labels:  styleguide
styleguide-starterkit
A starterkit to create styleguides with Fractal and Webpack.
Stars: ✭ 35 (-33.96%)
Mutual labels:  styleguide
Storybook
📓 The UI component explorer. Develop, document, & test React, Vue, Angular, Web Components, Ember, Svelte & more!
Stars: ✭ 67,445 (+127154.72%)
Mutual labels:  styleguide
react-dsfr
Non-official React components of the official french Système de Design de l'État.
Stars: ✭ 48 (-9.43%)
Mutual labels:  styleguide
house style
A shared house style for Ruby projects
Stars: ✭ 19 (-64.15%)
Mutual labels:  styleguide
core
The Pangolin.js core that drives everything.
Stars: ✭ 18 (-66.04%)
Mutual labels:  styleguide
eslint-config-mingelz
A shared ESLint configuration with Chinese comments. 一份带有完整中文注释的 ESLint 规则。
Stars: ✭ 15 (-71.7%)
Mutual labels:  styleguide

Michelangelo Styleguide

npm version

Table of contents

About

This is a custom template for the KSS-node living style guide.

Demo

Have a look at the demo styleguide generated with dummy content to get an impression of the Michelangelo theme with the ITCSS architecture.

Get started

Go to your project directory. If you haven't installed KSS-node yet, install it locally* npm install kss --save-dev.

*Don't install KSS-node globally, it will cause problems in the long run when you have multiple projects using KSS-node.

Now, install the Michelangelo package locally.

npm install michelangelo --save-dev

Create a kss-config file touch kss-config.json and specify the required config:

  • title
  • builder: refer to the Michelangelo template
  • source
  • destination
  • homepage
  • css
  • js

Read the KSS-node docs for more information about the config, or use the example below. Note: the source config should refer to your styles directory.

{
  "title"        : "Michelangelo Styleguide",
  "mask"         : "*.scss",
  "placeholder"  : "[modifier]",

"//": "relative to this file.",
  "builder"      : "node_modules/michelangelo/kss_styleguide/custom-template/",
  "source"       : "src/",
  "destination"  : "kss_styleguide/styleguide/",

"//": "relative to source.",
  "homepage"     : "../kss_styleguide/kss-homepage.md",

"//": "relative to the generated style guide.",
  "css": [],
  "js" : []
}

After setting up the config file, run kss --config kss-config.json to generate your living styleguide*. Locate your styleguide at the specified path in your config file and open it in the browser. Cowabunga!

*If you get the error command not found: kss. Fix this by adding ./node_modules/.bin to your PATH.

Usage

KSS-node and documentation syntax

KSS-node is an implementation of Knyle Style Sheets. This is a documentation syntax for css that can be used to create a living style guide. KSS-node has a few additional features such as adding a copy of the markup inline or external.

To get familiar with the documentation syntax it is highly advised to read through the annotated copy of the official KSS spec on the KSS-node repository.

Pro tip

When you're dealing with a high amount of example markup and you don't want to cause any code-bloat, seperate your example markup from your css modules. Create a directory in your kss_styleguide directory (name it anyway you want), and place the markup files in there. In your css module, link to the file for your example markup. (e.g., Markup: ../kss_styleguide/markup/components.form.html)

Michelangelo specifications

Color grid

This is a grid overview of all your project colors. Every color item consists of 4 parts (the color variable and hexadecimal are required).

  • color example
  • color name
  • color variable
  • color hexadecimal

In the example below you can see we have a heading, a description, and we list our colors. To make the colors work you must first define your hexadecimal after the dash, then optionally add a color name.

// Primary Colors
//
// The primary colors for branding.
//
// $leonardo      -  #2980b9; Leader blue
// $donatello     -  #8e44ad; Purple tech
// $raphael       -  #c0392b; Sai
// $michelangelo  -  rgb(232, 126, 4); Cowabunga
// $splinter      -  #FDE3A7
//
// Styleguide Settings.Colors

Responsive

The specific styling for the styleguide is written mobile first. Which makes it possible to test your project's styling directly on any device size.

Smooth scrolling

When clicking on a sub navigation item, the page animate scrolls to that specific item, so smooooth.

Prefixed styles

All styles written for the styleguide are prefixed with .kss-. They do not interfere with your project styles.

ITCSS architecture

The example src directory is a boilerplate for ITCSS methodology. A methodology created by Harry Roberts.

Customize

Inside the node package directory, go to kss_styleguide/custom-template/kss-assets/css/ to change the styling of this theme. Run sass --watch --sourcemap=none kss.scss:kss.css to watch for changes and compile the scss files.

You can quickly change the primary color by changing the value of the variable $cowabunga in kss-settings.scss.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].