Skip to content

Commit ea433a6

Browse files
committed
Update shadows documentation
1 parent 3be4648 commit ea433a6

3 files changed

Lines changed: 26 additions & 69 deletions

File tree

dist/tailwind.css

Lines changed: 15 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tailwind.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,23 @@ title: "Shadows"
1515

1616
Box shadows can be applied using the shadow utilities. By default these are a linear scale, where the lower values represent smaller (shallow) shadows, and higher values represent bigger (deeper) shadows.
1717

18-
<div class="flex text-sm my-6">
19-
<div class="mr-3 p-4 shadow-inner">.shadow-inner</div>
20-
<div class="mr-3 p-4 shadow-1">.shadow-1</div>
21-
<div class="mr-3 p-4 shadow-2">.shadow-2</div>
22-
<div class="mr-3 p-4 shadow-3">.shadow-3</div>
23-
<div class="mr-3 p-4 shadow-4">.shadow-4</div>
24-
<div class="mr-3 p-4 shadow-5">.shadow-5</div>
18+
@component('_partials.code-sample', ['lang' => 'html'])
19+
<div class="flex justify-around text-sm my-6">
20+
<div class="mr-3 p-4 bg-smoke-lighter shadow-inner">.shadow-inner</div>
21+
<div class="mr-3 p-4 shadow">.shadow</div>
22+
<div class="mr-3 p-4 shadow-md">.shadow-md</div>
23+
<div class="mr-3 p-4 shadow-lg">.shadow-lg</div>
2524
</div>
2625

27-
<div>
28-
</div>
29-
30-
```html
26+
@slot('code')
3127
<div class="shadow-inner"></div>
32-
<div class="shadow-1"></div>
28+
<div class="shadow"></div>
3329
<div class="shadow-2"></div>
3430
<div class="shadow-3"></div>
3531
<div class="shadow-4"></div>
3632
<div class="shadow-5"></div>
37-
```
33+
@endslot
34+
@endcomponent
3835

3936
## Responsive
4037

0 commit comments

Comments
 (0)