How It Works
This feature is enabled by SVG filters paired with feColorMatrix transformations.
Usage
Apply a filter to any element using the Filter style property and passing the unique SVG Filter ID.
We’ve provided a curated collection of SVG Filters to choose from below.
#Apollo
#BlueNight
#Emerald
#GreenFall
#Noir
#NoirLight
#Rustic
#Summer
#XPro
Create a Filter
We recommend SVG Color Matrix Mixer by Rik Schennink to create your own filters.
Tips
- The SVG must be in the same scope as the elements you wish to filter. Global scope is acceptable.
- Consder storing your SVGs within your local project for quick and reusable imports.
- All Vite-based frameworks support SVG imports.
- Optionally you can embed the SVG within a imported component (ex:
Apollo.svelte
,Apollo.tsx
). - Filter SVGs are affected by the flow DOM, including class styles such as
space-{x|y}
.