Skip to content

Commit 4c4c9af

Browse files
authored
docs:add accordion blog (#3543)
docs: add images to the accordion blog
1 parent 664d87f commit 4c4c9af

File tree

6 files changed

+15
-2
lines changed

6 files changed

+15
-2
lines changed
39 KB
Loading
38.6 KB
Loading
118 KB
Loading
40.4 KB
Loading
105 KB
Loading

website/src/content/blog/design-system-accordion.mdx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

319322
The `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

340345
The `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
370377
To make your Accordion responsive to different layouts, we’ll add small, medium and large variants using the `sm`, `md`,
371378
and `lg` classes.
372379

380+
<img src="/blog/accordion/accordion-sizes.png" alt="size-variants" />
381+
373382
Each 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.
827836
A flexible design system supports different visual variants to fit design needs. We’ll support the `outline`, `subtle`,
828837
and `enclosed` visual variants to align with different UI patterns.
829838

839+
<img src="/blog/accordion/accordion-variants.png" alt="visual-variants" />
840+
830841
Within the `variants` key of your recipe, define the visual variants:
831842

832843
```tsx
@@ -892,6 +903,8 @@ variants: {
892903
We also support `sm`, `md`, and `lg` size variants. These define CSS variables that affect padding, border radius, and
893904
font size.
894905
906+
<img src="/blog/accordion/accordion-sizes.png" alt="size-variants" />
907+
895908
Within the `size` key of your recipe, define the size variants:
896909
897910
```tsx

0 commit comments

Comments
 (0)