100+ copy-paste UI components in plain HTML and CSS: no dependencies, no build step.

0 downloads

dbbasic-web-native/ROADMAP.md
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-web-native.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-web-native.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-web-native.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add canonical.html v1.0 - The single source of truth for usability standards fb6e650 1 year ago History
ROADMAP.md · 5.6 KB · 184 lines

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:

  1. semantic-action (buttons)
  2. semantic-card (containers)
  3. semantic-input (forms)
  4. semantic-tabs (navigation)
  5. semantic-modal (dialogs)
  6. semantic-disclosure (accordions)
  7. semantic-progress (indicators)
  8. semantic-badge (labels)
  9. semantic-popover (tooltips)
  10. 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:

  1. semantic-hero - Hero sections with CTA
  2. semantic-feature-grid - Feature showcases
  3. semantic-pricing-table - Pricing comparisons
  4. semantic-testimonial - Customer testimonials
  5. semantic-cta-section - Call-to-action blocks
  6. semantic-footer - Multi-column footers

Phase 4: Advanced Features (Future)

  1. Utility Class Support - Tailwind Plus integration
  2. Theme System - CSS custom property tokens
  3. Animation Library - Reduced-motion aware
  4. Form Validation - Built-in validation system
  5. Data Tables - Sortable, filterable tables

Design Principles

Our semantic components are unique because they're:

  1. Semantic - Components describe intent, not appearance
  2. Modality-Agnostic - Work with voice, keyboard, touch, mouse
  3. Accessible by Default - WCAG AAA compliance built-in
  4. Context-Aware - Adapt to user environment and needs
  5. Zero Dependencies - Native Web Components, no framework
  6. 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:

  1. ✅ Layout components added to semantic-components.js
  2. ✅ Test pages created for each layout component
  3. ✅ Demo pages rebuilt using layout components (cleaner markup)
  4. ✅ Documentation updated with examples
  5. ✅ 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