4.2.0 • Published 4 years ago

@usercentric/uc-design-system v4.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

UCDS

Provides core React building blocks that all other consuming packages are built around. This includes components, composers, themes, and more.

yarn add @usercentric/uc-design-system

Setup

Initialize the core package to apply globalization and theme-related settings.

import Core from '@usercentric/uc-design-system'

Core.initialize({
  defaultLocale: 'en',
  defaultTimezone: 'UTC',
  logger: logToSentry,
  name: 'AppName',
})

If defaultLocale and defaultTimezone are omitted, their values will be automatically detected from the user's browser settings.

You should call Core.initialize() before importing any component that leverages withStyles or useStyles for theme-related settings to take effect.