Giter Site home page Giter Site logo

rn-neumorphism's Introduction

rn-neumorphism

react native neumorphism component with android support

package needed : "react-native-linear-gradient": "^2.5.6", "react-native-shadow": "^1.2.2", "react-native-svg": "^12.0.3"

Alt text

How To Install

We are using colors.eva.design for theming and shadow color from "neumorphism.io".

  1. npm i rn-neumorphism
  2. add style folder in your project app
  3. From colors.eva.design site, choose your primary color. Example: #f1f3f6
  4. Generate yours primary color in "colors.eva.design"
  5. Import your color in json file. In that file replace - character to _

After you complete this steps above. We need another color for your buttons shadow. So you need to add string property in your custom-theme.json file.

"color_danger_shadow_dark": yourShadowColor, "color_danger_shadow_light": yourShadowColor, "color_warning_shadow_dark": yourShadowColor, "color_warning_shadow_light": yourShadowColor, "color_info_shadow_dark": yourShadowColor, "color_info_shadow_light": yourShadowColor, "color_primary_shadow_dark": yourShadowColor, "color_primary_shadow_light": yourShadowColor, "color_success_shadow_light": yourShadowColor, "color_success_shadow_dark": yourShadowColor

Shadow color generate from "neumorphism.io". Generate your semantic color 500 from custom-theme.json. Example "color_warning_500" : "#FCC735". Generate that color to neumorphism.io.

You get css code like this :

border-radius: 50px; background: #FCC735; box-shadow: 20px 20px 60px #d6a92d, -20px -20px 60px #ffe53d;

use box shadow color #d6a92d to your "color_warning_shadow_dark" and #ffe53d to "color_warning_shadow_light":

do this step again to semantic danger, info, primary, success

rn-neumorphism's People

Contributors

mahesarohman98 avatar

Stargazers

Simon G. Tsegay avatar Hasbi Musaddad avatar  avatar Zamhadi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.