aios-core
Version:
Synkra AIOS: AI-Orchestrated System for Full Stack Development - Core Framework
186 lines (136 loc) โข 4.09 kB
Markdown
# 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 ๐