Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shadow not found... but it's listed as an alternative #216

Closed
sampotts opened this issue Nov 29, 2020 · 3 comments
Closed

shadow not found... but it's listed as an alternative #216

sampotts opened this issue Nov 29, 2020 · 3 comments

Comments

@sampotts
Copy link

When upgrading to 2.0.2 and building our app, I get this:

image

✕ shadow was not found

Try one of these classes:
shadow-xs [0 0 0 1px rgba(0, 0, 0, 0.05)] / shadow-sm [0 1px 2px 0 rgba(0, 0, 0, 0.05)]
shadow [0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)]
...

Unless there's something funky going on I need to fix? It seems odd though.

@sampotts sampotts changed the title shadow not found shadow not found... but it's listed as an alternative Nov 29, 2020
@ben-rogerson
Copy link
Owner

ben-rogerson commented Nov 29, 2020

Hey there,

Check out this change that was made in Tailwind.

You'll need to add an item with the key name of DEFAULT in order to use the default value like you're used to.

For example:

To use border:

// tailwind.config.js
borderWidth: {
      DEFAULT: "1px",
      "md": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
},

I think I may need to adjust the suggestion in this case, I don't think it should be recommending the shadow class as being available.

Could you share you tailwind.config? or at least the boxShadow part of it?

@ben-rogerson
Copy link
Owner

ben-rogerson commented Nov 30, 2020

Shadow classes actually still need to be updated to tailwind v2. Missed those somehow #224
Update: fixed in 2.0.4

@ben-rogerson
Copy link
Owner

Fixed the suggestions in v2.0.7 - cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants