{"id":19638006,"url":"https://github.com/mayandev/neumorphism-button","last_synced_at":"2025-04-28T10:30:26.003Z","repository":{"id":97882175,"uuid":"259527139","full_name":"Mayandev/neumorphism-button","owner":"Mayandev","description":"⚪️这是一个拟态设计的按钮","archived":false,"fork":false,"pushed_at":"2020-04-28T04:03:54.000Z","size":1,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-25T23:30:51.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mayandev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-28T04:01:57.000Z","updated_at":"2022-08-04T01:16:34.000Z","dependencies_parsed_at":"2023-04-25T14:10:37.487Z","dependency_job_id":null,"html_url":"https://github.com/Mayandev/neumorphism-button","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayandev%2Fneumorphism-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayandev%2Fneumorphism-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayandev%2Fneumorphism-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayandev%2Fneumorphism-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mayandev","download_url":"https://codeload.github.com/Mayandev/neumorphism-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251295063,"owners_count":21566389,"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":[],"created_at":"2024-11-11T12:37:22.430Z","updated_at":"2025-04-28T10:30:25.995Z","avatar_url":"https://github.com/Mayandev.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 拟态设计按钮\n\n这是一个拟态设计按钮，在线预览：[https://mayandev.top/neumorphism-button/](https://mayandev.top/neumorphism-button/)\n\n[拟态设计主要特点](https://www.zcool.com.cn/article/ZMTEwMjQ3Ng==.html)就是在可点区域做了一些「浮雕」的效果，在视觉处理上是未选中状态是凸出来的，已经选中状态是凹进去的。在投影方面，左上角亮色投影，右下角深色投影（有且只有一个光源照射）。\n\n\n\n按钮的实现主要利用 box-shadow 属性，对四个方向的阴影进行控制，详情可查看 [css](./style.css) 文件。\n\n效果图如下：\n\n![](https://mayandev.oss-cn-hangzhou.aliyuncs.com/blog/neumorphism-2.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayandev%2Fneumorphism-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayandev%2Fneumorphism-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayandev%2Fneumorphism-button/lists"}