Skip to content

Commit

Permalink
feat(ffe-core): ny fargepalett med semantiske variabler.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuva-odegard committed Nov 5, 2024
1 parent f333281 commit 8db28c7
Show file tree
Hide file tree
Showing 3 changed files with 1,205 additions and 10 deletions.
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

0 comments on commit 8db28c7

Please sign in to comment.