@elyracode/design-tools
v0.6.2
Published
Elyra extension for UI design -- live browser preview, screenshot capture, and visual QA
Maintainers
Readme
@elyracode/design-tools
Design tools for Elyra -- live browser preview, screenshot capture, and Tailwind design system checks.
Install
elyra install npm:@elyracode/design-toolsTools
| Tool | Description |
|------|-------------|
| design_preview | Render HTML/Tailwind in the browser with auto-reload. Iterate on design in real-time. |
| screenshot_url | Capture a screenshot of any URL (localhost or web). Returns image for visual QA. |
| design_system_check | Analyze files for Tailwind consistency: spacing, colors, responsive, dark mode, accessibility. |
Commands
/design-- Interactive selector for all design tools
Usage
Live Preview
> Preview a pricing table with 3 tiers using Tailwind
> Show me a hero section with gradient background
> Preview this component in dark modeThe agent writes HTML with Tailwind classes, opens it in your browser, and the page auto-reloads every 2 seconds as you iterate.
Visual QA
> Take a screenshot of localhost:8000 and check the layout
> Screenshot the login page on mobile viewport
> Capture the dashboard and evaluate the spacingThe agent captures a screenshot and analyzes it with vision capabilities to spot layout issues, alignment problems, and responsive breakpoints.
Design System Check
> Check resources/views/dashboard.blade.php for design consistency
> Analyze the spacing and colors in my pricing componentChecks for: mixed spacing scales, missing responsive breakpoints, no hover/focus states, hardcoded colors, missing dark mode support, and conflicting classes.
Requirements
- Preview: No dependencies (uses Tailwind CDN)
- Screenshots: Install Puppeteer globally for automated captures:
npm install -g puppeteer - Design Check: No dependencies
