1.12.0 • Published 2 years ago

keirin-test v1.12.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Install the package

yarn add keirin-test

If using MUI

**theme.ts file // where you create your theme to pass to the provider

import { createTheme } from "@mui/material/styles"; // used to create a default mui theme
import { keirinMuiTheme } from "keirin-test"; // import the keirin theme

const defaultTheme = createTheme(); // create a default mui theme

const theme = createTheme(defaultTheme, {
  ...keirinMuiTheme,  // extend the default mui theme with keirin
  // other overrides
}

**ambient.d.ts file // add module augmentation to give you intellisense https://mui.com/material-ui/customization/theming/#custom-variables

import { keirinMuiTheme } from "keirin-test"; // import the keirin theme

declare module "@mui/material/styles" {
  interface Theme {
    keirin: typeof keirinMuiTheme.keirin;
  }

  interface ThemeOptions {
    keirin: typeof keirinMuiTheme.keirin;
  }
}

If not using MUI

import { color, spacing, breakpoints, ... } from "keirin"; // destructure any theme properties you want
1.12.0

2 years ago

1.10.0

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago