11.0.0 • Published 2 months ago

@waystone/ui v11.0.0

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

@waystone/ui

@waystone/ui is the recommended way of installing the design system of Draekien-Industries.

Docs

Click the badge below to view the components in storybook.

Storybook Enabled

What's included

PackageDescription
@waystone/corecore functionality of the design system
@waystone/themethe theme-ui theme provider
@waystone/componentsall of the pre-made components
@waystone/utilsutilities that are used by the design system
@waystone/syntax-highlightera type safe version of react-syntax-highlighter

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>
  );
};
11.0.0

2 months ago

10.0.1

2 months ago

10.0.0

2 months ago

9.1.4

3 months ago

9.1.3

3 months ago

9.1.2

3 months ago

9.1.1

3 months ago

9.1.0

9 months ago

9.0.0

10 months ago