100+ copy-paste UI components in plain HTML and CSS: no dependencies, no build step.
Semantic Components Roadmap
Current Status (Phase 1: Complete ✅)
Bootstrap Replacement MVP - Completed
- 12 semantic components covering all Bootstrap use cases
- Intent-based design (primary, success, warning, danger, neutral)
- Mobile-first with 44px touch targets
- WCAG AAA accessibility
- Modality-agnostic (works with voice, keyboard, touch)
- Zero framework dependencies
Components:
- semantic-action (buttons)
- semantic-card (containers)
- semantic-input (forms)
- semantic-tabs (navigation)
- semantic-modal (dialogs)
- semantic-disclosure (accordions)
- semantic-progress (indicators)
- semantic-badge (labels)
- semantic-popover (tooltips)
- semantic-breadcrumb (navigation)
Demo Pages Created:
- demo-app-full.html - Modern dashboard (dark theme, glassmorphism)
- demo-blog.html - Blog/content site
- demo-askrobots.html - Retro Windows 98 aesthetic
- demo-askrobots-modern.html - Modern dark multi-AI interface
- demo-askrobots-hybrid.html - BBS/terminal with CRT effects
Phase 2: Layout Components (Next) 🎯
Goal: Add semantic layout components that neither Tailwind nor Bootstrap have.
Why This Matters:
- Tailwind only has utility classes (flex, grid, gap-4) - repetitive to write
- Bootstrap has CSS classes (.container, .row) - no Web Component behavior
- Our approach: Semantic components with built-in accessibility and modality support
Components to Build:
1. semantic-stack
Vertical or horizontal stacking with consistent spacing.
<semantic-stack direction="vertical" spacing="4" align="start">
<semantic-action>Button 1</semantic-action>
<semantic-action>Button 2</semantic-action>
</semantic-stack>
Attributes:
direction: "vertical" | "horizontal" (default: "vertical")spacing: "1" | "2" | "3" | "4" | "6" | "8" (default: "4")align: "start" | "center" | "end" | "stretch" (default: "stretch")justify: "start" | "center" | "end" | "between" | "around" (default: "start")wrap: boolean (default: false)
Benefits:
- Cleaner than
<div class="flex flex-col gap-4"> - Enforces design system spacing
- Automatic ARIA for navigation stacks
- Voice-navigable items
2. semantic-grid
Responsive grid layouts with automatic columns.
<semantic-grid cols="3" gap="6" responsive>
<semantic-card>Card 1</semantic-card>
<semantic-card>Card 2</semantic-card>
<semantic-card>Card 3</semantic-card>
</semantic-grid>
Attributes:
cols: "1" | "2" | "3" | "4" | "auto-fit" | "auto-fill" (default: "auto-fit")gap: "1" | "2" | "3" | "4" | "6" | "8" (default: "4")min-width: minimum column width for auto layouts (default: "250px")responsive: boolean - automatically adjust columns on mobile (default: true)
Benefits:
- Simpler than CSS Grid classes
- Mobile-responsive by default
- Accessible grid navigation
- Consistent spacing system
3. semantic-container
Max-width containers with responsive padding.
<semantic-container size="large">
<!-- Content -->
</semantic-container>
Attributes:
size: "small" | "medium" | "large" | "xlarge" | "full" (default: "large")padding: boolean - add responsive padding (default: true)
Sizes:
- small: 640px
- medium: 768px
- large: 1024px
- xlarge: 1280px
- full: 100%
Benefits:
- Consistent max-widths
- Responsive padding built-in
- Landmark role for accessibility
Phase 3: Marketing Components (Future)
Pre-built marketing sections that combine layout + interactive components:
- semantic-hero - Hero sections with CTA
- semantic-feature-grid - Feature showcases
- semantic-pricing-table - Pricing comparisons
- semantic-testimonial - Customer testimonials
- semantic-cta-section - Call-to-action blocks
- semantic-footer - Multi-column footers
Phase 4: Advanced Features (Future)
- Utility Class Support - Tailwind Plus integration
- Theme System - CSS custom property tokens
- Animation Library - Reduced-motion aware
- Form Validation - Built-in validation system
- Data Tables - Sortable, filterable tables
Design Principles
Our semantic components are unique because they're:
- Semantic - Components describe intent, not appearance
- Modality-Agnostic - Work with voice, keyboard, touch, mouse
- Accessible by Default - WCAG AAA compliance built-in
- Context-Aware - Adapt to user environment and needs
- Zero Dependencies - Native Web Components, no framework
- Future-Proof - New platforms supported automatically
Why This Approach Wins
vs. Bootstrap:
- Web Components (better encapsulation)
- Intent-based (semantic meaning)
- Modality-agnostic (voice/keyboard ready)
vs. Tailwind:
- Less repetition (components > utilities)
- Built-in accessibility
- Semantic HTML (better for SEO/screen readers)
vs. Material/Ant Design:
- No framework lock-in
- Smaller bundle size
- Native browser features
- Customizable styling
Implementation Notes
- All components use Shadow DOM for encapsulation
- CSS custom properties for theming
- Event-driven architecture with CustomEvents
- Mobile-first responsive design
- Touch targets minimum 44px (WCAG AAA)
- Reduced motion preferences respected
Success Metrics
Phase 2 will be successful when:
- ✅ Layout components added to semantic-components.js
- ✅ Test pages created for each layout component
- ✅ Demo pages rebuilt using layout components (cleaner markup)
- ✅ Documentation updated with examples
- ✅ All tests passing with new components
Current Phase: Phase 2 - Layout Components Status: Ready to begin implementation Next Step: Add semantic-stack, semantic-grid, semantic-container to semantic-components.js