Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
55 lines
1.1 KiB
JavaScript
55 lines
1.1 KiB
JavaScript
import { Box, ThemeProvider, createTheme } from '@mui/system';
|
|
|
|
const theme = createTheme({
|
|
palette: {
|
|
background: {
|
|
paper: '#fff',
|
|
},
|
|
text: {
|
|
primary: '#173A5E',
|
|
secondary: '#46505A',
|
|
},
|
|
action: {
|
|
active: '#001E3C',
|
|
},
|
|
success: {
|
|
dark: '#009688',
|
|
},
|
|
},
|
|
});
|
|
|
|
export default function Example() {
|
|
return (
|
|
<ThemeProvider theme={theme}>
|
|
<Box
|
|
sx={{
|
|
bgcolor: 'background.paper',
|
|
boxShadow: 1,
|
|
borderRadius: 2,
|
|
p: 2,
|
|
minWidth: 300,
|
|
}}
|
|
>
|
|
<Box sx={{ color: 'text.secondary' }}>Sessions</Box>
|
|
<Box sx={{ color: 'text.primary', fontSize: 34, fontWeight: 'medium' }}>
|
|
98.3 K
|
|
</Box>
|
|
<Box
|
|
sx={{
|
|
color: 'success.dark',
|
|
display: 'inline',
|
|
fontWeight: 'bold',
|
|
mx: 0.5,
|
|
fontSize: 14,
|
|
}}
|
|
>
|
|
+18.77%
|
|
</Box>
|
|
<Box sx={{ color: 'text.secondary', display: 'inline', fontSize: 14 }}>
|
|
vs. last week
|
|
</Box>
|
|
</Box>
|
|
</ThemeProvider>
|
|
);
|
|
}
|