question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tailwind does not apply custom colors

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

0reactions
vltanskycommented, May 23, 2021

Closing this as not relevant to ngneat/taiwlind. Thanks for checking this @AlexanderOpran!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found