Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
codebycarson authored Jun 11, 2024
2 parents 53088f7 + 39ef5da commit 9bb5276
Show file tree
Hide file tree
Showing 72 changed files with 861 additions and 18,511 deletions.
11 changes: 6 additions & 5 deletions components/EvmWalletConnect/CustomConnectButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { ConnectButton } from "@rainbow-me/rainbowkit";
import styled from 'styled-components';

const CustomButton = styled.button`
background: #001B2A; /* Dark color */
border: none;
color: #ECDEDE; /* Light color */
background: black; /* Dark color */
border: white solid 1px;
color: white; /* Light color */
padding: 0.5rem 1rem;
font-size: 1rem;
cursor: pointer;
Expand All @@ -19,8 +19,9 @@ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
font-family: 'Inter', sans-serif;
&:hover {
color: #001B2A; /* Dark color */
background: #ECDEDE; /* Light color */
color: black; /* Dark color */
background: white; /* Light color */
border: black solid 1px;
}
`;

Expand Down
29 changes: 29 additions & 0 deletions components/MantineWrapper.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import {createTheme, MantineProvider} from "@mantine/core";
import {useTheme} from "next-themes";
import {useMemo} from "react";

const mantineThemeOverride = createTheme({
autoContrast: true
});

export const MantineWrapper = ({ children }) => {
const { theme } = useTheme()

const mantineTheme = useMemo(() => {
switch (theme) {
case "dark":
return "dark";
case "light":
return "light";
default:
return undefined;

}
}, [theme]);

return (
<MantineProvider theme={mantineThemeOverride} forceColorScheme={mantineTheme}>
{children}
</MantineProvider>
)
}
Loading

0 comments on commit 9bb5276

Please sign in to comment.