Theming

We expose a theme object for our customizable design system. You can easily customize colors, typography, breakpoints, etc to match with your design.

Colors

Customize the color on the theme.colors object. Colors can be used for color, borderColor, backgroundColor, etc. Example of a color: neutral-90. See more on github

export default {
colors: {
// ...
'primary-40': '#FF0000',
'neutral-30': '#333',
'neutral-90': '#000',
custom: '#F12345',
// ...
},
}

Primary

Neutral

neutral-10#ffffff
neutral-20#f3f3f3
neutral-30#dedede
neutral-40#bdbdbd
neutral-50#989898
neutral-60#585858
neutral-70#444444
neutral-80#212121
neutral-90#000000

Beige

beige-10#fbf9f7
beige-20#f6f3ef
beige-30#eae4de
beige-40#d2cbc3
beige-50#a7a096
beige-60#605b55
beige-70#4d4944
beige-80#33302d
beige-90#1e1c1a

Green

green-10#eaffd4
green-20#d6f6b4
green-30#bade94
green-40#9fc873
green-50#83ad57
green-60#5a8034
green-70#40611f
green-80#2a4210
green-90#142603

Teal

teal-10#d5fffa
teal-20#aaf4eb
teal-30#6de1d2
teal-40#00c7ae
teal-50#01aa95
teal-60#008070
teal-70#00544a
teal-80#003d35
teal-90#00211d

Blue

blue-10#e0f5ff
blue-20#bbeaff
blue-30#9bdef7
blue-40#55c3e9
blue-50#27a5d0
blue-60#057aa3
blue-70#025a79
blue-80#013c50
blue-90#00202b

Violet

violet-10#f2f2ff
violet-20#e0e0ff
violet-30#c9c9ff
violet-40#acacff
violet-50#9080f0
violet-60#7958d6
violet-70#593cac
violet-80#422a86
violet-90#1f0e51

Pink

pink-10#ffeaf5
pink-20#ffd5eb
pink-30#feb7dc
pink-40#f696c8
pink-50#e468a8
pink-60#c24887
pink-70#972962
pink-80#6d1142
pink-90#3c0725

Red

red-10#fbdedc
red-20#fcc7c3
red-30#fdb3ae
red-40#ff9490
red-50#ff6165
red-60#e1003a
red-70#a80029
red-80#75001a
red-90#450101
red-orange-10#ffded0
red-orange-20#ffc9b2
red-orange-30#ffb595
red-orange-40#ff9868
red-orange-50#e67b49
red-orange-60#c45927
red-orange-70#9f4217
red-orange-80#6d2605
red-orange-90#451701

Red Orange

red-orange-10#ffded0
red-orange-20#ffc9b2
red-orange-30#ffb595
red-orange-40#ff9868
red-orange-50#e67b49
red-orange-60#c45927
red-orange-70#9f4217
red-orange-80#6d2605
red-orange-90#451701

Orange

orange-10#ffebce
orange-20#ffd495
orange-30#ffbb59
orange-40#ff9f14
orange-50#db860a
orange-60#a6670a
orange-70#824f06
orange-80#573607
orange-90#382303

Yellow

yellow-10#fff8d9
yellow-20#fff1b2
yellow-30#ffe166
yellow-40#ffcd00
yellow-50#e5b800
yellow-60#b69200
yellow-70#846a01
yellow-80#604d00
yellow-90#423500

Semantic

Brand

brand-10#fff8d9
brand-20#fff1b2
brand-30#ffe166
brand-40#ffcd00
brand-50#e5b800
brand-60#b69200
brand-70#846a01
brand-80#604d00
brand-90#423500

Secondary

secondary-blue#55c3e9
secondary-green#bade94
secondary-orange#ff9868
secondary-pink#f696c8
secondary-teal#00c7ae
secondary-violet#acacff

Spacing

You can customize the global spacing for padding and margin, top, left, right and bottom.

spacing-0

0

spacing-2

0.125rem

(0)

spacing-3

0.1875rem

(0)

spacing-4

0.25rem

(0)

spacing-8

0.5rem

(0)

spacing-12

0.75rem

(0)

spacing-16

1rem

(0.0625)

spacing-24

1.5rem

(0.0625)

spacing-28

1.75rem

(0.0625)

spacing-32

2rem

(0.125)

spacing-36

2.25rem

(0.125)

spacing-48

3rem

(0.1875)

spacing-64

4rem

(0.25)

spacing-96

6rem

(0.375)

spacing-128

8rem

(0.5)

spacing-192

12rem

(0.75)

spacing-3xl

3rem

(0.1875)

spacing-4xl

4rem

(0.25)

spacing-5xl

6rem

(0.375)

spacing-6xl

8rem

(0.5)

spacing-7xl

12rem

(0.75)

spacing-lg

1rem

(0.0625)

spacing-md

0.75rem

(0)

spacing-sm

0.5rem

(0)

spacing-xl

1.5rem

(0.0625)

spacing-xs

0.25rem

(0)

spacing-xxl

2rem

(0.125)

spacing-xxs

0.125rem

(0)

Border radius

By default, we set a border radius on components. Set the radii borders to 0 if you don't like this default. You can also configure the border width.

radius-2xl

1.5rem

(0.0625)

radius-circle

calc(infinity * 1px)

radius-lg

0.5rem

(0)

radius-md

0.25rem

(0)

radius-sm

0.125rem

(0)

radius-xl

1rem

(0.0625)

Breakpoints

Default sizes from the core theme are below. (Note: values are taken from this article).

breakpoint-2xl

1440px

breakpoint-3xl

1620px

breakpoint-4xl

1920px

breakpoint-lg

980px

breakpoint-md

736px

breakpoint-sm

480px

breakpoint-xl

1280px

breakpoint-xs

0px

(0)

Typography

We use font, font-size, font-weight, line-height and letter-spacing to customize the theme. You should use the Text component with predefined text styles where you can.

font-size

font-size-11

0.6875rem

(0)

font-size-12

0.75rem

(0)

font-size-13

0.8125rem

(0)

font-size-14

0.875rem

(0)

font-size-16

1rem

(0.0625)

font-size-18

1.125rem

(0.0625)

font-size-20

1.25rem

(0.0625)

font-size-24

1.5rem

(0.0625)

font-size-26

1.625rem

(0.0625)

font-size-36

2.25rem

(0.125)

font-size-45

2.8125rem

(0.125)

font-size-65

4.0625rem

(0.25)

font-size-h0

4.0625rem

(0.25)

font-size-h1

2.8125rem

(0.125)

font-size-h2

2.25rem

(0.125)

font-size-h3

1.625rem

(0.0625)

font-size-h4

1.25rem

(0.0625)

font-size-h5

1rem

(0.0625)

font-size-h6

0.875rem

(0)

font-size-lg

1.125rem

(0.0625)

font-size-md

1rem

(0.0625)

font-size-sm

0.875rem

(0)

font-size-subtitle-md

0.8125rem

(0)

font-size-subtitle-sm

0.6875rem

(0)

font-size-xl

1.5rem

(0.0625)

font-size-xs

0.75rem

(0)

font-weight

font-weight-400

400

font-weight-500

500

font-weight-600

600

font-weight-bold

600

font-weight-medium

500

font-weight-regular

400