- DOCTYPE: HTML5 with
lang="en" - Head Elements Order:
- Meta charset and viewport
- Title with consistent pattern: "HAP's Color Learning Lab - [Station Name/Description]"
- Meta descriptions (educational SEO)
- Open Graph meta tags with HAP laptop image
- Favicon links (4 sizes using Cloudinary HAP favicon)
- Preconnect to Cloudinary
- Stylesheet link to
css/style.css
- Skip link for accessibility (first element in body)
- Header with HAP avatar and intro box
- Navigation: Inter-page navigation with position indicators
- Main content with
id="main-content" - Footer with consistent copyright and HAP trademark info
- HAP Avatar: 200x200px in header using Cloudinary images
- HAP Images: Multiple contextual images (waving, confused, learning)
- Image Specifications:
- Always use Cloudinary URLs with optimization parameters
- Include width/height attributes
- Add
decoding="async"and appropriatefetchpriority/loadingattributes
- First-person narrative throughout
- Relatable mistakes: Share specific color failures (hex chaos, #bada55 joke)
- Prof. Teeters references: Credit learning moments
- Casual tone: Contractions, occasional emojis (sparingly)
- Encouragement: Celebrate small wins, normalize mistakes
- Header with intro box: HAP's personal color struggle story
- Tab navigation (if multiple topics) or direct content sections
- Overview/learning objectives
- Interactive demos (critical for color learning)
- HAP Note Callouts with contextual advice
- Code examples with "My Old Way" vs "What I Learned"
- Practice exercises
- Bottom navigation to hub and next station
insight-card: Key learning pointsanalysis-grid: Before/after comparisonshap-note-callout: HAP's personal insights with imagewarning-box: Important discoveries/warningsprompt-box: Code examplesinteractive-demo: Color tools and visualizers
- Color format converter (like font-display visualizer)
- Contrast checker with live preview
- Palette builder with export functionality
- Color harmony visualizer
- CSS variables generator
- Dark mode toggle demo
- Use
demo-containerwrapper - Include controls, preview, and output sections
- Add copy buttons to code outputs
- Show real-time updates
- Include HAP's comments on results
--warm-orange: #E8A557
--soft-orange: #F4C584
--peach-background: #F4E8D8
--cream-white: #FFF8F0
--dark-brown: #3D2817
--medium-brown: #6B5444
--teal-accent: #5BA69C
--success-green: #6BBF59
--warning-red: #E85D75- Font: 'Nunito' for body text
- Code: 'Source Code Pro' or 'Courier New'
- Sizes: Use
clamp()for responsive sizing - Line length:
max-width: 75chfor readability
- Max-width: 1200px for content containers
- Grid layouts:
repeat(auto-fit, minmax())for responsive grids - Border radius:
--radius: 16pxand--radius-lg: 24px - Spacing: Consistent margin/padding using utility classes
- Always show "HAP's Old Way": Messy hex codes, inconsistent formatting
- Then "What I Learned": Clean CSS variables, organized system
- Use Prism.js for syntax highlighting
- Include copy buttons on all code blocks
<div class="prompt-box">
<div class="prompt-label">HAP's Old Way (Hex Chaos):</div>
<pre><code class="language-css">/* CSS here */</code></pre>
</div>- Top nav: Back to hub + position indicator ("Station X of 6")
- Bottom nav: Hub link + Next station link
- Consistent placement and styling
- Use native button elements
- JavaScript tab switching
- Active state styling
- Smooth transitions
- Include
easter-egg.jsscript - URL parameter pattern:
?hybitor?hybit=keyword - Dialog with HAP insights
- Color-specific parameters (hex, contrast, variables, etc.)
- Lighthouse target: 95+ score
- Image optimization: Cloudinary with
f_auto,q_auto - Lazy loading: For non-critical images
- Preconnect: To Cloudinary CDN
- Skip links
- Semantic HTML landmarks
- ARIA labels on interactive elements
- Keyboard navigation for all demos
- Focus indicators visible
- Alt text on all images
hybit-colors/
├── index.html # Hub with 6 station cards
├── stations/
│ ├── color-formats.html # Station 1
│ ├── color-systems.html # Station 2
│ ├── color-harmony.html # Station 3
│ ├── color-accessibility.html # Station 4
│ ├── modern-css-color.html # Station 5
│ └── ai-color-assistance.html # Station 6
├── css/
│ ├── style.css # Main styles
│ └── prism-hap-theme.css # Syntax highlighting
├── js/
│ └── easter-egg.js # HAP Insights
└── data/
└── hybit-insights.jsonc # Easter egg content
- Main tagline: "HAP's Learning Lab | An AI-Enhanced Educational Experience by Prof. Cynthia Teeters"
- HAP's sign-off message (color-specific)
- Copyright block with HAP image (80x80)
- Full trademark text
- Base: Mobile styles
- 768px: Tablet adjustments
- 480px: Small mobile specific fixes
- Grid stacking: Auto-stack on mobile
- Touch targets: Minimum 44x44px
- Hex code examples showing student problems
- Before/after transformations
- Live color previews (not just code)
- Accessibility warnings with contrast
- Real metrics (file sizes, contrast ratios)
- Interactive not static demos
- Started with only hex codes
- Mixed case sensitivity issues
- Had "47 different shades of blue"
- Discovered CSS variables ("game changer!")
- Learned about contrast (invisible text disaster)
- Now helps others avoid same mistakes
This design system ensures consistency with existing HAP labs while being specifically tailored for teaching color concepts through HAP's relatable learning journey.