Skip to content

Latest commit

Β 

History

History
81 lines (56 loc) Β· 1.5 KB

File metadata and controls

81 lines (56 loc) Β· 1.5 KB

πŸ“š Storybook Configuration - LSX Design System

πŸš€ Quick Start

# Start Storybook
npm run storybook

# Build for production
npm run build-storybook

πŸ“‚ Configuration Files

  • main.ts - Main Storybook configuration (stories, addons, vite)
  • preview.tsx - Global decorators & design system integration
  • manager.ts - UI customization & LSX branding

🎯 Stories Location

Stories are ONLY loaded from:

/src/app/components/blocks/**/*.stories.tsx

This excludes:

  • ❌ Template files
  • ❌ Pattern files
  • ❌ Part files

🎨 Design System

All CSS variables and fonts are automatically available:

// CSS Variables
var(--background)
var(--foreground)
var(--primary)
var(--text-base)
var(--radius)

// Fonts
font-family: 'Lexend, sans-serif'     // UI/headings
font-family: 'Manrope, sans-serif'    // Body text

🌈 Theme Switching

Click the theme icon in the toolbar to switch between:

  • β˜€οΈ Light theme (light-theme class)
  • πŸŒ™ Dark theme (dark-theme class)

β™Ώ Accessibility Testing

Every story is automatically tested for WCAG 2.1 AA compliance.

Check the "Accessibility" tab in each story.

πŸ”§ Troubleshooting

Clear Cache:

rm -rf node_modules/.cache/storybook
rm -rf .storybook/.cache

Reinstall:

rm -rf node_modules
npm install

πŸ“š Documentation

See /STORYBOOK-ERRORS-FIXED.md for detailed troubleshooting guide.


LSX Design System - World-class component library πŸ†