Material Design Lite
Sticker sheet
Banner
Bottom sheet
Date picker
Expansion Panel
Image list
Grid list
Menu
Ripple
Select
Stepper
Sort header
Tree

Preview

Installation

To import just the component styles, copy the following into your project’s styles.css file:

/* Core Styles */
@import url('https://rodydavis.github.io/material-design-lite/css/core.css');
/* Material Icons */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
/* Roboto Font */
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
/* Component Styles */
@import url('https://rodydavis.github.io/material-design-lite/css/components/focus-ring/style.css');

Usage

Start with a button element (or element that can be focused) and add the focus-ring class name:

<button class="focus-ring">Button</button>

Variants

Default

Default focus ring styling.

<button class="focus-ring">Button</button>

Design Tokens

TokenDescriptionDefault
--md-sys-comp-focus-ring-colorThe color of the focus ring
--md-sys-comp-focus-ring-widthThe width of the focus ring2px

Resources

Playground

See the Pen Focus Ring by Rody Davis (@rodydavis ) on CodePen.