ring-gray-300 Tailwind CSS Class

Use ring-gray-300 to set the ring color to #d1d5dc in Tailwind CSS. This page gives you the generated CSS output, a copy-paste example, and an interactive demo for search-friendly utility lookups.

Quick Answer

ring-gray-300 maps to ring-color: #d1d5dc. It belongs to the Colors category and was generated from Tailwind CSS v4.1.14 reference data.

Interactive Demo

Toggle the utility on and off, switch preview surfaces, and adjust the demo content to see how this class behaves.

This preview simulates the effect of ring-gray-300 using structured data generated from your Tailwind reference snapshot.

Visual Comparison

ring-gray-300 updates the element's ring-color to #d1d5dc, so the visual emphasis changes without shifting layout or spacing.

Before
Focus ring preview
After
Focus ring preview
ring-colorColorscolor

Variants & Breakpoints

Use the base utility directly, then layer state or responsive variants when the component needs more specific behavior.

ContextClass syntaxWhy use itPreview
Basering-gray-300Apply ring-gray-300 directly to the element.Default application
Hoverhover:ring-gray-300Use this when the visual change should appear on pointer hover.Pointer state
Focusfocus:ring-gray-300Useful when the class should react to focus or keyboard navigation.Focus state
Darkdark:ring-gray-300Apply the same utility inside a dark color scheme.Dark surface
smsm:ring-gray-300Applies from 640px and up.640px
mdmd:ring-gray-300Applies from 768px and up.768px
lglg:ring-gray-300Applies from 1024px and up.1024px

Utility Family Comparison

Compare nearby options and related companions so you can choose the right intensity before reaching for trial-and-error tweaks.

When to use this class

Use this class when you want a fast, predictable ring-color decision inside colors patterns such as buttons, badges, alerts, or surface accents.

Watch out for

Watch contrast and state stacking. A color utility can look correct in isolation but lose readability once text, border, hover, and dark mode states combine.

Class Reference

FieldValue
Utility classring-gray-300
CategoryColors
CSS outputring-color: #d1d5dc
Source pageColors Reference
Static slugring-gray-300

Example Snippet

Use this code snippet as a starting point, then swap the markup around it to fit your component or layout.

html
<button class="ring-4 ring-gray-300 rounded-lg px-5 py-3">Focused button</button>

Browse More

Return to the Colors Reference page for broader browsing, or open the Tailwind CSS Cheat Sheet to move across categories quickly.