From 9369e146a0166f9efdbf86470aca728737bbc179 Mon Sep 17 00:00:00 2001 From: zanivan Date: Mon, 18 Sep 2023 10:48:48 -0400 Subject: [PATCH] Tweak button design --- .../components/button/UnstyledButtonCustom.js | 3 +- .../button/UnstyledButtonCustom.tsx | 3 +- .../UnstyledButtonIntroduction/css/index.js | 15 ++++++- .../UnstyledButtonIntroduction/css/index.tsx | 15 ++++++- .../system/index.js | 28 ++++++------ .../system/index.tsx | 28 ++++++------ .../button/UnstyledButtonsDisabledFocus.js | 39 +++++++++++------ .../button/UnstyledButtonsDisabledFocus.tsx | 39 +++++++++++------ .../UnstyledButtonsDisabledFocusCustom.js | 41 +++++++++++------- .../UnstyledButtonsDisabledFocusCustom.tsx | 41 +++++++++++------- .../UnstyledButtonsSimple/system/index.js | 43 ++++++++++++------- .../UnstyledButtonsSimple/system/index.tsx | 43 ++++++++++++------- .../components/button/UnstyledButtonsSpan.js | 39 +++++++++++------ .../components/button/UnstyledButtonsSpan.tsx | 39 +++++++++++------ .../UnstyledButtonsSpan/system/index.js | 39 +++++++++++------ .../UnstyledButtonsSpan/system/index.tsx | 39 +++++++++++------ .../components/button/UnstyledLinkButton.js | 35 +++++++++------ .../components/button/UnstyledLinkButton.tsx | 35 +++++++++------ docs/data/base/components/button/UseButton.js | 40 +++++++++++------ .../data/base/components/button/UseButton.tsx | 40 +++++++++++------ 20 files changed, 412 insertions(+), 232 deletions(-) diff --git a/docs/data/base/components/button/UnstyledButtonCustom.js b/docs/data/base/components/button/UnstyledButtonCustom.js index 4f4e2399fafeaf..e2334234b25558 100644 --- a/docs/data/base/components/button/UnstyledButtonCustom.js +++ b/docs/data/base/components/button/UnstyledButtonCustom.js @@ -35,7 +35,8 @@ const blue = { 200: '#99CCF3', 400: '#3399FF', 500: '#007FFF', - 600: '#0072E5', + 600: '#0072E6', + 700: '#0059B3', 800: '#004C99', 900: '#003A75', }; diff --git a/docs/data/base/components/button/UnstyledButtonCustom.tsx b/docs/data/base/components/button/UnstyledButtonCustom.tsx index 72413739662779..5ad13212ff8c7c 100644 --- a/docs/data/base/components/button/UnstyledButtonCustom.tsx +++ b/docs/data/base/components/button/UnstyledButtonCustom.tsx @@ -36,7 +36,8 @@ const blue = { 200: '#99CCF3', 400: '#3399FF', 500: '#007FFF', - 600: '#0072E5', + 600: '#0072E6', + 700: '#0059B3', 800: '#004C99', 900: '#003A75', }; diff --git a/docs/data/base/components/button/UnstyledButtonIntroduction/css/index.js b/docs/data/base/components/button/UnstyledButtonIntroduction/css/index.js index 3dae77721c653b..426fa8f0ad2944 100644 --- a/docs/data/base/components/button/UnstyledButtonIntroduction/css/index.js +++ b/docs/data/base/components/button/UnstyledButtonIntroduction/css/index.js @@ -1,5 +1,6 @@ import * as React from 'react'; import { Button, buttonClasses } from '@mui/base/Button'; +import { useTheme } from '@mui/system'; import Stack from '@mui/material/Stack'; export default function UnstyledButtonsIntroduction() { @@ -29,7 +30,15 @@ const cyan = { 900: '#022127', }; +function useIsDarkMode() { + const theme = useTheme(); + return theme.palette.mode === 'dark'; +} + function Styles() { + // Replace this with your app logic for determining dark mode + const isDarkMode = useIsDarkMode(); + return (