Skip to content

Implement Theme Style Guide (theme.show)#6

Merged
claudemyburgh merged 1 commit into
mainfrom
feature/theme-style-guide-5139519724171867797
May 11, 2026
Merged

Implement Theme Style Guide (theme.show)#6
claudemyburgh merged 1 commit into
mainfrom
feature/theme-style-guide-5139519724171867797

Conversation

@claudemyburgh
Copy link
Copy Markdown
Member

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

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>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@claudemyburgh claudemyburgh merged commit 4c3d98f into main May 11, 2026
0 of 4 checks passed
@claudemyburgh claudemyburgh deleted the feature/theme-style-guide-5139519724171867797 branch May 15, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant