/*! ratio-ui · design system for knowledge sharing · https://github.com/losol/ratio-ui · (c) 2026 Losol AS · MPL-2.0 */
//#region src/tokens/borders.ts
var radiusMap = {
	none: "rounded-none",
	sm: "rounded-sm",
	md: "rounded",
	lg: "rounded-lg",
	xl: "rounded-xl",
	full: "rounded-full"
};
var borderColorMap = {
	default: "border-border-1",
	subtle: "border-border-1",
	strong: "border-border-2",
	neutral: "border-neutral-300",
	primary: "border-primary-400",
	secondary: "border-secondary-400",
	accent: "border-accent-400",
	success: "border-success-border",
	warning: "border-warning-border",
	error: "border-error-border",
	info: "border-info-border"
};
function buildBorderClasses(props) {
	const classes = [];
	if (props.border !== void 0 && props.border !== false && props.border !== "none") {
		switch (props.border === true ? "default" : props.border) {
			case "default":
				classes.push("border");
				break;
			case "strong":
				classes.push("border-2");
				break;
			case "subtle":
				classes.push("border border-dashed");
				break;
		}
		if (!props.borderColor) classes.push("border-border-1");
	}
	if (props.borderColor) classes.push(borderColorMap[props.borderColor]);
	if (props.radius) classes.push(radiusMap[props.radius]);
	return classes.join(" ");
}
//#endregion
export { buildBorderClasses };

//# sourceMappingURL=borders.js.map