@grundtone/core
v2.1.0
Published
Core types and utilities for Grundtone
Downloads
47
Readme
@grundtone/core
Foundation package for the Grundtone design system. Provides the theme system, TypeScript types, and presets that all other packages build on.
Installation
npm install @grundtone/coreUsage
import { createTheme, type ThemeConfig } from '@grundtone/core';
const { light, dark } = createTheme({
light: {
colors: {
primary: '#2563eb',
background: '#ffffff',
},
},
dark: {
colors: {
primary: '#3b82f6',
background: '#0a0a0a',
},
},
});Exports
Theme
createTheme()- Create light/dark theme configurationsDEFAULT_THEME- Default theme configuration- Theme presets
Types
ThemeConfig- Theme configuration interfaceThemeMode- Light/dark mode typeComponentProps- Base component props interfaceSize- Size variants ('sm' | 'md' | 'lg')Variant- Component variants ('primary' | 'secondary' | 'tertiary')
Branding
- Branding configuration and utilities
Documentation
See grundtone.com for full documentation.
License
MIT
