@@ -305,8 +305,11 @@ accordion variants: `outline`, `subtle`, and `enclosed`.
305305
306306#### Outline
307307
308- The ` outline ` variant adds a clean separator between items using a bottom border. This works well for minimalist
309- interfaces. In your ` accordion.css ` stylesheet, add the following styles:
308+ The ` outline ` variant adds a clean separator between items using a bottom border.
309+
310+ <img src = " /blog/accordion/accordion-outline.png" alt = " outline-variant" />
311+
312+ This works well for minimalist interfaces. In your ` accordion.css ` stylesheet, add the following styles:
310313
311314``` css
312315.accordion--variant-outline [data-scope = ' accordion' ][data-part = ' item' ] {
@@ -318,6 +321,8 @@ interfaces. In your `accordion.css` stylesheet, add the following styles:
318321
319322The ` subtle ` variant uses a soft background and padding to distinguish accordion items.
320323
324+ <img src = " /blog/accordion/accordion-subtle.png" alt = " subtle-variant" />
325+
321326``` css
322327.accordion--variant-subtle {
323328 [data-scope ='accordion '][data-part ='item-trigger '],
@@ -339,6 +344,8 @@ The `subtle` variant uses a soft background and padding to distinguish accordion
339344
340345The ` enclosed ` variant visually groups all accordion items inside a bordered box, giving card-like structure.
341346
347+ <img src = " /blog/accordion/accordion-enclosed.png" alt = " enclosed-variant" />
348+
342349``` css
343350.accordion--variant-enclosed [data-scope = ' accordion' ][data-part = ' root' ] {
344351 border : 1px solid #e2e8f0 ;
@@ -370,6 +377,8 @@ The `enclosed` variant visually groups all accordion items inside a bordered box
370377To make your Accordion responsive to different layouts, we’ll add small, medium and large variants using the ` sm ` , ` md ` ,
371378and ` lg ` classes.
372379
380+ <img src = " /blog/accordion/accordion-sizes.png" alt = " size-variants" />
381+
373382Each size sets its own padding, border radius, and font size using CSS variables:
374383
375384``` css
@@ -827,6 +836,8 @@ maintain consistent spacing between the trigger and content body.
827836A flexible design system supports different visual variants to fit design needs. We’ll support the ` outline ` , ` subtle ` ,
828837and ` enclosed ` visual variants to align with different UI patterns.
829838
839+ <img src = " /blog/accordion/accordion-variants.png" alt = " visual-variants" />
840+
830841Within the ` variants ` key of your recipe, define the visual variants:
831842
832843``` tsx
@@ -892,6 +903,8 @@ variants: {
892903We also support ` sm ` , ` md ` , and ` lg ` size variants. These define CSS variables that affect padding, border radius, and
893904font size.
894905
906+ <img src="/blog/accordion/accordion-sizes.png" alt="size-variants" />
907+
895908Within the ` size ` key of your recipe, define the size variants:
896909
897910` ` ` tsx
0 commit comments