Skip to content

fix(theme): keep MUI's var-composed colors out of the Display-P3 layer - #3224

Closed
mgrabina wants to merge 1 commit into
mainfrom
skeleton-p3-nan
Closed

mgrabina wants to merge 1 commit into
mainfrom
skeleton-p3-nan

Conversation

@mgrabina

@mgrabina mgrabina commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Context: on wide-gamut screens (any recent Mac) every MUI skeleton in the app is transparent. The Display-P3 layer in theme.tsx converts each rgb… palette value to P3, including Skeleton's bg, which MUI builds as rgba(var(--mui-palette-text-primaryChannel) / 0.13). The conversion can't read the var and writes color(display-p3 NaN NaN NaN).

Now: values that reference a CSS var stay out of the P3 layer and keep MUI's sRGB var.

Checked: on localhost (dark scheme, P3 display) --mui-palette-Skeleton-bg was color(display-p3 NaN NaN NaN), the only NaN among the --mui-palette-* vars; after the fix it is rgba(255 255 255 / 0.13) and the swap modal skeletons show. tsc and prettier pass.

Part of SDK-1119

The P3 layer converted every rgb() palette value, including Skeleton's bg, which MUI builds as
rgba(var(--mui-palette-text-primaryChannel) / 0.13). The conversion gave color(display-p3 NaN NaN NaN),
so every skeleton was transparent on wide-gamut screens.
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
interface Ready Ready Preview Dec 2, 2026 8:27pm UTC

Request Review

@linear-code

linear-code Bot commented Dec 2, 2026

Copy link
Copy Markdown

SDK-1119

@mgrabina

mgrabina commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T20:24:40.486461Z e017303 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: e017303859

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

This branch was successfully deployed

1 active deployment
Preview — e0173038 Deployed Dec 2, 2026 by vercel[bot]
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.

1 participant