#Fonts

import { fontsSystem } from "@poodle/system";
const theme: SystemThemeConfig = {
colors: {
sets: {
primary: "cyan",
},
},
fonts: {
sets: {
head: {
fontWeight: "head",
fontSize: "scale-2",
},
},
scale: "1rem",
weights: {
lit: 600,
head: 900,
},
families: {
open: "open, serif",
},
sizeSets: {
head: "17px",
},
},
};
const listSystem = compose(colorsSystem, fontsSystem);
export const system = createSystem(listSystem);
const styles1 = system({
theme,
fontSize: "scale-2",
fontWeight: "lit",
fontFamily: "open",
});
// Styles1 result
// { fontSize: "2rem" },
// { fontWeight: "lit" },
// { fontFamily: "open, serif" },
const styles2 = system({
theme,
fontSize: "head",
});
// Styles2 result
// { fontSize: "17px" },
const styles3 = system({
theme,
textStyle: "head",
});
// Styles3 result
// { fontSize: "2rem" },
// { fontWeight: "900" },
PropTypeDescription
borderResponsiveProp<CSS.Property.Border \| string>The CSS border property
borderBottomResponsiveProp<CSS.Property.BorderBottom \| string>The CSS border-bottom property
borderBottomColorResponsiveProp<CSS.Property.BorderBottomColor \| string>The CSS border-bottom-color property
borderBottomLeftRadiusResponsiveProp<CSS.Property.BorderBottomLeftRadius>The CSS border-bottom-left-radius property
borderBottomRadiusResponsiveProp< CSS.Property.BorderBottomRightRadius \| CSS.Property.BorderBottomLeftRadius>The CSS border-bottom-left-radius and border-bottom-right-radius property
borderBottomRightRadiusResponsiveProp<CSS.Property.BorderBottomRightRadius>The CSS border-bottom-right-radius property
borderBottomStyleResponsiveProp<CSS.Property.BorderBottomStyle>The CSS border-bottom-style property
borderBottomWidthResponsiveProp<CSS.Property.BorderBottomWidth \| number>The CSS border-bottom-width property
borderColorResponsiveProp<CSS.Property.BorderColor \| string>The CSS border-color property
borderLeftResponsiveProp<CSS.Property.BorderLeft \| string>The CSS border-left property
borderLeftColorResponsiveProp<CSS.Property.BorderLeftColor \| string>The CSS border-left-color property
borderLeftRadiusResponsiveProp< CSS.Property.BorderTopLeftRadius \| CSS.Property.BorderBottomLeftRadius>The CSS border-top-left-radius and border-bottom-left-radius property
borderLeftStyleResponsiveProp<CSS.Property.BorderLeftStyle>The CSS border-left-style property
borderLeftWidthResponsiveProp<CSS.Property.BorderLeftWidth \| number>The CSS border-left-width property
borderRadiusResponsiveProp<CSS.Property.BorderRadius>The CSS border-radius property
borderRightResponsiveProp<CSS.Property.BorderRight \| string>The CSS border-right property
borderRightColorResponsiveProp<CSS.Property.BorderRightColor \| string>The CSS border-right-color property
borderRightRadiusResponsiveProp< CSS.Property.BorderTopRightRadius \| CSS.Property.BorderBottomRightRadius>The CSS border-top-right-radius and border-bottom-right-radius property
borderRightStyleResponsiveProp<CSS.Property.BorderRightStyle>The CSS border-right-style property
borderRightWidthResponsiveProp<CSS.Property.BorderRightWidth \| number>The CSS border-right-width property
borderStyleResponsiveProp<CSS.Property.BorderStyle>The CSS border-style property
borderTopResponsiveProp<CSS.Property.BorderTop \| string>The CSS border-top property
borderTopColorResponsiveProp<CSS.Property.BorderTopColor \| string>The CSS border-top-color property
borderTopLeftRadiusResponsiveProp<CSS.Property.BorderTopLeftRadius>The CSS border-top-left-radius property
borderTopRadiusResponsiveProp< CSS.Property.BorderTopLeftRadius \| CSS.Property.BorderTopRightRadius>The CSS border-top-left-radius and border-top-right-radius property
borderTopRightRadiusResponsiveProp<CSS.Property.BorderTopRightRadius>The CSS border-top-right-radius property
borderTopStyleResponsiveProp<CSS.Property.BorderTopStyle>The CSS border-top-style property
borderTopWidthResponsiveProp<CSS.Property.BorderTopWidth \| number>The CSS border-top-width property
borderWidthResponsiveProp<CSS.Property.BorderWidth \| number>The CSS border-width property
borderXResponsiveProp<CSS.Property.BorderLeft \| CSS.Property.BorderRight>The CSS border-left and border-right property
borderYResponsiveProp<CSS.Property.BorderBottom \| CSS.Property.BorderTop>The CSS border-top and border-bottom property
outlineResponsiveProp<CSS.Property.Outline>The CSS outline property
outlineColorResponsiveProp<CSS.Property.Outline>The CSS outline-color property
outlineStyleResponsiveProp<CSS.Property.Outline>The CSS outline-style property
outlineWidthResponsiveProp<CSS.Property.Outline>The CSS outline-width property