import { defineRecipe } from "../def" | |
export const codeRecipe = defineRecipe({ | |
className: "code", | |
base: { | |
fontFamily: "mono", | |
alignItems: "center", | |
display: "inline-flex", | |
borderRadius: "l2", | |
}, | |
variants: { | |
variant: { | |
solid: { | |
bg: "colorPalette.solid", | |
color: "colorPalette.contrast", | |
}, | |
subtle: { | |
bg: "colorPalette.subtle", | |
color: "colorPalette.fg", | |
}, | |
outline: { | |
color: "colorPalette.fg", | |
shadow: "inset 0 0 0px 1px var(--shadow-color)", | |
shadowColor: "colorPalette.muted", | |
}, | |
surface: { | |
bg: "colorPalette.subtle", | |
color: "colorPalette.fg", | |
shadow: "inset 0 0 0px 1px var(--shadow-color)", | |
shadowColor: "colorPalette.muted", | |
}, | |
plain: { | |
color: "colorPalette.fg", | |
}, | |
}, | |
size: { | |
xs: { | |
textStyle: "2xs", | |
px: "1", | |
minH: "4", | |
}, | |
sm: { | |
textStyle: "xs", | |
px: "1.5", | |
minH: "5", | |
}, | |
md: { | |
textStyle: "sm", | |
px: "2", | |
minH: "6", | |
}, | |
lg: { | |
textStyle: "sm", | |
px: "2.5", | |
minH: "7", | |
}, | |
}, | |
}, | |
defaultVariants: { | |
variant: "subtle", | |
size: "sm", | |
}, | |
}) | |