Implement Theme Style Guide (theme.show)#6
Conversation
This commit implements a comprehensive, interactive style guide for themes. - Added `themes.show` route and corresponding `show` method in `ThemesController`. - Created `resources/js/pages/themes/show.tsx` which includes: - Dynamic color palette listing with HEX, RGB, and HSL values. - One-click copy controls for all color values with toast confirmations. - WCAG contrast ratio calculations for key color pairs (Text, Primary). - Live typography samples for Sans, Serif, and Mono fonts with copy controls. - Realistic component previews (Buttons, Inputs, Badges, Cards, Alerts). - Responsive light/dark mode preview sandbox. - Export section with CSS variables and JSON representation. - Integrated with existing `useCSSVars`, `useClipboard`, and `useAppearance` hooks. - Used `culori` for color processing and accessibility checks. Co-authored-by: claudemyburgh <6057076+claudemyburgh@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
I've created a new interactive style guide for themes at the
/themes/{theme}route. This page provides a deep dive into any selected theme, showing its color palettes (with HEX/RGB/HSL values and copy buttons), typography, and how it looks on actual UI components. It also includes accessibility contrast checks and an export section for developers. The implementation respects the existing design system and hooks.PR created automatically by Jules for task 5139519724171867797 started by @claudemyburgh