Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Css filter support #402

Merged
merged 2 commits into from
Apr 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 169 additions & 0 deletions __fixtures__/filters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
import tw from './macro'

// https://tailwindcss.com/docs/filter
tw`filter-none`
tw`filter`

// https://tailwindcss.com/docs/blur
tw`blur-0`
tw`blur-sm`
tw`blur`
tw`blur-md`
tw`blur-lg`
tw`blur-xl`
tw`blur-2xl`
tw`blur-3xl`

// https://tailwindcss.com/docs/brightness
tw`brightness-0`
tw`brightness-50`
tw`brightness-75`
tw`brightness-90`
tw`brightness-95`
tw`brightness-100`
tw`brightness-105`
tw`brightness-110`
tw`brightness-125`
tw`brightness-150`
tw`brightness-200`

// https://tailwindcss.com/docs/contrast
tw`contrast-0`
tw`contrast-50`
tw`contrast-75`
tw`contrast-100`
tw`contrast-125`
tw`contrast-150`
tw`contrast-200`

// https://tailwindcss.com/docs/drop-shadow
tw`drop-shadow-sm`
tw`drop-shadow`
tw`drop-shadow-md`
tw`drop-shadow-lg`
tw`drop-shadow-xl`
tw`drop-shadow-2xl`
tw`drop-shadow-none`

// https://tailwindcss.com/docs/grayscale
tw`grayscale-0`
tw`grayscale`

// https://tailwindcss.com/docs/hue-rotate
tw`-hue-rotate-180`
tw`-hue-rotate-90`
tw`-hue-rotate-60`
tw`-hue-rotate-30`
tw`-hue-rotate-15`
tw`hue-rotate-0`
tw`hue-rotate-15`
tw`hue-rotate-30`
tw`hue-rotate-60`
tw`hue-rotate-90`
tw`hue-rotate-180`

// https://tailwindcss.com/docs/invert
tw`invert-0`
tw`invert`

// https://tailwindcss.com/docs/saturate
tw`saturate-0`
tw`saturate-50`
tw`saturate-100`
tw`saturate-150`
tw`saturate-200`

// https://tailwindcss.com/docs/sepia
tw`sepia-0`
tw`sepia`

// All
tw`filter blur-2xl brightness-50 contrast-50 grayscale hue-rotate-180 invert saturate-50 sepia drop-shadow-2xl`

// https://tailwindcss.com/docs/backdrop-filter
tw`backdrop-filter`
tw`backdrop-filter-none`

// https://tailwindcss.com/docs/backdrop-blur
tw`backdrop-blur-0`
tw`backdrop-blur-sm`
tw`backdrop-blur`
tw`backdrop-blur-md`
tw`backdrop-blur-lg`
tw`backdrop-blur-xl`
tw`backdrop-blur-2xl`
tw`backdrop-blur-3xl`

// https://tailwindcss.com/docs/backdrop-brightness
tw`backdrop-brightness-0`
tw`backdrop-brightness-50`
tw`backdrop-brightness-75`
tw`backdrop-brightness-90`
tw`backdrop-brightness-95`
tw`backdrop-brightness-100`
tw`backdrop-brightness-105`
tw`backdrop-brightness-110`
tw`backdrop-brightness-125`
tw`backdrop-brightness-150`
tw`backdrop-brightness-200`

// https://tailwindcss.com/docs/backdrop-contrast
tw`backdrop-contrast-0`
tw`backdrop-contrast-50`
tw`backdrop-contrast-75`
tw`backdrop-contrast-100`
tw`backdrop-contrast-125`
tw`backdrop-contrast-150`
tw`backdrop-contrast-200`

// https://tailwindcss.com/docs/backdrop-grayscale
tw`backdrop-grayscale-0`
tw`backdrop-grayscale`

// https://tailwindcss.com/docs/backdrop-hue-rotate
tw`-backdrop-hue-rotate-180`
tw`-backdrop-hue-rotate-90`
tw`-backdrop-hue-rotate-60`
tw`-backdrop-hue-rotate-30`
tw`-backdrop-hue-rotate-15`
tw`backdrop-hue-rotate-0`
tw`backdrop-hue-rotate-15`
tw`backdrop-hue-rotate-30`
tw`backdrop-hue-rotate-60`
tw`backdrop-hue-rotate-90`
tw`backdrop-hue-rotate-180`

// https://tailwindcss.com/docs/backdrop-invert
tw`backdrop-invert-0`
tw`backdrop-invert`

// https://tailwindcss.com/docs/backdrop-opacity
tw`backdrop-opacity-0`
tw`backdrop-opacity-5`
tw`backdrop-opacity-10`
tw`backdrop-opacity-20`
tw`backdrop-opacity-25`
tw`backdrop-opacity-30`
tw`backdrop-opacity-40`
tw`backdrop-opacity-50`
tw`backdrop-opacity-60`
tw`backdrop-opacity-70`
tw`backdrop-opacity-75`
tw`backdrop-opacity-80`
tw`backdrop-opacity-90`
tw`backdrop-opacity-95`
tw`backdrop-opacity-100`

// https://tailwindcss.com/docs/backdrop-saturate
tw`backdrop-saturate-0`
tw`backdrop-saturate-50`
tw`backdrop-saturate-100`
tw`backdrop-saturate-150`
tw`backdrop-saturate-200`

// https://tailwindcss.com/docs/backdrop-sepia
tw`backdrop-sepia-0`
tw`backdrop-sepia`

// All
tw`backdrop-filter backdrop-blur-2xl backdrop-brightness-50 backdrop-contrast-50 backdrop-grayscale backdrop-hue-rotate-180 backdrop-invert backdrop-opacity-50 backdrop-saturate-50 backdrop-sepia`
Loading