Tailwind does not apply custom colors
See original GitHub issueI’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:
Current behavior
It seems that tailwind is not registering new colors?
theme: {
extend: {
colors: {
bob: '#21FEB7'
}
}
},
☝️ Added as example the color “bob” vscode tailwind extension picks this up and shows the following
.bg-bob {
--tw-bg-opacity: 1;
background-color: rgba(33, 254, 183, var(--tw-bg-opacity));
}
When viewing in the browser it will be white and not applied. Might be for angular ? Using @ngeat/tailwind 7 with JIT
Expected behavior
Expected the correct color to be applied
Minimal reproduction of the problem with instructions
- Add the above code to
tailwind.config.js
- Create any div to test and use the class
flex h-screen bg-bob
For bug reports please provide the STEPS TO REPRODUCE and if possible a MINIMAL DEMO of the problem
What is the motivation / use case for changing the behavior?
Adding custom branding colors
Environment
Angular version: 11.2.12
Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: 6.x
- Platform: Mac
Others:
Any other questions that I can help with or missing feedback please let me know
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Custom colors in my tailwind.config.js file not showing on page
I just installed Tailwind in VS Code (noob to Tailwind) and am having a problem where the color I configured in tailwind.config.js does...
Read more >Tailwind CSS, certain custom colors are not working
I'm trying to use Tailwind custom colors ...
Read more >Tailwindcss extending colors not working - Laracasts
I wanna add custom color in gray category with new range 950 but its not working extend: { colors: ... Is the file...
Read more >Customizing Colors - Tailwind CSS
Using the default colors. If you don't have a set of completely custom colors in mind for your project, you can curate your...
Read more >Tailwind custom color not working - Jumpstart Pro
Hi, I'm just starting out with Jumpstart and trying to use the colors that are in the Tailwind CSS docs. They don't work....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is what is causing the issues: https://github.com/cssnano/cssnano/commit/a7f0be4acc640aab89cace53a720b3d59b6f7b4f https://github.com/cssnano/cssnano/issues/1115
Closing this as not relevant to
ngneat/taiwlind
. Thanks for checking this @AlexanderOpran!