🔥 Work in progress at an early stage, not production ready
Variables Design System for Grid, Layout, Media Queries, Responsive Design, Typography Rhythm and colors. A “ready to use” set of variables for Design System.
Align on a vertical grid drived by the typography.
https://thierryc.github.io/Design-System-Variables
Spacer is 1/3 or 2/3 of the (paragraphe) line heights.
Margins and gutters are also based on the (paragraphe) line height.
- Font Family (Heading and Body)
- Line height
- Rhythm (FIBONACCI)
Color object have accessibility data.
'DisplayColor' is the color for the text on it. It can be black or white.
"contrastBlack": "7.16",
"contrastWhite": "2.93",
"displayColor": "black",
"accessibility": {
"aa": true,
"aaLarge": true,
"aaa": true,
"aaaLarge": true
}
- Blue Hue
- Green Hue
- Yellow Hue
- Red Hue
- 1 heading font (Lora serif font)
- 1 body font (Nato sans serif font)
- 1 code font
- 4 brand colors
- 4 messages colors (success, warning, danger, info)
- 10 other color
- and useful colors like twitter and Facebook
The grid is 1/3 of the lineHeight. (~ 8px)
Content is placed in the areas of the screen that contain columns. Column width is defined using percentages.
- COL_NUMB_SX = 4;
- COL_NUMB_SM = 4;
- COL_NUMB_MD = 8;
- COL_NUMB_LG = 12;
- COL_NUMB_XL = 12;
Gutters are the spaces between columns. They help separate content. Gutter widths are fixed values at each breakpoint range.
- GUTTER_SX = 1 * grid (~8px)
- GUTTER_SM = 1 * grid (~8px)
- GUTTER_MD = 2 * grid (~16px)
- GUTTER_LG = 3 * grid (~24px)
- GUTTER_XL = 3 * grid (~24px)
Margins are the space between content and the left and right edges of the screen.
- MARGIN_SX = 2 * grid (~16px)
- MARGIN_SM = 2 * grid (~16px)
- MARGIN_MD = 3 * grid (~24px)
- MARGIN_LG = 4 * grid (~24px)
- MARGIN_XL = 4 * grid (~32px)
Video Sketch soon
https://github.com/sebdesign/cap-height
MIT © Thierry Charbonnel