Commit baadde83 by G

Add text variants

parent b67a4fa9
...@@ -51,6 +51,11 @@ const theme = createTheme({ ...@@ -51,6 +51,11 @@ const theme = createTheme({
tablet: 768, tablet: 768,
}, },
textVariants: { textVariants: {
defaults: {
// We can define a default text variant here.
color: "gray",
},
header: { header: {
fontWeight: "bold", fontWeight: "bold",
fontSize: 34, fontSize: 34,
...@@ -59,9 +64,6 @@ const theme = createTheme({ ...@@ -59,9 +64,6 @@ const theme = createTheme({
fontSize: 16, fontSize: 16,
lineHeight: 24, lineHeight: 24,
}, },
defaults: {
// We can define a default text variant here.
},
primary: { primary: {
color: "primary", color: "primary",
}, },
...@@ -74,6 +76,12 @@ const theme = createTheme({ ...@@ -74,6 +76,12 @@ const theme = createTheme({
white: { white: {
color: "white", color: "white",
}, },
gray: {
color: "gray",
},
lightGray: {
color: "lightGray",
},
}, },
cardVariants: { cardVariants: {
defaults: { defaults: {
......
...@@ -25,3 +25,12 @@ export const buttonVariants = createVariant<Theme, "buttonVariants">({ ...@@ -25,3 +25,12 @@ export const buttonVariants = createVariant<Theme, "buttonVariants">({
}, },
}, },
}); });
export const textVariants = createVariant<Theme, "textVariants">({
themeKey: "textVariants",
defaults: {
fontSize: 16,
fontWeight: "normal",
color: "gray",
},
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment