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

Add shadow into utilities #23437

Closed
guledali opened this issue Aug 14, 2017 · 5 comments
Closed

Add shadow into utilities #23437

guledali opened this issue Aug 14, 2017 · 5 comments

Comments

@guledali
Copy link

It would nice to quickly add shadows to components, please add this feature into utilities

@ajomadlabs
Copy link

Can I take up this ?

@sabrown84
Copy link

Hi @guledali I noticed that there is a box-shadow property via mixins...I don't however see a text-shadow property. Is that what you mean?

@sabrown84
Copy link

Hi @mdo any thoughts on this one? Am I on the right track?

@mdo
Copy link
Member

mdo commented Oct 29, 2017

@sabrown84 That one mixin is for quickly toggling box-shadows globally—this way, you can opt out of the property and value (property: value;) entirely rather than just resetting the value.

What @guledali is after is box shadow utility classes. So, for example:

.box-shadow { ... }
.box-shadow-lg { ... }

I don't know for sure which shadows we'd want to turn into utilities though. We should look through where we have box-shadow already in our components and see if there's some common patterns we can turn into utilities.

There also is overlap with #23775, which is asking for box-shadow variables. I imagine when we add the utilities, we'd introduce these new variables across those new classes and the existing component variables perhaps.

@guledali
Copy link
Author

guledali commented Nov 3, 2017

@mdo and @sabrown84 when I originally wrote this post more than two months ago, I was trying to add box shadow to some components like the card or navbar component just to separate from the rest of the content.

I was particularly looking at this codepen https://codepen.io/sdthornton/pen/wBZdXq
and was thinking it would be nice to have this in the utility section, rapidly adding shadow into your work.

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

No branches or pull requests

5 participants