Skip to main content

Theme

This prop is supposed to be used for theming as it only allows to change colors of the components and text. It allows you to easily match colors with the rest of the application. Of course, it means that using a dark mode is very convenient. If you want deeper styles customization checkout the styles prop.

theme​

This is the name of property that has every component styles inside.

TypeDefault
Record<string, string | object>defaultTheme

Full list of theme properties​

tip

You don't have to pass new styles for every component. The omitted ones will use default values. These props won't work outside of theme prop.

backdrop​

Set background-color of the modal backdrop.

caution

Works only in the modal mode.

TypeDefault
string#00000055

knob​

Set background-color of the modal knob.

caution

Works only in the modal mode with knob enabled.

TypeDefault
string#ffffff

container​

Set background-color of the whole modal container.

TypeDefault
string#ffffff

Set category name text color.

TypeDefault
string#00000099

skinTonesContainer​

Set background-color of the skin tones container.

TypeDefault
string#e3dbcd

category​

Set category component styles:

  • icon - color of the icon. Default is #000000
  • iconActive - color of the icon if it's active. Default is #005b96
  • container - background-color of the categories container. Default is #e3dbcd
  • containerActive - background-color of the currently active category. Default is #ffffff
TypeDefault
ObjectSee above

Set search component styles:

caution

Works only with enableSearchBar prop set to true

  • text - color of the search bar text. Default is #000000cc
  • placeholder - color of the search bar placeholder text. Default is #00000055
  • icon - color of the search bar icon. Default is #00000055
  • background - background-color of the search bar. Default is #00000011
TypeDefault
ObjectSee above

emoji​

Set emoji component styles:

caution

Works only with selectedEmojis prop. See selectedEmojis

  • selected - color of the selected emoji background. Default is #e3dbcd
TypeDefault
ObjectSee above