Et fleksibelt fargesystem
Fargesystemet består av globale farger som refererer til hva fargen er (eks. Red-500) og et semantisk nivå som beskriver hva fargen skal brukes til (eks. Text.Danger). Fargesystemet er det samme som Nav også bruker.
Navnestruktur
Et semantisk fargenavn er bygget opp av 3 ledd:
UI-element - Situasjon - Variant/Tilstand
Første ledd refererer til elementet som fargelegges: background, Surface
- Background: Som regel bakgrunnen på hele siden (HTML body).
- Surface: Bakgrunnsfargen til en ting. Eks. et panel, en knapp, en seksjon, etc.
- Border: Fargen til en ramme (stroke).
- Text/Icon: Fargen på tekst og ikoner.
Farge-tokens
Brand
Alt1
100
#feefef
200
#fddfe0
300
#fbbfc1
400
#f89fa1
500
#f67f82
600
#f45f63
700
#dc5659
800
#c34c4f
900
#B83D41
Alt2
100
#fcf7e9
200
#faeec2
300
#f5dda6
400
#efcc79
500
#eabb4d
600
#e5aa20
700
#ce991d
800
#b7881a
900
#A17717
Alt3
100
#e9f5ff
200
#d2eafd
300
#a5d6fb
400
#78c1f9
500
#4badf7
600
#1e98f5
700
#1b88dd
800
#156aac
900
#125A91
Semantic
Surface first
Light
#fddfe0
Light-hover
#fbbfc1
Light-active
#f89fa1
Dark
#c34c4f
Surface second
Light
#faeec2
Light-hover
#f5dda6
Light-active
#efcc79
Dark
#A17717
Surface third
Light
#d2eafd
Light-hover
#a5d6fb
Light-active
#78c1f9
Dark
#156aac
Surface action first
Subtle
#e6eff8
Subtle-hover
#b3d0ea
Default
#0062ba
Hover
#004e95
Active
#00315d
No_fill
#ffffff
No_fill-hover
#e6eff8
No_fill-active
#b3d0ea
Surface action second
Subtle
#f4f5f6
Subtle-hover
#e9eaec
Default
#00315d
Hover
rgba(0, 49, 93, 0.9)
Active
rgba(0, 49, 93, 0.8)
No_fill
#ffffff
No_fill-hover
rgba(0, 49, 93, 0.1)
No_fill-active
rgba(0, 49, 93, 0.2)
Surface action
Subtle
#e6eff8
Subtle-hover
#b3d0ea
Default
#0062ba
Hover
#004e95
Active
#00315d
No_fill
#ffffff
No_fill-hover
#e6eff8
No_fill-active
#b3d0ea
Checked
#0062ba
Surface neutral
Default
#ffffff
Selected
#e6eff8
Subtle
#f4f5f6
Subtle-hover
#e9eaec
Dark
#68707c
Dark-hover
#4b5563
Inverted
#1e2b3c
Surface success
Subtle
#d1f4e1
Subtle-hover
#8be4b5
Default
#118849
Hover
#0c6536
Active
#084826
No_fill
#ffffff
No_fill-hover
#d1f4e1
No_fill-active
#8be4b5
Surface warning
Subtle
#fffbe6
Subtle-hover
#fff4b4
Default
#fff4b4
Default-hover
#ffed83
Surface danger
Subtle
#f9d5db
Subtle-hover
#f3abb6
Default
#e02e49
Hover
#b3253a
Active
#861c2c
No_fill
#ffffff
No_fill-hover
#f9d5db
No_fill-active
#f3abb6
Surface info
Subtle
#e6eff8
Subtle-hover
#b3d0ea
Surface on_inverted
Default
#ffffff
Hover
#ffffffe6
Active
#ffffffcc
No_fill
#ffffff00
No_fill-hover
#ffffff1a
No_fill-active
#ffffff33
Surface focus
Default
#ffda06
Border first
Default
#f45f63
Hover
#dc5659
Active
#c34c4f
Border second
Default
#e5aa20
Hover
#ce991d
Active
#b7881a
Border third
Default
#1e98f5
Hover
#1b88dd
Active
#156aac
Border action first
Subtle
#b3d0ea
Subtle-hover
#66a1d6
Default
#0062ba
Hover
#004e95
Active
#00315d
Border action second
Subtle
#e9eaec
Subtle-hover
#d2d5d8
Default
#00315d
Hover
#00315d
Active
#00315d
Border action
Subtle
#b3d0ea
Subtle-hover
#66a1d6
Default
#0062ba
Hover
#0062ba
Active
#00315d
Dark
#00315d
Dark-hover
#0062ba
Border info
Default
#004e95
Border neutral
Default
#68707c
Subtle
#d2d5d8
Strong
#1e2b3c
Border success
Default
#118849
Hover
#0c6536
Active
#084826
Border warning
Default
#cc7005
Hover
#995404
Active
#663802
Border danger
Default
#e02e49
Hover
#b3253a
Active
#861c2c
Border focus
Outline
#ffda06
Boxshadow
#1e2b3c
Border on_inverted
Default
#ffffff
Border input
Default
#00315d
Hover
#0062ba
Border divider
Default
#bcbfc5
Subtle
#d2d5d8
Strong
#68707c
Text action first
Default
#0062ba
Hover
#004e95
Active
#00315d
On_action
#ffffff
Text action second
Default
#00315d
Hover
#00315d
Active
#00315d
On_action
#ffffff
Text action
Default
#0062ba
Hover
#004e95
Active
#00315d
On_action
#ffffff
Text success
Default
#0c6536
Hover
#084826
Active
#084826
On_success
#ffffff
On_success_subtle
#1e2b3c
Text neutral
Default
#1e2b3c
Subtle
#4b5563
On_inverted
#ffffff
Text warning
Default
#995404
Icon_warning
#cc7005
On_warning
#663802
Text danger
Default
#b3253a
Hover
#861c2c
Active
#5a121d
On_danger
#ffffff
On_danger_subtle
#1e2b3c
Text visited
Default
#7a1265
Background
Default
#ffffff
Subtle
#f4f5f6