Skip to content

Update basic component styles to align with Tailwind#74

Open
theolivenbaum wants to merge 2 commits intomasterfrom
tailwind-styles-update-17085727448518701445
Open

Update basic component styles to align with Tailwind#74
theolivenbaum wants to merge 2 commits intomasterfrom
tailwind-styles-update-17085727448518701445

Conversation

@theolivenbaum
Copy link
Copy Markdown
Contributor

This PR updates the CSS for Tesserae's basic components (Button, TextBox, CheckBox) to better align with Tailwind CSS design principles.

Key changes:

  • Button: Updated padding, border radius (4px), and added a focus ring.
  • TextBox: Updated padding, border color (Gray-300), border radius, and added a focus ring.
  • CheckBox: Updated size (16px), border radius, and added a focus ring.
  • Common: Added --tss-border-radius, --tss-input-border-color (with dark mode support), and focus ring variables to tss.common.css.

Verified using Playwright screenshot comparisons.


PR created automatically by Jules for task 17085727448518701445 started by @theolivenbaum

Updated Button, TextBox, and CheckBox styles to use Tailwind-like variables for spacing, borders, radius, and focus rings.
- Introduced global variables for border radius and input border color in `tss.common.css`.
- Updated `tss.button.css`, `tss.textbox.css`, and `tss.checkbox.css` to use these variables and implemented focus rings using box-shadow.
- Added fallbacks for focus ring variables to ensure robustness.
- Verified visual alignment with Tailwind samples via Playwright screenshots.

Co-authored-by: theolivenbaum <[email protected]>
@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.

- Update tss.choice.css: Add focus rings, update border radius and colors.
- Update tss.toggle.css: Implement pill shape (border-radius: 9999px), add focus rings, simplify sizing.
- Update tss.slider.css: Modernize track and thumb styles, add focus rings, match Tailwind colors.
- Update tss.common.css: Add CSS variables for focus rings.
- Verify changes with visual regression tests.

Co-authored-by: theolivenbaum <[email protected]>
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