UNPKG

@tamyla/ui-components-react

Version:

React-based UI component library with Factory Bridge pattern - integrates seamlessly with @tamyla/ui-components. Enhanced AI agent discoverability with structured component registry, comprehensive Storybook (8 components), and detailed guides.

143 lines (128 loc) 3.51 kB
/** * Tamyla UI Components - Design Tokens CSS * CSS Custom Properties generated from design tokens */ :root { /* Primary Colors */ --primary: #3b82f6; --primary-foreground: #ffffff; --primary-50: #eff6ff; --primary-100: #dbeafe; --primary-200: #bfdbfe; --primary-300: #93c5fd; --primary-400: #60a5fa; --primary-500: #3b82f6; --primary-600: #2563eb; --primary-700: #1d4ed8; --primary-800: #1e40af; --primary-900: #1e3a8a; /* Neutral Colors */ --neutral-50: #f9fafb; --neutral-100: #f3f4f6; --neutral-200: #e5e7eb; --neutral-300: #d1d5db; --neutral-400: #9ca3af; --neutral-500: #6b7280; --neutral-600: #4b5563; --neutral-700: #374151; --neutral-800: #1f2937; --neutral-900: #111827; /* Semantic Colors */ --success: #10b981; --success-foreground: #ffffff; --warning: #f59e0b; --warning-foreground: #ffffff; --error: #ef4444; --error-foreground: #ffffff; --destructive: #ef4444; --destructive-foreground: #ffffff; /* Surface Colors */ --background: #ffffff; --foreground: #111827; --surface-primary: #ffffff; --surface-secondary: #f9fafb; --surface-elevated: #ffffff; /* Text Colors */ --text-primary: #111827; --text-secondary: #6b7280; --text-tertiary: #9ca3af; --text-inverse: #ffffff; --text-disabled: #d1d5db; /* Border Colors */ --border: #e5e7eb; --border-secondary: #d1d5db; --border-focus: #3b82f6; --input: #e5e7eb; --ring: #3b82f6; /* Spacing */ --space-0: 0; --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; /* Typography */ --font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; --font-size-xs: 0.75rem; --font-size-sm: 0.875rem; --font-size-base: 1rem; --font-size-lg: 1.125rem; --font-size-xl: 1.25rem; --font-weight-normal: 400; --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700; /* Border Radius */ --radius: 0.25rem; --radius-sm: 0.125rem; --radius-md: 0.375rem; --radius-lg: 0.5rem; --radius-xl: 0.75rem; /* Shadows */ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Z-Index */ --z-dropdown: 1000; --z-sticky: 1020; --z-fixed: 1030; --z-modal: 1040; --z-popover: 1050; --z-tooltip: 1060; } /* Dark theme */ .dark { --background: #111827; --foreground: #f9fafb; --surface-primary: #111827; --surface-secondary: #1f2937; --surface-elevated: #1f2937; --text-primary: #f9fafb; --text-secondary: #e5e7eb; --text-tertiary: #9ca3af; --border: #374151; --border-secondary: #4b5563; } /* Base styles */ *, *::before, *::after { box-sizing: border-box; } body { margin: 0; font-family: var(--font-family); font-size: var(--font-size-base); line-height: 1.5; color: var(--foreground); background-color: var(--background); }