scale-color $lightness must use $secondary for dark themes#4
Conversation
WalkthroughThis PR implements comprehensive dark mode support across the entire application by replacing static color scaling with dynamic theme-aware color selection. All SCSS files have been updated to use the Changes
Sequence DiagramThis diagram shows the interactions between components: sequenceDiagram
participant Browser
participant ThemeEngine as Theme Engine
participant SCSS as SCSS Compiler
participant DarkLight as dark-light-choose()
participant ScaleColor as scale-color()
participant CSS as Rendered CSS
Browser->>ThemeEngine: Request page load
ThemeEngine->>ThemeEngine: Detect user theme preference
ThemeEngine->>SCSS: Compile stylesheets with theme context
loop For each color property
SCSS->>DarkLight: Evaluate dark-light-choose(light_value, dark_value)
DarkLight->>ThemeEngine: Query current theme mode
alt Light Mode
ThemeEngine-->>DarkLight: Return "light"
DarkLight->>ScaleColor: Process scale-color($primary, $lightness: X%)
ScaleColor-->>DarkLight: Return lightened primary color
DarkLight-->>SCSS: Return light mode color
else Dark Mode
ThemeEngine-->>DarkLight: Return "dark"
DarkLight->>ScaleColor: Process scale-color($secondary, $lightness: Y%)
ScaleColor-->>DarkLight: Return adjusted secondary color
DarkLight-->>SCSS: Return dark mode color
end
end
SCSS->>CSS: Generate final CSS with theme-appropriate colors
CSS-->>Browser: Apply styles to UI elements
Note over Browser,CSS: Colors now adapt to light/dark theme<br/>across admin, topics, headers, modals, etc.
🔗 Cross-Repository Impact AnalysisEnable automatic detection of breaking changes across your dependent repositories. → Set up now Learn more about Cross-Repository AnalysisWhat It Does
How to Enable
Benefits
Note for WindsurfPlease change the default marketplace provider to the following in the windsurf settings:Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
Also you can trigger various commands with the bot by doing The current supported commands are
More commands to be added soon. |
Test 7
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.
Replicated from ai-code-review-evaluation/discourse-coderabbit#7
EntelligenceAI PR Summary
This PR implements comprehensive dark mode support across 33 SCSS files by replacing static color scaling with the
dark-light-choose()function.$primarycolors with original lightness values$secondarycolors with inverted lightness percentages for proper contrast.nameselector lightness to 50% across user stylesheets