Skip to content

Conversation

@akshayutture-augment
Copy link

@akshayutture-augment akshayutture-augment commented Nov 14, 2025

Test 7


Replicated from ai-code-review-evaluation/discourse-cursor#7


Note

Replaces many scale-color($primary, …) usages with dark-light-choose(…, scale-color($secondary, …)) to properly support dark themes across the app.

  • Styling/Theming:
    • Replace scale-color($primary, …) with dark-light-choose(scale-color($primary, …), scale-color($secondary, …)) for text, icons, borders, and backgrounds.
    • Applies across core/base styles, ensuring dark/light theme-aware colors.
  • Key Areas Updated:
    • Topic Lists & Posts: _topic-list.scss, topic-post.scss (desktop/mobile), desktop/topic-list.scss, desktop/topic.scss.
    • Header & Menus: base/header.scss, desktop/header.scss, dropdowns, notifications, search blurb/highlights.
    • Auth & Forms: base/login.scss, desktop/login.scss, mobile/login.scss, hints/descriptions.
    • Admin: common/admin/admin_base.scss (descriptions, badges, filters, lists, borders).
    • Components: badges and buttons (components/badges.css.scss, buttons.css.scss).
    • Modals & Compose: desktop/modal.scss, mobile/modal.scss, desktop/compose.scss, mobile/compose.scss.
    • Search/Share: base/search.scss, base/share_link.scss.
    • User Pages: base/user.scss, desktop/user.scss, mobile/user.scss, user badges.
    • Misc: queued posts, uploads, embeds, education text, coldmap classes.

Written by Cursor Bugbot for commit d38c4d5. Configure here.

@akshayutture-augment
Copy link
Author

cursor review

a {
font-weight: bold;
color: scale-color($primary, $lightness: 30%);
color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Light Theme Colors Too Bright

The light theme lightness value was incorrectly changed from 30% to 70% when wrapping in dark-light-choose(). The first argument should preserve the original light theme value of scale-color($primary, $lightness: 30%), not flip it to 70%. This causes the color to be much lighter than intended in light mode.

Fix in Cursor Fix in Web

.custom-message-length {
margin: -10px 0 10px 20px;
color: scale-color($primary, $lightness: 70%);
color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Light Theme Colors Too Dark

The light theme lightness value was incorrectly changed from 70% to 30% when wrapping in dark-light-choose(). The first argument should preserve the original light theme value of scale-color($primary, $lightness: 70%), not flip it to 30%. This causes the color to be much darker than intended in light mode.

Fix in Cursor Fix in Web

display: inline-block;
margin-top: 5px;
color: scale-color($primary, $lightness: 30%);
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Light Theme Colors Appear Overly Bright

The light theme lightness value was incorrectly changed from 30% to 50% when wrapping in dark-light-choose(). The first argument should preserve the original value of scale-color($primary, $lightness: 30%), and the dark theme should use scale-color($secondary, $lightness: 70%). This causes the color to be lighter than intended in light mode.

Fix in Cursor Fix in Web

display: inline-block;
margin-top: 5px;
color: scale-color($primary, $lightness: 30%);
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Light Theme Colors Appear Too Bright

The light theme lightness value was incorrectly changed from 30% to 50% when wrapping in dark-light-choose(). The first argument should preserve the original value of scale-color($primary, $lightness: 30%), and the dark theme should use scale-color($secondary, $lightness: 70%). This causes the color to be lighter than intended in light mode.

Fix in Cursor Fix in Web

margin-bottom: 4px;
margin-top: 0;
color: scale-color($primary, $lightness: 20%);
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Theme color lightness is inconsistent.

The light theme lightness value was incorrectly changed from 20% to 50% when wrapping in dark-light-choose(). The first argument should preserve the original value of scale-color($primary, $lightness: 20%), and the dark theme should use scale-color($secondary, $lightness: 80%). This causes the color to be much lighter than intended in light mode.

Fix in Cursor Fix in Web

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.

3 participants