@gradeui/ui
v0.10.0
Published
Grade Design System — React components, theme engine, and design tokens
Maintainers
Readme
@gradeui/ui
React component library for the Grade Design System. Built on Tailwind CSS + Radix primitives, with a built-in OKLCH-based theme engine for runtime skinning.
Install
npm install @gradeui/ui
# or
pnpm add @gradeui/uiUsage
import { Button, Card, CardContent } from "@gradeui/ui";
import "@gradeui/ui/styles.css";
export default function Example() {
return (
<Card>
<CardContent>
<Button>Hello, Grade</Button>
</CardContent>
</Card>
);
}Tailwind preset
If you're using Tailwind in your consuming app, extend the Grade preset so brand tokens and OKLCH semantic colors resolve correctly:
// tailwind.config.ts
import gradePreset from "@gradeui/ui/tailwind-preset";
export default {
presets: [gradePreset],
content: [
"./app/**/*.{ts,tsx,mdx}",
"./node_modules/@gradeui/ui/dist/**/*.{js,mjs}",
],
};Theme engine
@gradeui/ui ships an OKLCH-based theme generator. Wrap your app in GradeThemeProvider (currently still named GradeThemeProvider pending rename — see upstream TODO) to get runtime theme switching.
License
MIT © Grade
