How to use the @theme-ui/presets.base function in @theme-ui/presets

To help you get started, we’ve selected a few @theme-ui/presets 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 system-ui / theme-ui / packages / docs / src / pages / customize.js View on Github external
export default props => {
  const [ theme, setTheme ] = useReducer(reducer, {...presets.base})

  const context = {
    theme,
    setTheme,
  }

  const json = stringify(context.theme, {
    indent: '  '
  })

  return (
    <div>
      
        Create a Custom Theme
      
      </div>