9.3.0 • Published 2 months ago

@waystone/theme v9.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@waystone/theme

This is an internal dependency of @waystone/ui

Docs

Click the badge below to view the components in storybook.

Storybook Enabled

Installation

Run the relevant script for your package manager

Package managerScript
npmnpm i @waystone/ui@latest @emotion/react theme-ui
yarnyarn add @waystone/ui@latest @emotion/react theme-ui
pnpmpnpm i @waystone/ui@latest @emotion/react theme-ui

Usage

Import the Waystone component and use it inside your App.tsx

export const App = () => {
  return (
    <StrictMode>
      <Waystone>
        <YourAppHere />
      </Waystone>
    </StrictMode>
  );
};

Customizing the theme

Provide your custom theme into the theme prop of the Waystone component. The default theme will be merged with the one you provide.

export const App = () => {
  return (
    <StrictMode>
      <Waystone
        theme={{
          colors: {
            primary: 'blue',
          },
        }}
      >
        <YourApp />
      </Waystone>
    </StrictMode>
  );
};
9.3.0

2 months ago

9.2.5

2 months ago

9.2.4

2 months ago

9.2.3

3 months ago

9.2.2

3 months ago

9.2.1

3 months ago

9.2.0

3 months ago

9.1.0

9 months ago

9.0.0

10 months ago