Giter Club home page Giter Club logo

tailwindcss-filters's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tailwindcss-filters's Issues

Hover classes

The plugin works great, thank you.

Wondering how to make it work with hover:filter-none. I believe it would need extra CSS classes in this plugin.

Is this possible today?

[question] compatible with Tailwind 2.0?

Hello!

I wanted to ask if tailwindcss-filters is compatible with the latest version of tailwind (2.0)? I don't see any version above 1.2 referenced in the documentation.

Thank you!

Applying multiple filters

Nice plugin @benface - quick question. if you wanted to apply multiple filters, it doesn't seem possible to do this using multiple classes (i.e fliter-greyscale filter-contrast).
Instead would the recommended way be something like this?
greyscale-contrast': 'grayscale(100%) contrast(3)',

Add possibility to provide a function config (to receive the 'theme' helper)

Hi @benface!

Thanks for providing us with this tailwindcss plugin!

I was wondering if you would be interested to implement the possibility to provide the plugin config as a function so it can depend on other parts of the theme (just like we do by default with backgroundColor, textColor & borderColor).

My use-case would be to use the colors from my theme so I can create a filter that would be an overlay of a certain color with the help of the hex-to-css-filter package and add it as following in the plugin section of my config file:

// tailwind.config.js

const hexToCSSFilter = require('hex-to-css-filter');

module.exports = {
  theme: {
    colors: {
      facebook: '#3B5998',
    },
  },
  plugins: [
    require('tailwindcss-filters')(theme => ({
      filters: {
        none: 'none',
        facebook: hexToCSSFilter(theme('colors.facebook')),
      },
    })),
  ],
};

Now Requires Unknown Dependency

The plugin now requires an unknown plugin of tailwindcss-plugin.

Beta 2.0.0 Edition that doesn't feature that dependency works fine.

I couldn't find where in the ReadMe it said about the 'plugin' plugin?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.