{"id":13599311,"url":"https://github.com/fornewid/neumorphism","last_synced_at":"2025-04-12T21:35:40.674Z","repository":{"id":40427844,"uuid":"245137344","full_name":"fornewid/neumorphism","owner":"fornewid","description":"Try to Neumorphism in Android (Just experimental!! 🧪)","archived":false,"fork":false,"pushed_at":"2022-04-05T15:53:04.000Z","size":3048,"stargazers_count":992,"open_issues_count":38,"forks_count":163,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-04-04T01:09:46.830Z","etag":null,"topics":["android","design","experimental","neumorphism","widgets"],"latest_commit_sha":null,"homepage":"https://medium.com/@fornewid/neumorphism-in-android-9cf15e2122dc","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fornewid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-05T10:48:41.000Z","updated_at":"2025-04-02T09:27:19.000Z","dependencies_parsed_at":"2022-07-11T23:33:36.342Z","dependency_job_id":null,"html_url":"https://github.com/fornewid/neumorphism","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fornewid%2Fneumorphism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fornewid%2Fneumorphism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fornewid%2Fneumorphism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fornewid%2Fneumorphism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fornewid","download_url":"https://codeload.github.com/fornewid/neumorphism/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637187,"owners_count":21137530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","design","experimental","neumorphism","widgets"],"created_at":"2024-08-01T17:01:02.093Z","updated_at":"2025-04-12T21:35:40.649Z","avatar_url":"https://github.com/fornewid.png","language":"Kotlin","funding_links":[],"categories":["Kotlin","How it all start ?"],"sub_categories":["UI Toolkits"],"readme":"\n\u003cp align=\"center\"\u003e\n\u003cimg height=\"200\" src='https://github.com/fornewid/Neumorphism/blob/main/art/preview.png'/\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eNeumorphism in Android\u003c/h1\u003e\u003cbr/\u003e\n\u003cp align=\"center\"\u003e\n  This is the experimental codes to build Neumorphism designs in Android.\u003cbr/\u003e\n  Not a library. Just sample project now.\u003cbr/\u003e\n  \u003cbr/\u003e\n\u003c/p\u003e\n\u003c/br\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://opensource.org/licenses/Apache-2.0\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"/\u003e\u003c/a\u003e\n\u003ca href='https://developer.android.com'\u003e\u003cimg src='http://img.shields.io/badge/platform-android-green.svg'/\u003e\u003c/a\u003e\n\u003ca href='https://jitpack.io/#fornewid/neumorphism'\u003e\u003cimg src='https://jitpack.io/v/fornewid/neumorphism.svg'/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n\u003ch2 align=\"center\"\u003ePreview\u003c/h2\u003e\n\u003ch4 align=\"center\"\u003eLight    |    Dark\u003c/h4\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"300\" src=\"https://github.com/fornewid/Neumorphism/blob/main/art/preview_light.gif\"/\u003e \u003cimg width=\"300\" src=\"https://github.com/fornewid/Neumorphism/blob/main/art/preview_dark.gif\"/\u003e\n\u003c/p\u003e\n\n## Dependency\n\nAdd this in your root `build.gradle` file (**not** your module `build.gradle` file):\n\n```gradle\nallprojects {\n    repositories {\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\n\nThen, add the library to your module `build.gradle`\n```gradle\ndependencies {\n    implementation 'com.github.fornewid:neumorphism:{latest_version}'\n}\n```\n\n## Features\n- Draw a shadow background on widgets for Neumorphism.\n  Supported on the following widgets:\n  - ViewGroup: CardView\n  - View: Button, FloatingActionButton, ImageView\n- Draw a text shadow on TextView for Neumorphism.\n\n\u003e If you want more features or want to fix bugs, please click [new issue](https://github.com/fornewid/neumorphism/issues/new/choose) and report to me!\n\n## Usage\nThere is a [sample](https://github.com/fornewid/neumorphism/tree/main/sample) provided which shows how to use the library:\n\n```xml\n\u003csoup.neumorphism.NeumorphCardView\n    // Pre-defined style\n    style=\"@style/Widget.Neumorph.CardView\"\n\n    // Set shadow elevation and colors\n    app:neumorph_shadowElevation=\"6dp\"\n    app:neumorph_shadowColorLight=\"@color/solid_light_color\"\n    app:neumorph_shadowColorDark=\"@color/solid_dark_color\"\n\n    // Set light source\n    app:neumorph_lightSource=\"leftTop|leftBottom|rightTop|rightBottom\"\n\n    // Set shape type and corner size\n    app:neumorph_shapeType=\"{flat|pressed|basin}\"\n    app:neumorph_shapeAppearance=\"@style/CustomShapeAppearance\"\n\n    // Set background or stroke\n    app:neumorph_backgroundColor=\"@color/background_color\"\n    app:neumorph_strokeColor=\"@color/stroke_color\"\n    app:neumorph_strokeWidth=\"@dimen/stroke_width\"\n\n    // Use a inset to avoid clipping shadow. (default=12dp)\n    app:neumorph_inset=\"12dp\"\n    app:neumorph_insetStart=\"12dp\"\n    app:neumorph_insetEnd=\"12dp\"\n    app:neumorph_insetTop=\"12dp\"\n    app:neumorph_insetBottom=\"12dp\"\n\n    // Use a padding. (default=12dp)\n    android:padding=\"12dp\"\u003e\n\n    \u003c!-- NeumorphCardView extends FrameLayout. So you can wrap childrens like this. --\u003e\n    \u003cConstraintLayout /\u003e\n\u003c/soup.neumorphism.NeumorphCardView\u003e\n\n\u003cstyle name=\"CustomShapeAppearance\"\u003e\n    \u003citem name=\"neumorph_cornerFamily\"\u003e{rounded|oval}\u003c/item\u003e\n    \u003citem name=\"neumorph_cornerSize\"\u003e32dp\u003c/item\u003e\n\n    \u003c!-- Or if wants different radii depending on the corner. --\u003e\n    \u003citem name=\"neumorph_cornerSizeTopLeft\"\u003e16dp\u003c/item\u003e\n    \u003citem name=\"neumorph_cornerSizeTopRight\"\u003e16dp\u003c/item\u003e\n    \u003citem name=\"neumorph_cornerSizeBottomLeft\"\u003e16dp\u003c/item\u003e\n    \u003citem name=\"neumorph_cornerSizeBottomRight\"\u003e16dp\u003c/item\u003e\n\u003c/style\u003e\n```\n\n- #### LightSource\n| LEFT_TOP | LEFT_BOTTOM | RIGHT_TOP | RIGHT_BOTTOM |\n| :--: | :-----: | :---: | :---: |\n| \u003cimg width=\"100\" src=\"https://github.com/fornewid/Neumorphism/blob/main/art/lightSource_leftTop.png\"/\u003e | \u003cimg width=\"100\" src=\"https://github.com/fornewid/Neumorphism/blob/main/art/lightSource_leftBottom.png\"/\u003e | \u003cimg width=\"100\" src=\"https://github.com/fornewid/Neumorphism/blob/main/art/lightSource_rightTop.png\"/\u003e | \u003cimg width=\"100\" src=\"https://github.com/fornewid/Neumorphism/blob/main/art/lightSource_rightBottom.png\"/\u003e |\n\n- #### ShapeType\n| FLAT | PRESSED | BASIN |\n| :--: | :-----: | :---: |\n| \u003cimg width=\"100\" src=\"https://github.com/fornewid/Neumorphism/blob/main/art/shape_flat.png\"/\u003e | \u003cimg width=\"100\" src=\"https://github.com/fornewid/Neumorphism/blob/main/art/shape_pressed.png\"/\u003e | \u003cimg width=\"100\" src=\"https://github.com/fornewid/Neumorphism/blob/main/art/shape_basin.png\"/\u003e |\n\n## License\n\n```\nCopyright 2020 SOUP\n\nLicensed to the Apache Software Foundation (ASF) under one or more contributor\nlicense agreements. See the NOTICE file distributed with this work for\nadditional information regarding copyright ownership. The ASF licenses this\nfile to you under the Apache License, Version 2.0 (the \"License\"); you may not\nuse this file except in compliance with the License. You may obtain a copy of\nthe License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\nLicense for the specific language governing permissions and limitations under\nthe License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffornewid%2Fneumorphism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffornewid%2Fneumorphism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffornewid%2Fneumorphism/lists"}