Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Doc

Manav Rathib41909477e34
diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.ts
index 098c303571..d51e05475e 100644
--- a/web/packages/base/components/utils/mui-theme.d.ts
+++ b/web/packages/base/components/utils/mui-theme.d.ts
@@ -128,11 +128,26 @@ declare module "@mui/material/styles" {
}
interface Palette {
+ /**
+ * The main brand color. e.g. the "Ente green", the "Auth purple".
+ *
+ * This does not vary with the color scheme.
+ */
accent: PaletteColor;
+ /**
+ * The color for potentially dangerous actions, errors, or other things
+ * we would like to call the user's attention out to.
+ *
+ * MUI has an "error" palette color, but that seems to semantically not
+ * gel with all uses. e.g. it feels weird to create a button with
+ * color="error".
+ *
+ * This does not vary with the color scheme.
+ */
critical: PaletteColor;
/**
- * Various fixed colors used by our designs that do not change with the
- * color scheme.
+ * Various ad-hoc fixed colors used by our designs that do not change
+ * with the color scheme.
*/
fixed: {
white: string;