File size: 1,489 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
import { defineSlotRecipe } from "../def"
export const blockquoteSlotRecipe = defineSlotRecipe({
className: "blockquote",
slots: ["root", "icon", "content", "caption"],
base: {
root: {
position: "relative",
display: "flex",
flexDirection: "column",
gap: "2",
},
caption: {
textStyle: "sm",
color: "fg.muted",
},
icon: {
boxSize: "5",
},
},
variants: {
justify: {
start: {
root: {
alignItems: "flex-start",
textAlign: "start",
},
},
center: {
root: {
alignItems: "center",
textAlign: "center",
},
},
end: {
root: {
alignItems: "flex-end",
textAlign: "end",
},
},
},
variant: {
subtle: {
root: {
paddingX: "5",
borderStartWidth: "4px",
borderStartColor: "colorPalette.muted",
},
icon: {
color: "colorPalette.fg",
},
},
solid: {
root: {
paddingX: "5",
borderStartWidth: "4px",
borderStartColor: "colorPalette.solid",
},
icon: {
color: "colorPalette.solid",
},
},
plain: {
root: {
paddingX: "5",
},
icon: {
color: "colorPalette.solid",
},
},
},
},
defaultVariants: {
variant: "subtle",
justify: "start",
},
})
|