Skip to content

Conversation

@everettbu
Copy link
Contributor

@everettbu everettbu commented Jul 26, 2025

Test 7

Summary by CodeRabbit

  • Style
    • Updated color styling across various components and pages to use a dynamic color selection, improving support for different themes (such as light and dark modes).
    • Replaced static color assignments with conditional color choices for text, icons, buttons, badges, and other UI elements, ensuring better visual consistency and adaptability.

@coderabbitai
Copy link

coderabbitai bot commented Jul 26, 2025

Walkthrough

This change systematically updates color assignments across numerous SCSS files by replacing direct usage of scale-color($primary, $lightness: X%) with a new function, dark-light-choose(). This function dynamically selects between a scaled primary and a scaled secondary color, likely to support light/dark theme adaptability. No logic, structure, or exports are changed.

Changes

Cohort / File(s) Change Summary
Admin Stylesheets
app/assets/stylesheets/common/admin/admin_base.scss
Replaced all direct color scaling on $primary with dark-light-choose() to select between scaled primary and secondary colors for various admin UI elements.
Base Stylesheets
app/assets/stylesheets/common/base/_topic-list.scss,
app/assets/stylesheets/common/base/discourse.scss,
app/assets/stylesheets/common/base/header.scss,
app/assets/stylesheets/common/base/login.scss,
app/assets/stylesheets/common/base/notification-options.scss,
app/assets/stylesheets/common/base/search.scss,
app/assets/stylesheets/common/base/share_link.scss,
app/assets/stylesheets/common/base/topic-post.scss,
app/assets/stylesheets/common/base/user-badges.scss,
app/assets/stylesheets/common/base/user.scss
Updated color assignments from single scaled primary color to dark-light-choose() between scaled primary and secondary colors for text, icons, badges, notifications, search, and user elements.
Component Stylesheets
app/assets/stylesheets/common/components/badges.css.scss,
app/assets/stylesheets/common/components/buttons.css.scss
Modified badge and button styles to use dark-light-choose() for background and text color, replacing single scaled primary color with a dynamic choice between scaled primary and secondary colors.
Desktop Stylesheets
app/assets/stylesheets/desktop/compose.scss,
app/assets/stylesheets/desktop/header.scss,
app/assets/stylesheets/desktop/login.scss,
app/assets/stylesheets/desktop/modal.scss,
app/assets/stylesheets/desktop/queued-posts.scss,
app/assets/stylesheets/desktop/topic-list.scss,
app/assets/stylesheets/desktop/topic-post.scss,
app/assets/stylesheets/desktop/topic.scss,
app/assets/stylesheets/desktop/upload.scss,
app/assets/stylesheets/desktop/user.scss
Replaced all direct color scaling with dark-light-choose() in compose, header, login, modal, queued-posts, topic-list, topic-post, topic, upload, and user stylesheets for various UI elements.
Embed Stylesheet
app/assets/stylesheets/embed.css.scss
Updated .username a.new-user color to use dark-light-choose() between scaled primary and secondary colors.
Mobile Stylesheets
app/assets/stylesheets/mobile/compose.scss,
app/assets/stylesheets/mobile/login.scss,
app/assets/stylesheets/mobile/modal.scss,
app/assets/stylesheets/mobile/topic-list.scss,
app/assets/stylesheets/mobile/topic-post.scss,
app/assets/stylesheets/mobile/topic.scss,
app/assets/stylesheets/mobile/upload.scss,
app/assets/stylesheets/mobile/user.scss
Replaced direct usage of scaled primary color with dark-light-choose() for color assignments across compose, login, modal, topic-list, topic-post, topic, upload, and user mobile stylesheets.

Sequence Diagram(s)

sequenceDiagram
    participant SCSS
    participant dark-light-choose
    participant ThemeContext

    SCSS->>dark-light-choose: Provide (scaled $primary, scaled $secondary)
    dark-light-choose->>ThemeContext: Check current theme (light/dark)
    ThemeContext-->>dark-light-choose: Return theme mode
    dark-light-choose-->>SCSS: Return selected color
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~18 minutes

Poem

A rabbit hopped through fields of hue,
Swapping colors, old for new—
Now light or dark, the themes can choose,
Between two shades, you cannot lose!
With dark-light-choose in every line,
The interface will always shine.
🐇✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch theme-color-scheme-post

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@everettbu
Copy link
Contributor Author

@coderabbitai review

@coderabbitai
Copy link

coderabbitai bot commented Jul 29, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🔭 Outside diff range comments (1)
app/assets/stylesheets/common/base/header.scss (1)

64-66: Dark-theme branch does not switch to $secondary

dark-light-choose(scale-color($header_primary, 50%), $header_primary) keeps $header_primary for dark mode instead of moving to a $secondary-based colour as mandated by the PR objective. Was this intentional? It breaks the new convention introduced elsewhere.

-        color: dark-light-choose(scale-color($header_primary, $lightness: 50%), $header_primary);
+        color: dark-light-choose(scale-color($header_primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
♻️ Duplicate comments (1)
app/assets/stylesheets/mobile/login.scss (1)

45-46: Same imbalance of lightness as above

See comment on line 17. Re-evaluate whether 50 % vs 50 % would satisfy the new requirement without producing glare in dark mode.

🧹 Nitpick comments (31)
app/assets/stylesheets/common/base/user.scss (2)

122-126: Duplicated colour expression – consider a variable

Same compound expression repeated on .username a and .name. You can reduce noise:

$accent-user-name: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%));

.username a,
.name { color: $accent-user-name; }

127-131: Minor: keep lightness percentages consistent

Title uses 50 %/50 % whereas the name uses 30 %/70 %. Double-check that difference is intentional and not a copy-paste miss.

app/assets/stylesheets/mobile/user.scss (1)

115-116: Five identical colour literals – extract a helper

dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%)) is repeated across .instructions, icons, name/title, and user-field copy. Define once:

$accent-50: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));

then reuse for clarity & maintainability.

Also applies to: 489-490, 497-498, 503-504, 580-581

app/assets/stylesheets/desktop/user.scss (1)

59-65: Consolidate repeated dark-light-choose(…50%)

Same comment as on the mobile sheet – the 50 % flavour appears six times. A single variable or mixin keeps desktop/mobile colour logic aligned:

$accent-50: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));

Also applies to: 173-174, 514-515, 522-523, 528-528, 603-604

app/assets/stylesheets/desktop/upload.scss (1)

20-20: Optional: extract repeated color formula into a variable/mixin

dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%)) appears in several places across the PR. Defining a semantic variable or helper (e.g. $text-muted) would avoid repeating the full expression and centralise control if you ever tweak the lightness values.

app/assets/stylesheets/mobile/modal.scss (1)

102-102: Consider balancing the two lightness values

scale-color($primary, $lightness: 30%) is considerably darker than $secondary at 70 %. If the intent is to show a “remaining characters” counter that reads similarly in both themes, you may want closer perceived luminance (e.g. 40 % / 60 %).

app/assets/stylesheets/common/base/search.scss (1)

31-38: Repeated colour formulas could be extracted to a variable / mixin

dark-light-choose(scale-color($primary, 40%), scale-color($secondary, 60%)) is now duplicated for .blurb and .date, while the highlight line uses a very similar expression.
Consider caching the computed colour in a local Sass variable (e.g. $search-blurb-colour) to avoid divergence and simplify future adjustments.

app/assets/stylesheets/desktop/topic.scss (1)

60-64: Edge-case: 75 % lightness on $primary may flatten brand colour

scale-color($primary, $lightness: 75%) pushes the shade extremely close to white, risking loss of brand identity and potential invisibility against light backgrounds.
Suggest capping at ~60 % or switching to mix($primary, $secondary, 70%) for a subtler tint.

app/assets/stylesheets/desktop/login.scss (2)

15-19: Minor – consider hover / focus states

Anchor text inside #login-form now inherits a dynamic colour but no hover/focus override is provided. Contrast may drop when the link gains the default browser focus outline.
Adding an explicit &:hover, &:focus { text-decoration: underline; } would signal interactivity without having to tweak colours further.


46-49: Consistency with other form labels

Most instructional labels elsewhere (e.g. registration, preferences) still use a static scaled $primary. Aligning all label colours on dark-light-choose() avoids mismatched hues between dark & light modes.

app/assets/stylesheets/desktop/compose.scss (1)

339-341: Color update looks correct – consider contrast testing

Switching to dark-light-choose() keeps the original 50 % lightness intent while adding dark-theme support. Nothing functionally wrong here, but it would be prudent to run your automated a11y/contrast checks to ensure the icon still meets WCAG AA in both themes.

app/assets/stylesheets/common/base/discourse.scss (1)

72-83: Repeated literal dark-light-choose() expressions – extract a Sass variable

The three cold-map rules differ only by the lightness numbers. Consider:

$cold-high:  dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%));
$cold-med:   dark-light-choose(scale-color($primary, $lightness: 60%), scale-color($secondary, $lightness: 40%));
$cold-low:   dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));

.coldmap-high { color: $cold-high !important; }
.coldmap-med  { color: $cold-med  !important; }
.coldmap-low  { color: $cold-low  !important; }

This reduces duplication and makes future palette tweaks easier.

app/assets/stylesheets/common/base/user-badges.scss (1)

95-99: Grant-count colour – minor maintainability note

Same duplication comment as earlier: you might centralise common dark-light-choose(scale-color(...)) values into variables to avoid a search-and-replace hunt next time the palette shifts.

app/assets/stylesheets/common/base/topic-post.scss (1)

53-56: Quote title colour – OK, but watch contrast

Same caution as before: run contrast checks because quote headers often sit on tinted backgrounds.

app/assets/stylesheets/mobile/login.scss (1)

17-18: Lightness percentages between themes look mismatched

The light theme variant is only +35 % lighter, while the dark-theme fallback jumps to +65 %. A 30 -point delta risks the two themes diverging in visual hierarchy and can blow past WCAG contrast limits. Unless there is a deliberate design rationale, consider keeping identical percentages (or at most ±5 -10 %) for consistency.

app/assets/stylesheets/mobile/compose.scss (2)

36-37: Very high lightness (+75 %) may wash out

A 75 % lightening of $primary can produce almost-white text on light themes, harming readability. Consider capping at ~60 % or lowering foreground alpha instead.


51-52: Consistent but duplicated literal

The same 50 %/50 % split is repeated many times across sheets. Extracting a variable (e.g. $base_link_lightness) would centralise future tweaks.

app/assets/stylesheets/common/base/_topic-list.scss (1)

48-52: Header icons split correctly, but leftover primary usage nearby

th button i.fa is updated, yet .topic-list.categories .category .badge-notification (line 115) still hard-codes scale-color($primary, 50%). For consistency, consider converting that as well.

app/assets/stylesheets/common/base/login.scss (1)

38-40: Consider extracting the repeated dark-light-choose(…50%) expression into a variable or small helper.

The exact same two-argument call with 50 % lightness on both $primary and $secondary appears twice just in this small fragment (and dozens of times across the PR). Declaring a local variable, e.g.

$accent-50: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));

and then using color: $accent-50; would:

  1. Reduce compile-time work for Sass,
  2. Make the intent obvious,
  3. Provide a single point of adjustment if design changes.

No functional change – purely a DRY/readability win.

Also applies to: 53-55

app/assets/stylesheets/desktop/topic-list.scss (1)

37-45: High duplication of identical dark-light-choose calls – create a helper/mixin.

The same pattern

dark-light-choose(scale-color($primary, $lightness: X%), scale-color($secondary, $lightness: X%))

is repeated for X = 20, 35, 50, 60, etc. Repetition makes later tweaks error-prone.

Suggestion (one-liner helper):

@function choose-tone($lightness) {
  @return dark-light-choose(
           scale-color($primary, $lightness: $lightness),
           scale-color($secondary, $lightness: $lightness)
         );
}

Then color: choose-tone(50%); gives the same result with far less noise.

Also applies to: 53-56, 130-146, 219-229

app/assets/stylesheets/mobile/topic-post.scss (1)

48-52: Re-use a variable for 50 % & 70 % lightness tones to cut CSS size by ~1 KB.

Mobile CSS is size-sensitive. The seven occurrences of the exact 50 % blend and two of the 70 % blend inflate the compiled stylesheet needlessly. Cache them in variables (or via choose-tone() as proposed earlier) near the top of the file.

Also applies to: 147-153, 180-196, 246-249, 268-272, 441-444, 497-500

app/assets/stylesheets/desktop/topic-post.scss (1)

34-35: Desktop topic-post has >40 identical choose calls – factor out to keep the file maintainable.

Even a mini-mixin will halve the vertical length of this SCSS and make future palette tweaks (e.g., switching to HSL) a one-line change.

No blocking issues, just a strong maintainability recommendation.

Also applies to: 80-86, 110-116, 124-128, 278-295, 319-334, 340-344, 411-418, 894-899, 940-943, 957-959

app/assets/stylesheets/mobile/topic-list.scss (1)

72-77: Same DRY concern – repeated literal expressions.

Follow the helper/variable pattern used in previous comments to avoid drift between desktop & mobile colour definitions.

Also applies to: 94-97, 144-148, 206-211

app/assets/stylesheets/desktop/modal.scss (3)

64-72: Prefer a dedicated variable for repeated colour

The same dark-light-choose(scale-color($primary, 35%), scale-color($secondary, 65%)) appears in other files. Define a semantic variable (e.g. $modal-link) once and reuse – keeps themes DRY and future-proof.


113-122: Hover/normal colours should preserve perceptual order

The hover state (line 121) becomes darker than the normal (line 117). For light themes this is fine, but in dark themes the perceived order flips (lighter on hover). Swap the percentages (60 % vs 40 %) or use darken()/lighten() for clearer intent.


127-132: Minor: alpha-reuse instead of 60 %/40 % pair

If the intent is a single colour with different opacity on light/dark themes, consider rgba() with dark-light-diff instead of two separate scaled colours – improves maintainability.

app/assets/stylesheets/common/admin/admin_base.scss (5)

384-386: Use a shared “subdued-text” token

dark-light-choose(scale-color($primary, 50%), scale-color($secondary, 50%)) is now repeated at least four times in this file; define $subdued-text in variables to keep admin theme tweaks centralized.


522-525: Border colour may become invisible in dark schemes

A top border at 80 %/20 % lightness against $secondary can practically vanish when $secondary is close to the chosen dark variant. Consider dark-light-diff() instead of dark-light-choose() for borders.


600-601: Single source of truth for input borders

Same comment as lines 576-578: extract to $input-border variable; avoids divergent tweaks between .groups sections.


1293-1295: Hover/background mismatch

Filter tags use dark-light-choose but hover state (line 1301) switches to dark-light-diff, creating a perceptual jump between normal/hover in dark mode. Harmonise the two helpers.


1330-1332: Dot-border on large lists can be heavy

A dotted 1px border on every list container impacts rendering performance when thousands of rows are virtual-scrolled. Consider a lighter solid colour or remove entirely.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7554b5e and d38c4d5.

📒 Files selected for processing (32)
  • app/assets/stylesheets/common/admin/admin_base.scss (8 hunks)
  • app/assets/stylesheets/common/base/_topic-list.scss (4 hunks)
  • app/assets/stylesheets/common/base/discourse.scss (1 hunks)
  • app/assets/stylesheets/common/base/header.scss (4 hunks)
  • app/assets/stylesheets/common/base/login.scss (2 hunks)
  • app/assets/stylesheets/common/base/notification-options.scss (1 hunks)
  • app/assets/stylesheets/common/base/search.scss (1 hunks)
  • app/assets/stylesheets/common/base/share_link.scss (1 hunks)
  • app/assets/stylesheets/common/base/topic-post.scss (4 hunks)
  • app/assets/stylesheets/common/base/user-badges.scss (2 hunks)
  • app/assets/stylesheets/common/base/user.scss (1 hunks)
  • app/assets/stylesheets/common/components/badges.css.scss (2 hunks)
  • app/assets/stylesheets/common/components/buttons.css.scss (1 hunks)
  • app/assets/stylesheets/desktop/compose.scss (1 hunks)
  • app/assets/stylesheets/desktop/header.scss (1 hunks)
  • app/assets/stylesheets/desktop/login.scss (2 hunks)
  • app/assets/stylesheets/desktop/modal.scss (5 hunks)
  • app/assets/stylesheets/desktop/queued-posts.scss (1 hunks)
  • app/assets/stylesheets/desktop/topic-list.scss (5 hunks)
  • app/assets/stylesheets/desktop/topic-post.scss (13 hunks)
  • app/assets/stylesheets/desktop/topic.scss (1 hunks)
  • app/assets/stylesheets/desktop/upload.scss (1 hunks)
  • app/assets/stylesheets/desktop/user.scss (4 hunks)
  • app/assets/stylesheets/embed.css.scss (1 hunks)
  • app/assets/stylesheets/mobile/compose.scss (3 hunks)
  • app/assets/stylesheets/mobile/login.scss (2 hunks)
  • app/assets/stylesheets/mobile/modal.scss (1 hunks)
  • app/assets/stylesheets/mobile/topic-list.scss (4 hunks)
  • app/assets/stylesheets/mobile/topic-post.scss (7 hunks)
  • app/assets/stylesheets/mobile/topic.scss (1 hunks)
  • app/assets/stylesheets/mobile/upload.scss (1 hunks)
  • app/assets/stylesheets/mobile/user.scss (3 hunks)
🔇 Additional comments (31)
app/assets/stylesheets/mobile/upload.scss (1)

10-10: Dynamic theming hook looks correct

dark-light-choose() cleanly swaps the hard-coded scale-color($primary…) for a light/dark aware choice with matching lightness. Syntax & parameters look valid – nothing else to do here.

app/assets/stylesheets/common/base/user.scss (1)

117-121: Confirm contrast for light mode

dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%)) may yield two very different luminosities (–30 % vs +70 %). In light mode the primary branch (-30 %) will be quite dark, which could harm readability on dark backgrounds.
Please eyeball the contrast or run the SCSS against the default palette before merging.

app/assets/stylesheets/desktop/queued-posts.scss (1)

14-15: LGTM – theme-aware colour added

The switch to dark-light-choose() is syntactically correct and keeps lightness parity.

app/assets/stylesheets/common/base/notification-options.scss (1)

2-2: LGTM – dynamic colour looks correct

The new dark-light-choose call matches the signature used elsewhere and preserves the intended muted tone.

app/assets/stylesheets/mobile/topic.scss (1)

34-34: Verify contrast for accessibility

Primary + 75 % lightness vs secondary + 25 % lightness could yield very low contrast in one of the two themes, depending on your base palette. It might drop below WCAG AA for small text. Please run a quick contrast check on $primary/$secondary with these adjustments.

app/assets/stylesheets/common/base/share_link.scss (1)

62-62: LGTM – consistent with the new theming rule

No issues spotted; the conditional colour keeps the subtle date styling while supporting dark mode.

app/assets/stylesheets/desktop/header.scss (1)

52-60: Confirm dark-light-choose() generates WCAG-compliant contrast for both themes

The new foreground shades (45 % lightened primary vs. 55 % lightened secondary, and 25 % vs. 75 % in the highlight) are substantially lighter/darker than before.
Please verify – especially against the existing background for .blurb – that contrast ratios remain ≥ 4.5:1 in both light & dark modes; otherwise users with low vision may struggle to read blurbs and highlighted terms.

app/assets/stylesheets/desktop/topic.scss (1)

67-70: Keep theme symmetry

For a.reply-new both branches use 50 % lightness, but the “light” branch uses $primary while the “dark” branch also lightens $secondary.
Confirm that $secondary at 50 % doesn’t collide with $tertiary hover state (line 80) or $secondary background (line 72) when themes swap.

app/assets/stylesheets/common/components/buttons.css.scss (1)

60-61: Check disabled-button text contrast in dark mode

When disabled, the button background comes from dark-light-diff($primary, $secondary, 90%, -60%).
The new hover text colour for disabled buttons chooses scale-color($secondary, 30%) in dark mode, which may be too dark against that background, making the label unreadable. Please run a quick contrast check or adjust the percentage.

app/assets/stylesheets/embed.css.scss (1)

88-90: 👍 Theme-aware colour for new users

The new dark-light-choose() call keeps the 70 %/30 % balance and adds dark-theme parity. No issues spotted.

app/assets/stylesheets/common/base/user-badges.scss (1)

59-63: Badge count colour updated correctly

Implementation aligns with the new theming convention; no behavioural change beyond colour selection.

app/assets/stylesheets/common/base/topic-post.scss (5)

14-16: Link colour update is sound

Adds dark-theme support while preserving the original visual weight.


20-22: Icon colour update follows convention

Consistent with neighbouring changes.


23-25: new_user / title colour – OK

No functional concerns.


70-72: Quote-controls colour – good

Matches overall theming strategy.


158-160: via-email info colour – OK

No concerns.

app/assets/stylesheets/common/base/header.scss (3)

151-156: Topic-count colour updated – looks good

Uniform percentages and correct switch to $secondary for dark themes. No issues spotted.


301-303: Great use of helper for inline icons

Consistent 50 %/50 % split keeps list-item states coherent across themes.


195-197: Dark-light-choose helper is defined and correctly imported

The dark-light-choose function lives exactly once in
app/assets/stylesheets/common/foundation/variables.scss

It’s pulled in via
@import "common/foundation/base" (which imports variables.scss then mixins.scss)
• that base manifest is loaded first in app/assets/stylesheets/common.scss, and that common.scss is imported by your mobile.scss, desktop.scss, and admin.scss manifests.

Additionally, embed.css.scss explicitly does

@import "./common/foundation/variables";
@import "./common/foundation/mixins";

so it too has the helper available.

All your new calls to dark-light-choose(...) in common/base/header.scss (and across other partials) will resolve without Sass compilation errors.

app/assets/stylesheets/mobile/compose.scss (1)

168-173: Background for disabled inputs – good catch

Switching both branches keeps disabled fields legible in both themes. No issues.

app/assets/stylesheets/common/components/badges.css.scss (2)

239-240: Background may clash with constant $secondary text

badge-notification keeps $secondary text colour even when the dark branch darkens the background toward $secondary (30 %). Check contrast ratios; you may need to invert text to $primary for that branch.


285-286: 👍 Posts badge now theme-aware

The switch to dark-light-choose for link colour aligns with the new guideline. Looks correct.

app/assets/stylesheets/common/base/_topic-list.scss (4)

55-57: Table body colour updated – LGTM

No further concerns; consistent with new pattern.


67-70: Excerpt colour matches headers

Good thematic consistency maintained.


245-247: Breadcrumb date uses 60 %/40 % split – compatible

Balanced percentages, no issues observed.


300-302: Education notice converted – conforms

Update is straight-forward and correct.

app/assets/stylesheets/desktop/modal.scss (2)

92-96: Accessibility: re-evaluate 70 %/30 % contrast in dark mode

A 70 % lightness shift on $primary may still be too low-contrast on the $secondary background for WCAG AA (especially for hint text at 85 % font-size). Consider bumping the delta or running a contrast checker.


49-53: dark-light-choose helper is defined and correctly imported
The dark-light-choose($light, $dark) function lives in app/assets/stylesheets/common/foundation/variables.scss (lines 46–48) with matching positional parameters. Your global Sass manifest already loads the foundation variables before modal.scss, so there will be no build‐time error.

app/assets/stylesheets/common/admin/admin_base.scss (3)

504-507: WCAG contrast for help text

Help text is small (0.9 em). 40 %/60 % scaling can fall below 4.5:1 on many palettes. Please run a checker or bump the lightness delta.


576-578: Keep visual focus-ring width consistent

Changing only border colour here without adjusting width/box-shadow may impact focus visibility for keyboard users. Review in dark mode.


726-727: Column descriptions – low priority

No functional issues; change is consistent with earlier subdued-text colour.

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.

2 participants