Skip to content

Commit 427d2fa

Browse files
committed
fix(icons): replace hardcoded colors with currentColor for dynamic theming
Replace hardcoded stroke="#8C8D8F" and fill colors with currentColor in all SVG icon files under public/icons/cortex/ (except file-types which retain brand colors, and semantic icons like green-tick and check-on which retain their fixed colors). Icons updated: - activity-bar/: 12 icons (stroke #8C8D8F → currentColor) - navigation/: 15 icons (stroke #8C8D8F → currentColor, menu-left-on stroke/fill #FCFCFC → currentColor) - actions/: 16 icons (stroke #8C8D8F → currentColor) - status-bar/: 9 icons (stroke #8C8D8F → currentColor, excluding green-tick) - sidebar/: 19 icons (stroke #8C8D8F → currentColor, filler fill #8C8D8F → currentColor, git-logo fill #FCFCFC → currentColor) - chat/: 5 icons (stroke #8C8D8F → currentColor, code fill #CB93DE → currentColor, palette fill #6BBD8F → currentColor, brackets-square fill #E8DD9B → currentColor) Also set CSS color property on CortexSvgIcon wrapper SVG element so stroke="currentColor" in inner SVG content inherits the color prop correctly. Preserved: - file-types/ brand colors (React blue, Rust logo, TOML colors) - status-bar/green-tick semantic green (#018D0A) - sidebar/check-on semantic blue (#008CFF) - sidebar/magic-wand gradient fill - sidebar/check-off structural opacity fill
1 parent a907ef2 commit 427d2fa

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed
Lines changed: 1 addition & 1 deletion
Loading

public/icons/cortex/chat/code.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

src/components/cortex/icons/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ export const CortexSvgIcon: Component<CortexSvgIconProps> = (props) => {
211211
display: "inline-block",
212212
"vertical-align": "middle",
213213
"flex-shrink": "0",
214+
color: local.color ?? "currentColor",
214215
transition: "color 150ms ease",
215216
...local.style,
216217
}}

0 commit comments

Comments
 (0)