Skip to content

Commit dd926e6

Browse files
committed
Update readme
1 parent d1a02ae commit dd926e6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# @parcel/css
22

3-
A CSS parser, transformer, and minifier written in Rust.
3+
An extremely fast CSS parser, transformer, and minifier written in Rust. Use it with [Parcel](https://parceljs.org), as a standalone library or CLI, or via a plugin with any other tool.
4+
5+
<img width="666" alt="image" src="https://user-images.githubusercontent.com/19409/153888593-591a3c34-e401-4b30-94ac-7f8eb3c0b242.png#gh-light-mode-only">
6+
<img width="666" alt="image" src="https://user-images.githubusercontent.com/19409/153888637-3fd9f660-7d43-4d65-83a3-9a40afa0a5a9.png#gh-dark-mode-only">
47

58
## Features
69

@@ -40,7 +43,7 @@ A CSS parser, transformer, and minifier written in Rust.
4043
- `:dir`
4144
- `:is`
4245
- Double position gradient stops (e.g. `red 40% 80%`)
43-
- `clamp()` function
46+
- `clamp()`, `round()`, `rem()`, and `mod()` math functions
4447
- Alignment shorthands (e.g. `place-items`)
4548
- Two-value `overflow` shorthand
4649
- Media query range syntax (e.g. `@media (width <= 100px)` or `@media (100px < width < 500px)`)
@@ -212,3 +215,5 @@ esbuild: 107.668ms
212215
parcel-css: 43.368ms
213216
1824130 bytes
214217
```
218+
219+
For more benchmarks comparing more tools and input, see [here](http://goalsmashers.github.io/css-minification-benchmark/). Note that some of the tools shown perform unsafe optimizations that may change the behavior of the original CSS in favor of smaller file size. Parcel CSS does not do this – the output CSS should always behave identically to the input. Keep this in mind when comparing file sizes between tools.

0 commit comments

Comments
 (0)