[Bug]: Low contrast on color swatch borders in Theme Lab (Layout Editor)

Open Beginner friendly
#1,486 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@yashsarvaiya45 is already working on this.

Since Dec 4, 2026.

  • #1487 by @yashsarvaiya45 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
79/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, react
Domain
design, frontend

Research direction

Run packages/layout_editor with yarn dev, then open Theme Lab → Colors → Palette and compare the swatch borders in Light and Dark modes. Find where the palette swatches get their border styling and check how it uses colors.border. Adjust the styling so swatches stay visible in both modes; done means the listed dark swatches and white swatches have clear borders.

Written by the indexing model from the issue text.

Description

bug
Description

In the Layout Editor's Theme Lab -> Colors -> Palette section, color swatch boxes use colors.border for their border styling. In Dark mode, colors.border is a very dark shade (rgb(39, 39, 42)), causing dark swatches (background, card, popover, primaryForeground, secondary, muted, accent, border, input) to blend into the dark panel background and become barely visible. Even in Light mode, white swatches have very faint borders.

Steps to Reproduce
  1. Run packages/layout_editor (yarn dev) and open the Layout Editor.
  2. Click Start Theming ! to open Theme Lab.
  3. Under Colors, switch Mode to Dark.
  4. Observe the color swatch boxes next to background, card, popover, secondary, muted, etc.
Expected Behavior

Color swatch boxes should have clear, theme-aware borders so they remain easily visible and clickable in both Light and Dark modes.

Actual Behavior

Dark color swatches blend into the dark Theme Lab background due to low border contrast.

Screenshots
Before Light Mode Before Dark Mode
Dominant language
JavaScript
Stars
171
Forks
421
Avg merge
3d 6h
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/EmbeddedChat

All issues in RocketChat/EmbeddedChat

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.