Colors
Convey meaning through color.
Out of the box you get access to all colors in the Sonnat Design System. You can use any color anywhere, all colors change with the theme.
import { useTheme } from '@sonnat/ui/styles'const Component = () => {const { colors, swatches } = useTheme()...}
import { makeStyles } from "@sonnat/ui/styles";const useStyles = makeStyles(({ colors, swatches }) => ({root: {...},...}),{ name: "MyComponentStyle" });
Primary Color
Represents primary interface elements for a user. It's the color displayed most frequently across your app's screens and components.
theme.colors.primary.light
#EE3F7C
theme.colors.primary.origin
#EC135F
theme.colors.primary.dark
#C0114E
Secondary Color
Represents secondary interface elements for a user. It provides more ways to accent and distinguish your product. Having it is optional.
theme.colors.secondary.light
#6D82EE
theme.colors.secondary.origin
#1337EC
theme.colors.secondary.dark
#112EC0
Status Colors
Represents a clear message as well as status, such as success, error, failure, reminder, link and so on. Status color selection need to comply with the user's basic understanding of color.
Error
Indicates errors in components, such as invalid text in a text field.
theme.colors.error.light
#EE3F3F
theme.colors.error.origin
#EC1313
theme.colors.error.dark
#C01111
Success
Indicates the successful completion of an action.
theme.colors.success.light
#11C031
theme.colors.success.origin
#119229
theme.colors.success.dark
#106520
Warning
Represents potentially dangerous actions or important messages.
theme.colors.warning.light
#EE853F
theme.colors.warning.origin
#EC6A13
theme.colors.warning.dark
#C05711
Info
Presents information to the user that is neutral and not necessarily important.
theme.colors.info.light
#1387EC
theme.colors.info.origin
#116FC0
theme.colors.info.dark
#115692
Swatches
Here is a collection of colors, i.e. hues and their shades. This color palette has been designed with colors that work harmoniously with each other.
theme.swatches.red
50
#F8ECEC
100
#F4D7D7
200
#F1C5C5
300
#EF9A9A
400
#EE6D6D
500
#EE3F3F
600
#EC1313
700
#C01111
800
#921111
900
#651010
theme.swatches.pink
50
#F8ECF0
100
#F4D7E1
200
#F1C5D5
300
#EF9AB8
400
#EE6D9A
500
#EE3F7C
600
#EC135F
700
#C0114E
800
#92113E
900
#65102E
theme.swatches.purple
50
#F6ECF8
100
#EED7F4
200
#E9C5F1
300
#DE9AEF
400
#D46DEE
500
#CB3FEE
600
#C113EC
700
#9D11C0
800
#791192
900
#541065
theme.swatches.deepPurple
50
#F2ECF8
100
#E6D7F4
200
#DBC5F1
300
#C49AEF
400
#AD6DEE
500
#963FEE
600
#7F13EC
700
#6911C0
800
#521192
900
#3B1065
theme.swatches.violet
50
#EFECF8
100
#DED7F4
200
#D0C5F1
300
#AF9AEF
400
#8D6DEE
500
#6B3FEE
600
#4913EC
700
#3D11C0
800
#311192
900
#251065
theme.swatches.navy
50
#ECEEF8
100
#D7DCF4
200
#C5CDF1
300
#9AA8EF
400
#6D82EE
500
#3F5CEE
600
#1337EC
700
#112EC0
800
#112692
900
#101E65
theme.swatches.blue
50
#ECF3F8
100
#D7E6F4
200
#C5DDF1
300
#9AC7EF
400
#6DB2EE
500
#3F9CEE
600
#1387EC
700
#116FC0
800
#115692
900
#103E65
theme.swatches.aqua
50
#ECF7F8
100
#D7F0F4
200
#C5EBF1
300
#9AE3EF
400
#6DDDEE
500
#3FD6EE
600
#13CFEC
700
#11A9C0
800
#118192
900
#105A65
theme.swatches.teal
50
#ECF8F5
100
#D7F4EB
200
#C5F1E4
300
#9AEFD5
400
#6DEEC7
500
#3FEEB9
600
#13ECAB
700
#11C08C
800
#11926B
900
#10654C
theme.swatches.green
50
#ECF8EE
100
#D7F4DC
200
#C5F1CD
300
#9AEFAA
400
#6DEE85
500
#3FEE5F
600
#13EC3B
700
#11C031
800
#119229
900
#106520
theme.swatches.lime
50
#F3F8EC
100
#E8F4D7
200
#DFF1C5
300
#CCEF9A
400
#B8EE6D
500
#A5EE3F
600
#92EC13
700
#77C011
800
#5D9211
900
#426510
theme.swatches.yellow
50
#F8F4EC
100
#F4EAD7
200
#F1E2C5
300
#EFD19A
400
#EEC16D
500
#EEB13F
600
#ECA013
700
#C08311
800
#926511
900
#654710
theme.swatches.orange
50
#F8F1EC
100
#F4E3D7
200
#F1D7C5
300
#EFBC9A
400
#EEA16D
500
#EE853F
600
#EC6A13
700
#C05711
800
#924511
900
#653210
theme.swatches.grey
50
#F2F2F2
100
#E6E6E6
200
#DBDBDB
300
#C4C4C4
400
#ADADAD
500
#969696
600
#808080
700
#696969
800
#525252
900
#3B3B3B