@newtonschool/koyo-ui
v0.1.1
Published
Koyo UI React components and design tokens for Newton School products.
Maintainers
Keywords
Readme
@newtonschool/koyo-ui
Koyo UI is a shadcn-based React component package mapped to Koyo design tokens.
pnpm add @newtonschool/koyo-uiSetup
Add the following to your app's main CSS file (e.g. globals.css):
@import "tailwindcss";
@import "@newtonschool/koyo-ui/tokens.css";
@import "@newtonschool/koyo-ui/theme.css" layer(theme);
@source "../../node_modules/@newtonschool/koyo-ui/dist";- tokens.css — design token CSS variables (
:rootand.dark) - theme.css — Tailwind
@theme inlinemappings so utility classes likebg-koyo-button-primaryresolve correctly - @source — tells Tailwind to scan koyo-ui dist for class names used by components
Then use components with subpath imports:
import { Button } from '@newtonschool/koyo-ui/button'
export function Example() {
return <Button>Continue</Button>
}The package is maintained in the Newton School Koyo UI repository and powers the docs site at https://newton-school.github.io/koyo-ui/.
