JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 636
  • Score
    100M100P100Q87598F
  • License MIT

Grade Design System — React components, theme engine, and design tokens

Package Exports

  • @gradeui/ui
  • @gradeui/ui/styles.css
  • @gradeui/ui/tailwind-preset

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/ui

Usage

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