Skip to content

Commit

Permalink
chore: copy safe-wallet theme to tx-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
clovisdasilvaneto committed Sep 25, 2024
1 parent beb709f commit 248e46b
Show file tree
Hide file tree
Showing 4 changed files with 652 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/tx-builder/src/theme/SafeThemeProvider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { useMemo, type FC } from 'react'
import { type PaletteMode, type Theme } from '@mui/material'
import { ThemeProvider } from '@material-ui/core'
import createSafeTheme from './safeTheme'

type SafeThemeProviderProps = {
children: (theme: Theme) => React.ReactNode
mode: PaletteMode
}

const SafeThemeProvider: FC<SafeThemeProviderProps> = ({ children, mode }) => {
const theme = useMemo(() => createSafeTheme(mode), [mode])

return <ThemeProvider theme={theme}>{children(theme)}</ThemeProvider>
}

export default SafeThemeProvider
65 changes: 65 additions & 0 deletions apps/tx-builder/src/theme/lightPalette.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
const lightPalette = {
text: {
primary: '#121312',
secondary: '#A1A3A7',
disabled: '#DDDEE0',
},
primary: {
dark: '#3c3c3c',
main: '#121312',
light: '#636669',
},
secondary: {
dark: '#0FDA6D',
main: '#12FF80',
light: '#B0FFC9',
background: '#EFFFF4',
},
border: {
main: '#A1A3A7',
light: '#DCDEE0',
background: '#F4F4F4',
},
error: {
dark: '#AC2C3B',
main: '#FF5F72',
light: '#FFB4BD',
background: '#FFE6EA',
},
success: {
dark: '#028D4C',
main: '#00B460',
light: '#72F5B8',
background: '#EFFAF1',
},
info: {
dark: '#52BFDC',
main: '#5FDDFF',
light: '#B7F0FF',
background: '#EFFCFF',
},
warning: {
dark: '#C04C32',
main: '#FF8061',
light: '#FFBC9F',
background: '#FFF1E0',
},
background: {
default: '#F4F4F4',
main: '#F4F4F4',
paper: '#FFFFFF',
light: '#EFFFF4',
},
backdrop: {
main: '#636669',
},
logo: {
main: '#121312',
background: '#EEEFF0',
},
static: {
main: '#121312',
},
}

export default lightPalette
Loading

0 comments on commit 248e46b

Please sign in to comment.