Skip to content

Commit eedc713

Browse files
committed
move styling info to Custom scripts
1 parent 6dbcd60 commit eedc713

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

image-embeds.mdx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -172,23 +172,6 @@ Embed external content using iframe elements:
172172
></iframe>
173173
```
174174

175-
## Styling with Tailwind CSS
176-
177-
Use Tailwind CSS v3 to style HTML elements. You can control layout, spacing, colors, and other visual properties. Some common classes are:
178-
179-
- `w-full` - Full width
180-
- `aspect-video` - 16:9 aspect ratio
181-
- `rounded-xl` - Large rounded corners
182-
- `block`, `hidden` - Display control
183-
- `dark:hidden`, `dark:block` - Dark mode visibility
184-
185-
186-
Tailwind CSS arbitrary values are not supported. For custom values, use the `style` prop instead.
187-
188-
```html
189-
<img style={{ width: '350px', margin: '12px auto' }} src="/path/image.jpg" />
190-
```
191-
192175
## Related resources
193176

194177
<Card title="Frame component reference" icon="frame" horizontal href="/components/frames">

settings/custom-scripts.mdx

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
---
2-
title: 'Custom scripts'
3-
description: 'Fully customize your documentation with custom CSS and JS'
2+
title: "Custom scripts"
3+
description: "Fully customize your documentation with custom CSS and JS"
44
icon: "code"
55
---
66

7-
Add custom CSS and JavaScript to your documentation to fully customize the look and feel.
7+
Use CSS to style HTML elements or add custom CSS and JavaScript to fully customize the look and feel of your documentation.
8+
9+
## Styling with Tailwind CSS
10+
11+
Use Tailwind CSS v3 to style HTML elements. You can control layout, spacing, colors, and other visual properties. Some common classes are:
12+
13+
- `w-full` - Full width
14+
- `aspect-video` - 16:9 aspect ratio
15+
- `rounded-xl` - Large rounded corners
16+
- `block`, `hidden` - Display control
17+
- `dark:hidden`, `dark:block` - Dark mode visibility
18+
19+
Tailwind CSS arbitrary values are not supported. For custom values, use the `style` prop instead.
20+
21+
```html
22+
<img style={{ width: '350px', margin: '12px auto' }} src="/path/image.jpg" />
23+
```
824

925
## Custom CSS
1026

0 commit comments

Comments
 (0)