New top-level package organization replacing @core/* structure. Includes: - @config: Port configuration - @design-tokens: Theme system - @types: Domain types and models - @validation: Input validation - @ui: React component packages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
53 lines
1.7 KiB
TypeScript
53 lines
1.7 KiB
TypeScript
/**
|
|
* @lilith/design-tokens
|
|
*
|
|
* Shared design tokens (theme) for the lilith platform monorepo.
|
|
* Provides a single source of truth for design system values.
|
|
*
|
|
* @example
|
|
* ```typescript
|
|
* // Use the consolidated base tokens (recommended for theme adapters)
|
|
* import { baseTokens } from '@lilith/design-tokens';
|
|
*
|
|
* // Use the default theme (most apps)
|
|
* import { theme } from '@lilith/design-tokens';
|
|
*
|
|
* // Create a custom theme with overrides
|
|
* import { createTheme } from '@lilith/design-tokens';
|
|
* const myTheme = createTheme({ colors: { primary: { 600: '#ff0000' } } });
|
|
*
|
|
* // Use the portal-specific theme (portal app)
|
|
* import { portalTheme } from '@lilith/design-tokens';
|
|
* ```
|
|
*/
|
|
|
|
// Base tokens - Single source of truth (NEW)
|
|
export { baseTokens, colorPrimitives, typography, spacing, borderRadius, shadows, transitions, zIndices, breakpoints } from './base-tokens'
|
|
export type { BaseTokens, ColorPrimitives, Typography, Spacing, BorderRadius, Shadows, Transitions, ZIndices, Breakpoints } from './base-tokens'
|
|
|
|
// Database-driven theme system types (NEW)
|
|
export type {
|
|
ColorShade,
|
|
ColorPalette,
|
|
Typography as ThemeTypography,
|
|
SpacingScale,
|
|
BorderRadiusScale,
|
|
ShadowScale,
|
|
TransitionConfig,
|
|
ZIndexScale,
|
|
BreakpointScale,
|
|
ThemeDesignTokens,
|
|
Theme as DatabaseTheme,
|
|
DeploymentTheme,
|
|
ThemeVersion,
|
|
ThemeQueryFilters,
|
|
ThemeListResponse,
|
|
} from './types'
|
|
|
|
// Legacy theme system (to be phased out)
|
|
export { theme, baseTheme } from './theme'
|
|
export { createTheme } from './create-theme'
|
|
export { portalTheme } from './portal-theme'
|
|
export type { Theme, BaseTheme } from './theme'
|
|
export type { ThemeOverrides } from './create-theme'
|
|
export type { PortalTheme } from './portal-theme'
|