How to use @rmwc/theme - 1 common examples

To help you get started, we’ve selected a few @rmwc/theme examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jamesmfriedman / rmwc / src / rmwc / docs / app.tsx View on Github external
const getTheme = (themeName: string) => {
  const theme = {
    ...DEFAULT_THEME,
    ...(THEMES[themeName] || {})
  };

  const colors = getAutoColorsForTheme(theme);
  const merged = {
    ...TEXT_DEFAULTS,
    ...colors
  };

  const order: RMWC.ThemeOptionT[] = [
    'primary',
    'secondary',
    'error',
    'background',
    'surface',
    'onPrimary',
    'onSecondary',
    'onSurface',
    'onError',
    'textPrimaryOnBackground',

@rmwc/theme

RMWC Theme component

MIT
Latest version published 1 month ago

Package Health Score

84 / 100
Full package analysis

Popular @rmwc/theme functions