Skip to content

Material Design 3 Tonal

Accessible tonal button with ripple effect following Material Design 3 guidelines

ButtonsModern PresetsMaterialIntermediateHTML/CSSTailwindReactVueAngularSvelteLWC
Material Design 3 Tonal

by FreeCsStyles Dev's

Modern PresetsMaterial
🌐🎨⚛️💚🅰️🔥☁️
#material#tonal#accessible#android#business#forms

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/material3-tonal.

<iframe src="/embed/material3-tonal" sandbox="allow-scripts" loading="lazy" title="Material Design 3 Tonal" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Material Design 3 Tonal, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<button class="material3-tonal-button">Tonal Button</button>
CSS
.material3-tonal-button {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: #e8def8;
  color: #1d1b20;
  font-weight: 500;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.material3-tonal-button:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.material3-tonal-button:active {
  transform: scale(0.97);
}

.material3-tonal-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29, 27, 32, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.material3-tonal-button:hover::after {
  opacity: 1;
}
Tailwind CSS
<button class="px-6 py-3 rounded-full bg-[#e8def8] text-[#1d1b20] font-medium hover:shadow-[0_1px_3px_rgba(0,0,0,0.2),0_4px_8px_rgba(0,0,0,0.1)] active:scale-[0.97] transition-all duration-200 relative overflow-hidden group">
  <span class="relative z-10">Tonal Button</span>
  <span class="absolute inset-0 bg-[#1d1b20]/[0.08] opacity-0 group-hover:opacity-100 transition-opacity"></span>
</button>
LWC — HTML template
<template>
  <button class="material3-tonal-button" onclick={handleClick}>
    <slot>Tonal Button</slot>
  </button>
</template>
LWC — JavaScript
import { LightningElement, api } from 'lwc';

export default class Material3TonalButton extends LightningElement {
  @api label = 'Tonal Button';
  
  handleClick() {
    this.dispatchEvent(new CustomEvent('buttonclick', {
      bubbles: true,
      composed: true
    }));
  }
}
LWC — CSS
.material3-tonal-button {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: #e8def8;
  color: #1d1b20;
  font-weight: 500;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.material3-tonal-button:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.material3-tonal-button:active {
  transform: scale(0.97);
}
LWC — Configuration
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
  <apiVersion>59.0</apiVersion>
  <isExposed>true</isExposed>
  <targets>
    <target>lightning__AppPage</target>
    <target>lightning__RecordPage</target>
    <target>lightning__HomePage</target>
  </targets>
</LightningComponentBundle>

Where Material Design 3 Tonal fits

  • Android Apps
  • Business Applications
  • Forms
  • CRMs
  • Internal Tools

Interaction states & animations

  • Ripple
  • Elevation

Topics

  • #material
  • #tonal
  • #accessible
  • #android
  • #business
  • #forms

Accessibility notes

Follows Material Design accessibility guidelines with proper focus indicators and state layers.

Browser support

  • All modern browsers