#Borders

import { flexSystem } from "@poodle/system";

borders system support border and border radius.

const theme: SystemThemeConfig = {
colors: {
sets: {
primary: "cyan",
},
},
borders: {
radius: {
s: 10,
m: "10em",
},
sets: {
main: {
color: "primary",
style: "solid",
width: "3px",
},
table: {
color: "#fff",
style: "solid",
width: "1px",
},
},
},
};
const listSystem = compose(colorsSystem, bordersSystem);
export const system = createSystem(listSystem);
const styles = system({
theme,
border: "main",
borderRadius: "m",
});
// Styles result
// { border: "3px solid cyan" },
// { borderRadius: "10em" },
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