Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

icon and font docs added #8

Merged
merged 1 commit into from
Jul 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 83 additions & 1 deletion docs/font.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,86 @@ name: Font
menu: Design
---

# Font guidelines
import FontType from '../src/docz-components/FontType/FontType';

# Fonts

## Font family

We are using the following fonts:

- ```Montserrat``` (default)
- ```Roboto Mono``` (code)

## Usage

We are using SCSS to set fonts. There are mixins that sets each of the available font types. To use the mixins you need to import
```_mixins.scss``` and include the desired mixin.

#### Example:

``` scss
// ComponentName.module.scss

@import '../../styles/mixins';

.selector {
@include font-body;
}
.selectorCode {
@include font-code;
text-transform: uppercase;
}
```


## Font types

<FontType
type="mega"
description="Use this for titles on H1 elements"
/>
<FontType
type="jumbo"
description=""
/>
<FontType
type="display"
description=""
/>
<FontType
type="headline"
description="Use this for page headers"
/>
<FontType
type="title"
description="Use this for page content titles"
/>
<FontType
type="subheader"
description="Use this for page content subtitles"
/>
<FontType
type="body"
description="Default"
/>
<FontType
type="caption"
description=""
/>
<FontType
type="small"
description=""
/>
<FontType
type="button"
description=""
/>
<FontType
type="tabnav"
description="Use this for tab names of sidebars menus"
/>
<FontType
type="code"
description="Use this for code, uses monospace font"
/>
Loading