Skip to content

Commit

Permalink
chore: update storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelB authored Nov 12, 2024
1 parent 378c0a8 commit b44a3bd
Show file tree
Hide file tree
Showing 5 changed files with 371 additions and 1,770 deletions.
4 changes: 1 addition & 3 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ const config = {
options: {},
},

docs: {
autodocs: true,
},
docs: {},
};
export default config;
2 changes: 2 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ const preview = {
},
},
},

tags: ['autodocs']
};
export default preview;
24 changes: 12 additions & 12 deletions docs/typography.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ Des **placeholder SCSS** équivalents aux tokens de Figma sont disponibles. C'es

<Unstyled>
<div
class="pix-title-l pix-shadow-sm"
className="pix-title-l pix-shadow-sm"
style={{ padding: 'var(--pix-spacing-4x)', margin: 'var(--pix-spacing-6x)' }}
>
@extend %pix-title-l;
</div>
<div
class="pix-title-m pix-shadow-sm"
className="pix-title-m pix-shadow-sm"
style={{ padding: 'var(--pix-spacing-4x)', margin: 'var(--pix-spacing-6x)' }}
>
@extend %pix-title-m;
</div>
<div
class="pix-title-s pix-shadow-sm"
className="pix-title-s pix-shadow-sm"
style={{ padding: 'var(--pix-spacing-4x)', margin: 'var(--pix-spacing-6x)' }}
>
@extend %pix-title-s;
</div>
<div
class="pix-title-xs pix-shadow-sm"
className="pix-title-xs pix-shadow-sm"
style={{ padding: 'var(--pix-spacing-4x)', margin: 'var(--pix-spacing-6x)' }}
>
@extend %pix-title-xs;
Expand All @@ -53,25 +53,25 @@ Des **placeholder SCSS** équivalents aux tokens de Figma sont disponibles. C'es

<Unstyled>
<div
class="pix-body-l pix-shadow-sm"
className="pix-body-l pix-shadow-sm"
style={{ padding: 'var(--pix-spacing-4x)', margin: 'var(--pix-spacing-6x)' }}
>
@extend %pix-body-l;
</div>
<div
class="pix-body-m pix-shadow-sm"
className="pix-body-m pix-shadow-sm"
style={{ padding: 'var(--pix-spacing-4x)', margin: 'var(--pix-spacing-6x)' }}
>
@extend %pix-body-m;
</div>
<div
class="pix-body-s pix-shadow-sm"
className="pix-body-s pix-shadow-sm"
style={{ padding: 'var(--pix-spacing-4x)', margin: 'var(--pix-spacing-6x)' }}
>
@extend %pix-body-s;
</div>
<div
class="pix-body-xs pix-shadow-sm"
className="pix-body-xs pix-shadow-sm"
style={{ padding: 'var(--pix-spacing-4x)', margin: 'var(--pix-spacing-6x)' }}
>
@extend %pix-body-xs;
Expand All @@ -82,7 +82,7 @@ Des **placeholder SCSS** équivalents aux tokens de Figma sont disponibles. C'es

<Unstyled>
<div
class="pix-monospace pix-shadow-sm"
className="pix-monospace pix-shadow-sm"
style={{ padding: 'var(--pix-spacing-4x)', margin: 'var(--pix-spacing-6x)' }}
>
@extend %pix-monospace;
Expand Down Expand Up @@ -142,7 +142,7 @@ font-weight: var(--pix-font-normal);
```

<Unstyled>
<div class="pix-body-m" style={{ fontWeight: 'var(--pix-font-normal)' }}>
<div className="pix-body-m" style={{ fontWeight: 'var(--pix-font-normal)' }}>
--pix-font-normal
</div>
</Unstyled>
Expand All @@ -152,7 +152,7 @@ font-weight: var(--pix-font-medium);
```

<Unstyled>
<div class="pix-body-m" style={{ fontWeight: 'var(--pix-font-medium)' }}>
<div className="pix-body-m" style={{ fontWeight: 'var(--pix-font-medium)' }}>
--pix-font-medium
</div>
</Unstyled>
Expand All @@ -162,7 +162,7 @@ font-weight: var(--pix-font-bold);
```

<Unstyled>
<div class="pix-body-m" style={{ fontWeight: 'var(--pix-font-bold)' }}>
<div className="pix-body-m" style={{ fontWeight: 'var(--pix-font-bold)' }}>
--pix-font-bold
</div>
</Unstyled>
Expand Down
Loading

0 comments on commit b44a3bd

Please sign in to comment.