11import {Meta } from ' @storybook/addon-docs' ;
22
3- <Meta title = " Branding/Overview" />
3+ <Meta title = " Branding/Overview" />
44
55# Branding
66
@@ -13,6 +13,7 @@ you should provide values for each theme individually.
1313## Basic customization
1414
1515#### Typography
16+
1617There are 2 font families, ` sans-serif ` and ` monospace ` , which can be configured via ` --g-font-family-sans `
1718and ` --g-font-family-monospace ` . Also, there are a lot of different text variants: ` body-1 ` ` body-2 ` ` caption-1 `
1819` caption-2 ` ` header-1 ` ` header-2 ` and others. Full list of variants you can find [ here] ( ?path=/story/typography--default ) .
@@ -21,36 +22,43 @@ Each of these variants has a specific `font-size` and `line-height` properties w
2122for each of the variant group (` body ` ` header ` ` subheader ` ` display ` ` caption ` ` code ` ) via ` --g-text-{variantGroupName}-font-weight ` variable.
2223There is one specific variable, ` --g-text-accent-font-weight ` , which can be used separately from text variant.
2324
24-
2525#### Accent
26+
2627To give a unique look for components you can provide several variables that controls accent color. Here is the
2728list of such variables:
28- * ` --g-color-base-brand ` - Color for background (action button, active controls)
29- * ` --g-color-base-brand-hover ` - Hover color for background
30- * ` --g-color-line-brand ` - Color for lines (active tab underline)
31- * ` --g-color-text-brand ` - Text color
32- * ` --g-color-text-brand-heavy ` - Text color over background
33- * ` --g-color-text-brand-contrast ` - Text color over brand background
34- * ` --g-color-base-selection ` - Lighter version for background (List selection, Table row selection)
35- * ` --g-color-base-selection-hover ` - Hover lighter version for background
36- * ` --g-color-text-link ` - Color for links
37- * ` --g-color-text-link-hover ` - Hover color for links
38- * ` --g-color-text-link-visited ` - Color for visited links
39- * ` --g-color-text-link-visited-hover ` - Hover color for visited links
29+
30+ - ` --g-color-base-brand ` - Color for background (action button, active controls)
31+ - ` --g-color-base-brand-hover ` - Hover color for background
32+ - ` --g-color-line-brand ` - Color for lines (active tab underline)
33+ - ` --g-color-text-brand ` - Text color
34+ - ` --g-color-text-brand-heavy ` - Text color over background
35+ - ` --g-color-text-brand-contrast ` - Text color over brand background
36+ - ` --g-color-base-selection ` - Lighter version for background (List selection, Table row selection)
37+ - ` --g-color-base-selection-hover ` - Hover lighter version for background
38+ - ` --g-color-text-link ` - Color for links
39+ - ` --g-color-text-link-hover ` - Hover color for links
40+ - ` --g-color-text-link-visited ` - Color for visited links
41+ - ` --g-color-text-link-visited-hover ` - Hover color for visited links
4042
4143#### Shape
44+
4245Controls share border radius sizes that can be configured via ` --g-border-radius-{size} ` , where size is one of xs, s, m, l or xl
4346
4447### Example
4548
4649``` css
47-
4850.g-root {
4951 --g-font-family-sans : ' Inter' , sans-serif ;
5052
51- --g-text-header-font-weight : 600 ;
52- --g-text-subheader-font-weight : 600 ;
53- --g-text-display-font-weight : 600 ;
53+ --g-text-header-1-font-weight : 600 ;
54+ --g-text-header-2-font-weight : 600 ;
55+ --g-text-subheader-1-font-weight : 600 ;
56+ --g-text-subheader-2-font-weight : 600 ;
57+ --g-text-subheader-3-font-weight : 600 ;
58+ --g-text-display-1-font-weight : 600 ;
59+ --g-text-display-2-font-weight : 600 ;
60+ --g-text-display-3-font-weight : 600 ;
61+ --g-text-display-4-font-weight : 600 ;
5462 --g-text-accent-font-weight : 600 ;
5563
5664 --g-color-base-brand : rgb (117 , 155 , 255 );
@@ -59,7 +67,7 @@ Controls share border radius sizes that can be configured via `--g-border-radius
5967 --g-color-base-selection-hover : rgba (82 , 130 , 255 , 0.1 );
6068 --g-color-line-brand : rgb (117 , 155 , 255 );
6169 --g-color-text-brand : rgb (117 , 155 , 255 );
62- --g-color-text-brand-contrast : rgb (255 , 255 , 255 );
70+ --g-color-text-brand-contrast : rgb (255 , 255 , 255 );
6371 --g-color-text-link : rgb (117 , 155 , 255 );
6472 --g-color-text-link-hover : rgb (82 , 130 , 255 );
6573}
0 commit comments