Skip to content
Snippets Groups Projects
Commit 1e9bc5ed authored by Alf Eaton's avatar Alf Eaton
Browse files

Add colors and fonts to style guide

parent c55c3b6f
No related branches found
No related tags found
No related merge requests found
CSS variables are used to define the theme's color scheme.
## Brand colors
`--color-primary`
```js
<div style={{ color: 'var(--color-primary)' }}>
{faker.lorem.sentence(5)}
</div>
```
## Colors for interactions
`--color-danger`
```js
<div style={{ color: 'var(--color-danger)' }}>
{faker.lorem.sentence(5)}
</div>
```
`--color-valid`
```js
<div style={{ color: 'var(--color-valid)' }}>
{faker.lorem.sentence(5)}
</div>
```
`--color-warning`
```js
<div style={{ color: 'var(--color-warning)' }}>
{faker.lorem.sentence(5)}
</div>
```
CSS variables are used to define font families.
`--font-author`
```js
<div style={{ fontFamily: 'var(--font-author)' }}>
{faker.lorem.sentence(5)}
</div>
```
`--font-reviewer`
```js
<div style={{ fontFamily: 'var(--font-reviewer)' }}>
{faker.lorem.sentence(5)}
</div>
```
`--font-interface`
```js
<div style={{ fontFamily: 'var(--font-interface)' }}>
{faker.lorem.sentence(5)}
</div>
```
`--font-mono`
```js
<div style={{ fontFamily: 'var(--font-mono)' }}>
{faker.lorem.sentence(5)}
</div>
```
......@@ -18,6 +18,14 @@ module.exports = {
}
},
sections: [
{
name: 'Colors',
content: 'docs/colors.md'
},
{
name: 'Fonts',
content: 'docs/fonts.md'
},
{
name: 'Atoms',
components: 'src/atoms/*.js'
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment