Skip to main content

Default Theme

note

First of all you need to install @flexnative/theme-context. Fallow instructions here on how to install and how to use @flexnative/theme-context.

BaseTheme object is where you define your application's color palette.

By default there are two color palette light or dark from @flexnative/theme-context. You also can extend BaseTheme object to add custom/extra colors. Fallow the section on how customizing default theme colors or how to extend of default theme colors.

NameTypeRequiredLight ValueDark Value
backgroundColorValuetrue #f8f8f8 #000000
defaultColorValuetrue #f5f5f5 #404040
cardColorValuetrue #ffffff #232323
textColorValuetrue #424242 #ffffff
borderColorValuetrue #42424226 #ffffff1A
placeholderColorValuetrue #0000001A #FFFFFF1A
infoColorValuetrue #3e80ed #3e80ed
successColorValuetrue #5ec232 #5ec232
warningColorValuetrue #ffc107 #ffc107
errorColorValuetrue #d51923 #d51923
darkColorValuetrue #424242 #424242
secondaryColorValuetrue #666666 #5C5C5C
lightColorValuetrue #ebebeb #ebebeb
primaryColorValuetrue #ff6358 #ff6358