1. resources
  2. cookbook
  3. svg filters

SVG Filters

Apply filter effects to elements and images.

How It Works

This feature is enabled by the native SVG filters browser API, paired with feColorMatrix transformations.

Minimal Example

In this example, we’ll create an SVG with a unique ID of Emerald. Then apply this to the image using filter: url(#Emerald).

Skeleton Filters

Coming soon!

Create a Filter

We recommend SVG Color Matrix Mixer by Rik Schennink to aid in creating your own filters.

Tips

  • Store your SVGs locally within your project for quick and reusable imports.
  • Imports support both .svg and framework component formats (ex: .svelte, .tsx)
  • SVGs have a precense in the DOM, and will be affected by space-x|y utility classes.