|
| 1 | +export interface DesignScheme { |
| 2 | + palette: { [key: string]: string }; // Changed from string[] to object |
| 3 | + features: string[]; |
| 4 | + font: string[]; |
| 5 | +} |
| 6 | + |
| 7 | +export const defaultDesignScheme: DesignScheme = { |
| 8 | + palette: { |
| 9 | + primary: '#9E7FFF', |
| 10 | + secondary: '#38bdf8', |
| 11 | + accent: '#f472b6', |
| 12 | + background: '#171717', |
| 13 | + surface: '#262626', |
| 14 | + text: '#FFFFFF', |
| 15 | + textSecondary: '#A3A3A3', |
| 16 | + border: '#2F2F2F', |
| 17 | + success: '#10b981', |
| 18 | + warning: '#f59e0b', |
| 19 | + error: '#ef4444', |
| 20 | + }, |
| 21 | + features: ['rounded'], |
| 22 | + font: ['sans-serif'], |
| 23 | +}; |
| 24 | + |
| 25 | +export const paletteRoles = [ |
| 26 | + { |
| 27 | + key: 'primary', |
| 28 | + label: 'Primary', |
| 29 | + description: 'Main brand color - use for primary buttons, active links, and key interactive elements', |
| 30 | + }, |
| 31 | + { |
| 32 | + key: 'secondary', |
| 33 | + label: 'Secondary', |
| 34 | + description: 'Supporting brand color - use for secondary buttons, inactive states, and complementary elements', |
| 35 | + }, |
| 36 | + { |
| 37 | + key: 'accent', |
| 38 | + label: 'Accent', |
| 39 | + description: 'Highlight color - use for badges, notifications, focus states, and call-to-action elements', |
| 40 | + }, |
| 41 | + { |
| 42 | + key: 'background', |
| 43 | + label: 'Background', |
| 44 | + description: 'Page backdrop - use for the main application/website background behind all content', |
| 45 | + }, |
| 46 | + { |
| 47 | + key: 'surface', |
| 48 | + label: 'Surface', |
| 49 | + description: 'Elevated content areas - use for cards, modals, dropdowns, and panels that sit above the background', |
| 50 | + }, |
| 51 | + { key: 'text', label: 'Text', description: 'Primary text - use for headings, body text, and main readable content' }, |
| 52 | + { |
| 53 | + key: 'textSecondary', |
| 54 | + label: 'Text Secondary', |
| 55 | + description: 'Muted text - use for captions, placeholders, timestamps, and less important information', |
| 56 | + }, |
| 57 | + { |
| 58 | + key: 'border', |
| 59 | + label: 'Border', |
| 60 | + description: 'Separators - use for input borders, dividers, table lines, and element outlines', |
| 61 | + }, |
| 62 | + { |
| 63 | + key: 'success', |
| 64 | + label: 'Success', |
| 65 | + description: 'Positive feedback - use for success messages, completed states, and positive indicators', |
| 66 | + }, |
| 67 | + { |
| 68 | + key: 'warning', |
| 69 | + label: 'Warning', |
| 70 | + description: 'Caution alerts - use for warning messages, pending states, and attention-needed indicators', |
| 71 | + }, |
| 72 | + { |
| 73 | + key: 'error', |
| 74 | + label: 'Error', |
| 75 | + description: 'Error states - use for error messages, failed states, and destructive action indicators', |
| 76 | + }, |
| 77 | +]; |
| 78 | + |
| 79 | +export const designFeatures = [ |
| 80 | + { key: 'rounded', label: 'Rounded Corners' }, |
| 81 | + { key: 'border', label: 'Subtle Border' }, |
| 82 | + { key: 'gradient', label: 'Gradient Accent' }, |
| 83 | + { key: 'shadow', label: 'Soft Shadow' }, |
| 84 | + { key: 'frosted-glass', label: 'Frosted Glass' }, |
| 85 | +]; |
| 86 | + |
| 87 | +export const designFonts = [ |
| 88 | + { key: 'sans-serif', label: 'Sans Serif', preview: 'Aa' }, |
| 89 | + { key: 'serif', label: 'Serif', preview: 'Aa' }, |
| 90 | + { key: 'monospace', label: 'Monospace', preview: 'Aa' }, |
| 91 | + { key: 'cursive', label: 'Cursive', preview: 'Aa' }, |
| 92 | + { key: 'fantasy', label: 'Fantasy', preview: 'Aa' }, |
| 93 | +]; |
0 commit comments