You need to enable JavaScript to run this app.
menu
RMWC
14.3.5
8.0.8
5.7.2
4.0.6
3.0.11
2.2.3
1.9.4
14.3.5
arrow_drop_down
search
No results found
color_lens
Themes
check
Baseline
Crane
Fortnightly
Miami
Dark
ThemeProvider
CSS
Theme your App!
Place this tag around the root of your App, or anywhere you want to apply a custom theme.
import
{ ThemeProvider }
from
'rmwc/Theme';
<
ThemeProvider
options
={{
primary:
'#6200ee',
secondary:
'#03dac4',
error:
'#b00020',
background:
'#fff',
surface:
'#fff',
onPrimary:
'rgba(255, 255, 255, 1)',
onSecondary:
'rgba(0, 0, 0, 0.87)',
onSurface:
'rgba(0, 0, 0, 0.87)',
onError:
'#fff',
textPrimaryOnBackground:
'rgba(0, 0, 0, 0.87)',
textSecondaryOnBackground:
'rgba(0, 0, 0, 0.54)',
textHintOnBackground:
'rgba(0, 0, 0, 0.38)',
textDisabledOnBackground:
'rgba(0, 0, 0, 0.38)',
textIconOnBackground:
'rgba(0, 0, 0, 0.38)',
textPrimaryOnLight:
'rgba(0, 0, 0, 0.87)',
textSecondaryOnLight:
'rgba(0, 0, 0, 0.54)',
textHintOnLight:
'rgba(0, 0, 0, 0.38)',
textDisabledOnLight:
'rgba(0, 0, 0, 0.38)',
textIconOnLight:
'rgba(0, 0, 0, 0.38)',
textPrimaryOnDark:
'white',
textSecondaryOnDark:
'rgba(255, 255, 255, 0.7)',
textHintOnDark:
'rgba(255, 255, 255, 0.5)',
textDisabledOnDark:
'rgba(255, 255, 255, 0.5)',
textIconOnDark:
'rgba(255, 255, 255, 0.5)'
}}
>
<
App
/>
</
ThemeProvider
>
Done