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

Easy multicolor support #9

Open
TheMisfit68 opened this issue Dec 12, 2020 · 1 comment
Open

Easy multicolor support #9

TheMisfit68 opened this issue Dec 12, 2020 · 1 comment

Comments

@TheMisfit68
Copy link
Contributor

TheMisfit68 commented Dec 12, 2020

Found an excellent idea online
to get a neumorphic design compatible with all kind of color schemes,
but without having to provide color-assets or custom shadows for each color used:

The default dark and light shadows are just black and white and get blended onto the design

`.shadow(color: .white, radius: 15, x: -10, y: -10)

.shadow(color: .black, radius: 15, x: 10, y: 10)

.blendMode(.overlay)`

This could greatly simplify the implementation as the project supports more and more controls.

Just an interesting idea

@costachung
Copy link
Owner

This is a good idea for people who want to use neumorphic UI on different color backgrounds (except black and white) without having to pick which color to use for the shadows.

That looks like an optional feature from the API-level point of view.

First, We have to test the blend mode to see if this work on both "inner" and "outer" shadow.

Second, I need to think about where to add this in the API. And we can discuss about it later.

That's an interesting topic. Let's keep this open.

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