HCL Studio Demo
+Dynamic theming with perceptually uniform colors!
+diff --git a/HCL_STUDIO_USAGE_GUIDE.md b/HCL_STUDIO_USAGE_GUIDE.md new file mode 100644 index 0000000..8deb7e3 --- /dev/null +++ b/HCL_STUDIO_USAGE_GUIDE.md @@ -0,0 +1,1137 @@ +# HCL Studio Usage Guide + +## 🎨 Advanced Color Management with HCL Studio + +HCL Studio is a sophisticated Angular library for **perceptually uniform color palette generation** using the **HCL (Hue, Chroma, Lightness) color space**. It creates Material Design 3 compliant themes with proper contrast ratios and accessibility support. + +--- + +## 📋 What is HCL Studio? + +**HCL (Hue, Chroma, Lightness)** is a **perceptually uniform color space**, meaning equal changes in values produce equal visual differences. Unlike RGB or HSL, HCL provides: + +- ✅ **Perceptual uniformity** - Linear changes appear visually consistent +- ✅ **Better contrast control** - Precise lightness adjustments +- ✅ **Accessibility compliance** - WCAG-compliant contrast ratios +- ✅ **Material Design 3** - Full tonal palette generation + +--- + +## 🚀 Quick Start + +### 1. Add HCL Studio to Your Project + +```bash +# Add as submodule (recommended) +git submodule add https://git.sky-ai.com/jules/hcl-studio.git libs/hcl-studio + +# Build the library +cd libs/hcl-studio && npm install && npm run build +``` + +### 2. Configure TypeScript Paths + +In `tsconfig.json`: + +```json +{ + "compilerOptions": { + "paths": { + "hcl-studio": ["./libs/hcl-studio/dist"], + "hcl-studio/*": ["./libs/hcl-studio/dist/*"] + } + } +} +``` + +### 3. Basic Usage + +```typescript +// app.component.ts +import { Component, OnInit } from '@angular/core'; +import { HCLStudioService } from 'hcl-studio'; + +@Component({ + selector: 'app-root', + template: ` +
Dynamic theming with perceptually uniform colors!
+{{ theme.description }}
+\${{ product.price }}
+ +