UNPKG

aios-core

Version:

Synkra AIOS: AI-Orchestrated System for Full Stack Development - Core Framework

186 lines (136 loc) โ€ข 4.09 kB
# AIOS Color Palette - Quick Reference **Version:** 2.1.0 | **Status:** โœ… Active --- ## ๐ŸŽจ Visual Palette ### Brand Colors ``` ๐ŸŸฃ PRIMARY #8B5CF6 โ”‚ Purple โ”‚ ClickUp-inspired โ”‚ Questions, headers, CTAs ๐Ÿ”ด SECONDARY #EC4899 โ”‚ Magenta โ”‚ Logo gradient โ”‚ Highlights, emphasis ๐Ÿ”ต TERTIARY #3B82F6 โ”‚ Blue โ”‚ Logo gradient โ”‚ Secondary actions, links ``` ### Functional Colors ``` ๐ŸŸข SUCCESS #10B981 โ”‚ Green โ”‚ Checkmarks, completed steps ๐ŸŸ  WARNING #F59E0B โ”‚ Orange โ”‚ Warnings, confirmations ๐Ÿ”ด ERROR #EF4444 โ”‚ Red โ”‚ Errors, critical alerts ๐Ÿ”ท INFO #06B6D4 โ”‚ Cyan โ”‚ Info messages, tips ``` ### Neutral Colors ``` โšช MUTED #94A3B8 โ”‚ Light Gray โ”‚ Subtle text, disabled states โšซ DIM #64748B โ”‚ Dark Gray โ”‚ Secondary text ``` --- ## ๐Ÿš€ Quick Start ### JavaScript/Node.js ```javascript // Import the AIOS color system const { colors, status, headings } = require('./src/utils/aios-colors'); // Use in your code console.log(headings.h1('Welcome to AIOS!')); console.log(status.success('Installation complete!')); console.log(status.tip('Press Enter to continue')); ``` ### CSS/Tailwind ```css /* Import CSS variables */ :root { --aios-primary: #8B5CF6; --aios-success: #10B981; --aios-error: #EF4444; } /* Use in your styles */ .button-primary { background: var(--aios-primary); } ``` --- ## ๐Ÿ“‹ Common Patterns ### Welcome Screen ```javascript console.log(headings.h1('๐ŸŽ‰ Welcome to AIOS v4.2 Installer!')); console.log(colors.info('Let\'s configure your project...\n')); ``` ### Interactive Question ```javascript { type: 'list', name: 'choice', message: colors.primary('Select an option:'), choices: [ { name: colors.highlight('Option 1') + colors.dim(' (recommended)'), value: '1' }, { name: 'Option 2', value: '2' } ] } ``` ### Status Feedback ```javascript console.log(status.loading('Installing dependencies...')); // ... async operation ... console.log(status.success('Dependencies installed!')); ``` ### Error Handling ```javascript try { // operation } catch (error) { console.log(status.error('Operation failed')); console.log(colors.dim(` Details: ${error.message}`)); console.log(status.tip('Try running with --verbose for more info')); } ``` --- ## ๐ŸŽฏ Usage Rules ### โœ… DO - Use `colors.primary` for main questions - Use `status.*` helpers for feedback (includes icons) - Use `colors.highlight` for key information - Use `colors.dim` for secondary text - Always include text indicators with colors (โœ“, โœ—, โš ๏ธ) ### โŒ DON'T - Don't hardcode hex colors (use the module) - Don't use red for anything except errors - Don't use too many colors in one line - Don't rely solely on color (accessibility) --- ## ๐Ÿ“Š Color Hierarchy ``` Level 1: Brand Emphasis โ”œโ”€ colors.brandPrimary (Purple bold) โ””โ”€ headings.h1() (Purple bold + spacing) Level 2: Primary Content โ”œโ”€ colors.primary (Purple) โ”œโ”€ headings.h2() (Purple bold) โ””โ”€ status.* (Colored + icon) Level 3: Secondary Content โ”œโ”€ colors.info (Cyan) โ””โ”€ Regular text (Terminal default) Level 4: Tertiary Content โ”œโ”€ colors.muted (Light gray) โ””โ”€ colors.dim (Dark gray) ``` --- ## ๐Ÿงช Test Your Implementation Run the visual demo: ```bash node examples/color-palette-demo.js ``` Expected output: - โœ… All brand colors display correctly - โœ… Status indicators show with icons - โœ… Gradients are smooth - โœ… Text hierarchy is clear --- ## ๐Ÿ“š Full Documentation - **Complete Guide:** [AIOS-COLOR-PALETTE-V2.1.md](./AIOS-COLOR-PALETTE-V2.1.md) - **Color Module:** `src/utils/aios-colors.js` - **Demo:** `examples/color-palette-demo.js` --- ## ๐Ÿ”— Brand References - **Logo:** Gradient (Magenta โ†’ Orange โ†’ Purple โ†’ Blue) - **Primary Brand:** ClickUp Purple (#8B5CF6) - **Accessibility:** WCAG AA compliant --- **Created by:** Uma (UX-Design Expert) ๐ŸŽจ **Last Updated:** 2025-01-20 โ€” Uma, desenhando com empatia ๐Ÿ’