Skip to content

Commit

Permalink
Merge pull request #2 from lukewarlow/remove-upstreamed
Browse files Browse the repository at this point in the history
Remove upstreamed variants
  • Loading branch information
lukewarlow authored Dec 19, 2023
2 parents 6e8d2be + 9a57c13 commit eeb26f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ plugins: [

If you want a media query to be added to this plugin please open an issue or PR.

### [`forced-colors`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forced-colors)

- `forced-colors`: A variant for `@media (forced-colors: active)`.

### [`prefers-contrast`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-contrast)

- `contrast-custom`: A variant for `@media (prefers-contrast: custom)`.
Expand Down Expand Up @@ -90,6 +86,12 @@ These are the "wrong" way round to match the existing motion variants inside of
- `p3`: A variant for `@media (color-gamut: p3)`.
- `rec2020`: A variant for `@media (color-gamut: rec2020)`.

## Removed Features

### [`forced-colors`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forced-colors)

- This was removed as it is now in TailwindCSS itself.

## License

This project is licensed under the [MIT License](https://github.com/lukewarlow/tailwind-mq/blob/master/LICENSE).
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export function mediaQueries() {
addVariant('transparency-safe', '@media (prefers-reduced-transparency: no-preference)');
addVariant('inverted-colors', '@media (inverted-colors: inverted)');
addVariant('data-reduce', '@media (prefers-reduced-data: reduce)');
addVariant('forced-colors', '@media (forced-colors: active)');
addVariant('contrast-custom', '@media (prefers-contrast: custom)');
addVariant('noscript', '@media (scripting: none)');
addVariant('scripting', '@media (scripting: enabled)');
Expand Down

0 comments on commit eeb26f5

Please sign in to comment.