forked from chanzuckerberg/sci-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.ts
44 lines (36 loc) · 828 Bytes
/
style.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { DialogTitle, Typography } from "@mui/material";
import { styled } from "@mui/material/styles";
import {
CommonThemeProps as DialogTitleExtraProps,
fontBodyXs,
fontHeaderXl,
getColors,
getSpaces,
} from "src/core/styles";
export type { DialogTitleExtraProps };
export const StyledDialogTitle = styled(DialogTitle)`
padding: 0;
${(props) => {
const spaces = getSpaces(props);
return `
margin-bottom: ${spaces?.xl || 0}px;
`;
}}
`;
export const Title = styled(Typography)`
${fontHeaderXl}
${(props) => {
return `
color: ${props.theme.palette.text.primary};
`;
}}
`;
export const Subtitle = styled(Typography)`
${fontBodyXs}
${(props) => {
const colors = getColors(props);
return `
color: ${props.theme.palette.text.secondary};
`;
}}
`;