neumorphism using css

 


code 


<!doctype html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <script src="https://kit.fontawesome.com/a2fa536777.js" crossorigin="anonymous"></script>
  <title>Button neumorphism</title>
  <style>
    body {
      margin: 0;
      padding: 0;
      background-color: #202020;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      box-sizing: border-box;
    }
    .box {
      width: 65px;
      height: 65px;
      background-color: #202020;
      margin: 10px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 5px 5px 10px rgba(10,10,10,0.7), -5px -5px 10px rgba(50, 50, 50, 0.7);
      color: #404040;
    }
    .box:hover {
      transform: scale(1.08);
      box-shadow: inset 5px 5px 10px rgba(10,10,10,0.7), inset -5px -5px 10px rgba(50, 50, 50, 0.7);;
    }
    .button1:hover {
      color: #DF0000;
    }
    .button2:hover {
      color: #003DDF;
    }
    .button3:hover {
      color: #60B406;
    }
    .button4:hover {
      color: #C38007;
    }
    .button5:hover {
      color: #07B6C3;
    }
  </style>
</head>
<body>
  <div class="box button1">
   <i class="fa-brands fa-youtube fa-2x"></i>
  </div>
  <div class="box button2">
   <i class="fa-brands fa-facebook fa-2x"></i>
  </div>
  <div class="box button3">
   <i class="fa-brands fa-twitter fa-2x"></i>
  </div>
  <div class="box button4">
   <i class="fa-brands fa-github fa-2x"></i>
  </div>
  <div class="box button5">
   <i class="fa-solid fa-shield-halved fa-2x"></i>
  </div>
</body>
</html>