Skip to content

Commit 4ae02d0

Browse files
committed
Improve docs
1 parent 70cb8b8 commit 4ae02d0

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,24 @@
44
title="Philosopher’s stone, logo of PostCSS"
55
src="https://postcss.org/logo-leftp.svg">
66

7-
[PostCSS](https://github.com/postcss/postcss) plugin to generate more realistic [smooth shadows](https://tobiasahlin.com/blog/layered-smooth-box-shadows/).
7+
[PostCSS](https://github.com/postcss/postcss) plugin to generate [more realistic smooth shadows](https://tobiasahlin.com/blog/layered-smooth-box-shadows/). See [demo](https://postcss.github.io/postcss-smooth-shadow/).
88

99
```css
1010
.card {
11-
box-shadow: --soft-shadow(0 1rem 2rem oklch(0 0 0 / 10%));
11+
box-shadow: --soft-shadow(0 0.5rem 1rem oklch(0 0 0 / 10%));
1212
}
1313
```
1414

1515
```css
1616
.card {
1717
box-shadow:
18-
0 calc(0.0278 * 1rem) calc(0.0278 * 2rem) rgb(from oklch(0 0 0 / 10%) r g b / calc(alpha * 0.167)),
19-
0 calc(0.1111 * 1rem) calc(0.1111 * 2rem) rgb(from oklch(0 0 0 / 10%) r g b / calc(alpha * 0.333)),
20-
0 calc(0.25 * 1rem) calc(0.25 * 2rem) rgb(from oklch(0 0 0 / 10%) r g b / calc(alpha * 0.5)),
21-
0 calc(0.4444 * 1rem) calc(0.4444 * 2rem) rgb(from oklch(0 0 0 / 10%) r g b / calc(alpha * 0.667)),
22-
0 calc(0.6944 * 1rem) calc(0.6944 * 2rem) rgb(from oklch(0 0 0 / 10%) r g b / calc(alpha * 0.833)),
23-
0 calc(1 * 1rem) calc(1 * 2rem) rgb(from oklch(0 0 0 / 10%) r g b / calc(alpha * 1));
18+
0 calc(0.1111 * 0.5rem) calc(0.1111 * 1rem) rgb(from oklch(0 0 0 / 10%) r g b / calc(alpha * 0.333)),
19+
0 calc(0.4444 * 0.5rem) calc(0.4444 * 1rem) rgb(from oklch(0 0 0 / 10%) r g b / calc(alpha * 0.667)),
20+
0 calc(1 * 0.5rem) calc(1 * 1rem) rgb(from oklch(0 0 0 / 10%) r g b / calc(alpha * 1));
2421
}
2522
```
2623

27-
It supports non-px units like `rem`, 3 shadow types, inset shadows, and any color format (we recommends [`oklch()`](https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl)).
24+
It supports non-px units like `rem`, 3 shadow types, `inset` shadows, and any color format (we recommends [`oklch()`](https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl)).
2825

2926
---
3027

0 commit comments

Comments
 (0)