Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat(ffe-core): ny fargepalett med semantiske variabler. #2406

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
11 changes: 9 additions & 2 deletions packages/ffe-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,19 @@ This is how you import them:

```js
import {
fargeHvit,
fargeFjell30,
breakpointMd,
spacingXl,
} from '@sb1/ffe-core';
```
## Semantic colors

Semantic colors define and name colors based on how they are used, rather than their hue. The structure are based on a elevation principle with five main categories; background, surface, fill, text/icon and border. We use inverse color style on blue background.
- Background are for body or section background.
- Surface are background for elements on top of a background e.g. accordion, cards, modal.
- Fill are background color for smaller elements e.g. buttons, input,
- Text/icon are colors for foreground elements on top of background, surface or fill.
- Border are color for borders or separators between elements.


## Development

Expand Down
Loading
Loading