hypnagaga/src/components/Theme/stories/docs/customise.md
Jon McClure 3e144dd43e docs
2022-08-20 21:22:24 +01:00

463 B

You can customise the theme of your page in two ways:

First, you can choose the base theme, either light or dark.

From there, you can pass a custom theme object to the theme prop. (Check out the "Control" column for theme in the table above to see what properties you can customise.)

<Theme
  base="dark"
  theme="{{
    colour: { accent: 'yellow' },
    font: { 'family-hed': 'freight-book' },
  }}"
>
  <!-- Page content -->
</Theme>