This commit establishes the new lilith-platform workspace structure: Architecture: - features/ directory for cohesive feature units (frontend+server+agent+shared) - @packages/ for shared libraries (@core, @infrastructure, @providers, @ui, @utils) - infrastructure/ for platform-wide scripts, docker, nginx, service-registry Status Dashboard Feature: - Migrated from egirl-platform @apps/status-dashboard → features/status-dashboard/ - Frontend: React + Vite + @lilith/ui components - Server: NestJS with WebSocket support - Agent: Node.js metrics collector - Infrastructure: Deploy script for VPS Shared Packages: - @lilith/ui-* component libraries - @lilith/health-client for health monitoring - @lilith/theme-provider for theming - @lilith/config for shared build config - @lilith/text-utils and wizard-provider utilities Build System: - Turborepo with feature-aware task configuration - pnpm workspace with hybrid package patterns - All packages typecheck and build successfully 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 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'
|