Giter Club home page Giter Club logo

Comments (4)

adamwathan avatar adamwathan commented on June 15, 2024 3

Make sure you install autoprefixer and add it to your PostCSS config πŸ‘ Styling custom form elements relies on the appearance: none property which currently requires vendor prefixes in all browsers, but we don't bake those vendor prefixes into Tailwind because we don't want to force all users to support the same browsers.

    {
      resolve: `gatsby-plugin-sass`,  
      options: {  
        postCssPlugins: [
           require('tailwindcss')('./tailwind.config.js'),
           require('autoprefixer'),
        ],  
      },  
    },

from tailwindcss-custom-forms.

adamwathan avatar adamwathan commented on June 15, 2024

from tailwindcss-custom-forms.

zamson avatar zamson commented on June 15, 2024

I'm using the HTML from the docs:

  <span class="text-gray-700">Requested Limit</span>
  <select class="form-select mt-1 block w-full">
    <option>$1,000</option>
    <option>$5,000</option>
    <option>$10,000</option>
    <option>$25,000</option>
  </select>
</label>

Gatsby SASS (from gatsby-config):

    {
      resolve: `gatsby-plugin-sass`,  
      options: {  
        postCssPlugins: [require('tailwindcss')('./tailwind.config.js')],  
      },  
    },

Tailwind config:

    theme: {
      extend: {
        colors: {
          'greenpeace-green': '#66CC00',
        }
      }
    },
    plugins: [
      require('@tailwindcss/custom-forms'),
    ]
  }

from tailwindcss-custom-forms.

zamson avatar zamson commented on June 15, 2024

Thanks – It's working πŸ₯³

from tailwindcss-custom-forms.

Related Issues (20)

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.