新拟态是一种图形样式,其原理是为界面的UI元素赋予真实感。

原生名词有几个叫法,Neumorphism / soft ui,翻译过来是新拟态或者是软ui。国内的翻译叫,新拟物风格。Neumorphism,是New +Skeuomorphism的组合词。按照我个人的通俗理解,就是将界面的一部分凸起来,另一部分凹下去,形成的一种错落有致的拟物风格。代表作是乌克兰设计师 Alexander Plyuto 在各平台发布的新作品「Skeuomorph Mobile Banking」

新拟态 UI 风格与扁平、投影风格的对比

从上面这张对比图可以看出,扁平风格就像是一张纸贴在墙面上,投影风格像是浮在半空中,而新拟态风格则像是墙面上直接凸起了一块。要实现这种风格,精髓在于一个白色的阴影+一个常规阴影。一个示例如下图所示:

Neumorphism css 在线生成器地址:https://neumorphism.io

前端实现的效果:

代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./font_ue8tdlm62pf/iconfont.css">
<style>
.container {
width: 1018px;
margin: 0 auto;
height: 660px;
background-color: #e6eef4;
}

.top {
height: 200px;
flex-direction: row;
}

.top-left {
width: 400px;
/* height: 400px; */
float: left;
/* background-color: rgb(92, 89, 89); */
margin: 50px;
border-radius: 39px;
background: #e6eef4;
box-shadow: 33px 33px 67px #cad1d7,
-33px -33px 67px #ffffff;
}

.d1,
.d2,
.d3,
.d4 {
display: inline-block;
width: 144px;
height: 144px;
border-radius: 50%;
background-color: red;
margin: 24px;
border-radius: 50%;
background: #e6eef4;
box-shadow: inset 14px 14px 22px #cfd6dc,
inset -14px -14px 22px #fdffff;
}

.aircraft {
font-size: 80px;
display: flex;
justify-content: center;
align-items: center;
/* margin-top: 10%; */
padding-top: 30px;
color: #4d8af0;
}

.top-right {
width: 400px;
height: 400px;
float: right;
background-color: green;
margin: 50px;
border-radius: 39px;
background: #e6eef4;
box-shadow: 33px 33px 67px #cad1d7,
-33px -33px 67px #ffffff;
}

.d21,
.d31,
.d41 {
display: inline-block;
width: 88px;
height: 88px;
border-radius: 50%;
background-color: red;
margin: 21px;
border-radius: 50%;
background: #e6eef4;
box-shadow: 6px 6px 12px #cad1d7,
-6px -6px 12px #ffffff;
}

.r-aircraft {
font-size: 40px;
display: flex;
justify-content: center;
align-items: center;
/* margin-top: 10%; */
padding-top: 24px;
color: #4d8af0;
}

p {
text-align: center;
font-size: 24px;
color: #576f87;
font-weight: bold;
}
</style>
</head>

<body>
<div class="container">
<div class="top">
<div class="top-left">
<span class="d1">
<i class="iconfont aircraft"></i>
</span>
<span class="d2">
<i class="iconfont aircraft"></i>
</span>
<span class="d3">
<i class="iconfont aircraft"></i>
</span>
<span class="d4">
<i class="iconfont aircraft"></i>
</span>
</div>
<div class="top-right">
<i class="iconfont aircraft"></i>
<p>音乐</p>
<span class="d21">
<i class="iconfont r-aircraft"></i>
</span>
<span class="d31">
<i class="iconfont r-aircraft"></i>
</span>
<span class="d41">
<i class="iconfont r-aircraft"></i>
</span>
</div>
</div>
</div>
</body>

</html>

新拟态UI风格Css在线生成:http://www.fly63.com/tool/neumorphism/

效果如下: