@framingui/core
Core design system pipeline: Theme → Blueprint → Screen generation

Installation
npm install @framingui/core
Quick Start
import { loadTheme, createBlueprint, render } from '@framingui/core';
const theme = loadTheme('calm-wellness');
const blueprint = createBlueprint({
name: 'Dashboard',
themeId: theme.id,
layout: 'dashboard',
components: [
{ type: 'Heading', props: { level: 1 }, children: ['Welcome'] },
{
type: 'Card',
children: [
{ type: 'Text', children: ['Your stats here'] },
{ type: 'Button', props: { variant: 'primary' }, children: ['View More'] },
],
},
],
});
const result = render(blueprint);
console.log(result.code);
Key Features
- 3-Layer Token System: Atomic → Semantic → Component architecture
- Type-Safe: Full TypeScript support with Zod validation
- OKLCH Color System: Perceptually uniform colors with WCAG validation
- Dark Mode: Built-in dark mode support
- Zero Dependencies: Only Zod for runtime validation
Documentation
See the official documentation for:
License
MIT