From d7e62f2b267de9e60a711d41fbf3bea0e9d1f7a9 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 15 Jan 2025 12:45:56 +0530 Subject: [PATCH] Seeing blue --- web/packages/base/components/utils/theme.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.ts index 61f5aaeafa..c07965adad 100644 --- a/web/packages/base/components/utils/theme.ts +++ b/web/packages/base/components/utils/theme.ts @@ -335,12 +335,15 @@ const getPalletteOptions = ( paper2: colors.background?.paper2, }, text: { - // Alias base so that we don't have to change the default. + // Alias the tokens used by MUI to the ones that we use. This way, + // we don't need to change the default ("primary"), or update the + // MUI internal styling that refers to these tokens. + // + // Our own code should not use these. primary: colors.text?.base, - // Don't use. - secondary: "blue" /* don't use */, // colors.text?.muted, - // Don't use. - disabled: "blue" /* don't use */, // colors.text?.faint, + secondary: colors.text?.muted, + disabled: colors.text?.faint, + // Our color tokens. base: colors.text?.base, muted: colors.text?.muted, faint: colors.text?.faint,