Comments (6)
Are you using purge in your tailwind config? If so, disable it temporarily and try it again. This is the issue I'm having anyway.
from tailwindcss-forms.
What I found out:
my app.css does not change running npm dev or prod with or without using require('@tailwindcss/forms') in the tailwind.config.js file. Removing the purge part also does not have an effect.
So to solve this, because I really need this quickly, I copied
https://tailwindcss-forms.vercel.app/dist/forms.css
to my resources/css/dist folder and imported it in the resurces/app.css:
@import 'dist/forms.css';
But this did not work either. So I removed the default color in 109 (There are more colors. but this is the checkbox color I need and it should work with all the other colors, too). NOW I can add text-red-500 to the checkbox and itΒ΄s changing the color. This works with dev, prod AND purge and so far I have a working tw2/forms solution.
I know that it is not a good workaround, but after some hours I was desperate. Would be great, if someone could fix this, so we can use it correctly - or tell us, what we are missing here.
from tailwindcss-forms.
@leesmith I did but removed it, however, it still does to work. This is my complete tailwind.config.js
file:
module.exports = {
purge: [],
darkMode: false,
theme: {
extend: {}
},
variants: {
extend: {}
},
plugins: [
require('@tailwindcss/forms'),
]
}
from tailwindcss-forms.
Hey! Thank you for your bug report!
Much appreciated! π
Can you try and reproduce it on https://play.tailwindcss.com and share it?
Here is an example: https://play.tailwindcss.com/4UAxn4jVPR
The source of our demo (https://tailwindcss-forms.vercel.app) can be found here: https://github.com/tailwindlabs/tailwindcss-forms/blob/master/index.html
from tailwindcss-forms.
@RobinMalfait I'm really confused now, I tried but in the playground it does work
from tailwindcss-forms.
I found it! Yet another stupid fault of mine... I forgot to update the assets on the main Laravel installation because I'm creating a Laravel package. However, thanks for your help!
from tailwindcss-forms.
Related Issues (20)
- CSS color-adjust property is deprecated
- Invalid padding for <select> in Firefox HOT 1
- No longer works with @nuxtjs/tailwindcss - 5.1.2 HOT 1
- "MODULE_NOT_FOUND" if tailwind config is in another directory HOT 3
- Tailwindcss/forms failed to install HOT 2
- input should always default to [type='text'] styling. HOT 4
- input type="checkbox" { @apply rounded-full; } leaving syntax error expecting { instead of = HOT 1
- input [type="checkbox"] { @apply rounded-full; } does not work HOT 1
- Placeholder color not compatible with css variables HOT 3
- Adding the plugin breaks TailwindCSS extension in VSCode on macOS HOT 1
- Tailwindcss/forms and other plugin compatibility issue (DaisyUI) HOT 2
- Select with size option shows chevron HOT 4
- Outdated installation instructions HOT 1
- next.js | Error: Cannot find module '@tailwindcss/forms' HOT 1
- Disable tailwindcss-forms for a specific form HOT 2
- appearance-none not working for select tag
- Select input options in Chrome not displaying properly HOT 4
- 'require' not define, cannot import plugin to tailwind config HOT 3
- How to remove the caret in the select input? HOT 1
- Date length error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwindcss-forms.