From a4d74b8b44d982bf178b038cfadb296d771e30f3 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Mon, 27 Nov 2023 15:52:20 -0300 Subject: [PATCH] chore(site): remove paperLight background value (#10857) I noticed we have been overusing colors in the UI, so simplifying is better for the "look and feel" and maintaining the styles over time. ![image](https://github.com/coder/coder/assets/3165839/f70c831d-eba8-4521-820a-6257ae0bedf1) If you want to have a better sense of what it looks like, I recommend you go to the Chromatic snapshot. --- site/src/@types/mui.d.ts | 4 -- .../Dashboard/Navbar/NavbarView.tsx | 2 +- .../DeploySettingsLayout/Fieldset.tsx | 3 +- .../DeploySettingsLayout/Option.tsx | 8 +-- .../ErrorBoundary/RuntimeErrorState.tsx | 3 +- site/src/components/Filter/filter.tsx | 2 +- site/src/components/Markdown/Markdown.tsx | 2 +- .../PageHeader/FullWidthPageHeader.tsx | 2 +- site/src/components/Resources/AgentButton.tsx | 52 ++++++++----------- .../components/Resources/AgentMetadata.tsx | 1 - site/src/components/Resources/AgentRow.tsx | 2 +- .../components/Resources/AgentRowPreview.tsx | 2 +- .../components/Resources/AppLink/AppLink.tsx | 6 +-- .../Resources/PortForwardButton.tsx | 6 +-- .../src/components/Resources/ResourceCard.tsx | 1 - .../Resources/SSHButton/SSHButton.tsx | 4 +- .../Resources/TerminalLink/TerminalLink.tsx | 4 +- .../VSCodeDesktopButton.tsx | 14 ++--- .../SyntaxHighlighter/coderTheme.ts | 4 +- .../TemplateFiles/TemplateFiles.tsx | 2 +- .../components/Timeline/TimelineDateRow.tsx | 4 +- .../components/WorkspaceBuildLogs/Logs.tsx | 2 +- .../WorkspaceStatusBadge.tsx | 2 +- .../TemplateInsightsPage/DateRange.tsx | 6 +-- .../TemplateVersionsPage/VersionRow.tsx | 2 +- .../TemplateVersionEditor.tsx | 2 - .../src/pages/TerminalPage/TerminalAlerts.tsx | 2 +- .../pages/TerminalPage/TerminalPageAlert.tsx | 2 +- .../UsersPage/UsersTable/EditRolesButton.tsx | 2 +- .../UsersPage/UsersTable/UserRoleCell.tsx | 6 +-- .../WorkspaceDeleteDialog.tsx | 3 +- .../pages/WorkspacesPage/WorkspacesEmpty.tsx | 2 +- site/src/theme/mui.ts | 4 +- 33 files changed, 69 insertions(+), 94 deletions(-) diff --git a/site/src/@types/mui.d.ts b/site/src/@types/mui.d.ts index 0762f53151..50ca165c18 100644 --- a/site/src/@types/mui.d.ts +++ b/site/src/@types/mui.d.ts @@ -14,10 +14,6 @@ declare module "@mui/material/styles" { experimental: NewTheme; } - interface TypeBackground { - paperLight: string; - } - interface Palette { neutral: PaletteColor; } diff --git a/site/src/components/Dashboard/Navbar/NavbarView.tsx b/site/src/components/Dashboard/Navbar/NavbarView.tsx index 0f1eed8522..f23963bfbb 100644 --- a/site/src/components/Dashboard/Navbar/NavbarView.tsx +++ b/site/src/components/Dashboard/Navbar/NavbarView.tsx @@ -187,8 +187,8 @@ export const NavbarView: FC = ({