feat: using common baseTheme to avoid repetition
This commit is contained in:
1 parent
9459416fc5
commit
d62f5952d5
10 files changed
+135
-33
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import { paletteLight, typographyLevels } from "./constants";
|
||||
|
||||
const fontFamilyPrimary = '"Inter" , sans-serif';
|
||||
// const fontFamilySecondary = '"Avenir", sans-serif';
|
||||
|
||||
const baseTheme = {
|
||||
typography: {
|
||||
fontFamily: fontFamilyPrimary,
|
||||
fontSize: typographyLevels.m,
|
||||
h1: {
|
||||
fontSize: typographyLevels.xl,
|
||||
color: paletteLight.text.primary,
|
||||
fontWeight: 500,
|
||||
},
|
||||
h2: {
|
||||
fontSize: typographyLevels.l,
|
||||
color: paletteLight.text.secondary,
|
||||
fontWeight: 400,
|
||||
},
|
||||
body1: {
|
||||
fontSize: typographyLevels.m,
|
||||
color: paletteLight.text.tertiary,
|
||||
fontWeight: 400,
|
||||
},
|
||||
body2: {
|
||||
fontSize: typographyLevels.s,
|
||||
color: paletteLight.text.tertiary,
|
||||
fontWeight: 400,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export { baseTheme };
|
||||
Reference in new issue
Block a user