Back

Preview

HTML
<button class="ds-button">
  <svg
    stroke-linejoin="round"
    stroke-linecap="round"
    fill="none"
    stroke="currentColor"
    stroke-width="2"
    viewBox="0 0 24 24"
    class="ds-button__icon"
    xmlns="http://www.w3.org/2000/svg"
    aria-hidden="true"
  >
    <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
    <polyline points="7 10 12 15 17 10"></polyline>
    <line x1="12" y1="15" x2="12" y2="3"></line>
  </svg>
  <span class="ds-button__text">Download</span>
</button>
            
CSS
.ds-button {
  line-height: 1;
  background-color: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.75em;
  padding-right: 1.5em;
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 3em;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.01em;
  box-shadow: 
    0 4px 14px -2px rgba(77, 54, 208, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 48px;

  background: linear-gradient(
    135deg,
    rgba(77, 54, 208, 1) 0%,
    rgba(132, 116, 254, 1) 100%
  );
}

.ds-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(92, 70, 220, 1) 0%,
    rgba(145, 130, 255, 1) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.ds-button:hover::before {
  opacity: 1;
}

.ds-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px -2px rgba(77, 54, 208, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.ds-button:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 10px -1px rgba(77, 54, 208, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition-duration: 0.1s;
}

.ds-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.ds-button__icon {
  width: 1.25em;
  height: 1.25em;
  transition: transform 0.3s ease;
}

.ds-button:hover .ds-button__icon {
  transform: translateY(2px);
}

.ds-button__text {
  position: relative;
  top: 1px;
}

.ds-button--loading .ds-button__icon {
  animation: ds-spin 1s linear infinite;
}

@keyframes ds-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

License MIT

Original author: Creatlydev
Modified by FVOweb

Copyright - 2026 Creatlydev (Samir Yangua Ruiz) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.