Skip to main content

Accent Color

Utilities for controlling the accent color of form controls.

CSS Property:accent-color
Classes:24

Accent Color Classes

ClassCSS
accent-inheritaccent-color: inherit;
accent-currentaccent-color: currentColor;
accent-transparentaccent-color: transparent;
accent-blackaccent-color: #000;
accent-whiteaccent-color: #fff;
accent-slate-500accent-color: #64748b;
accent-gray-500accent-color: #6b7280;
accent-red-500accent-color: #ef4444;
accent-orange-500accent-color: #f97316;
accent-amber-500accent-color: #f59e0b;
accent-yellow-500accent-color: #eab308;
accent-lime-500accent-color: #84cc16;
accent-green-500accent-color: #22c55e;
accent-emerald-500accent-color: #10b981;
accent-teal-500accent-color: #14b8a6;
accent-cyan-500accent-color: #06b6d4;
accent-sky-500accent-color: #0ea5e9;
accent-blue-500accent-color: #3b82f6;
accent-indigo-500accent-color: #6366f1;
accent-violet-500accent-color: #8b5cf6;
accent-purple-500accent-color: #a855f7;
accent-fuchsia-500accent-color: #d946ef;
accent-pink-500accent-color: #ec4899;
accent-rose-500accent-color: #f43f5e;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[accent-color:value]

Responsive Variants

Apply accent color utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:accent-inherit
768px+md:md:accent-inherit
1024px+lg:lg:accent-inherit
1280px+xl:xl:accent-inherit
1536px+2xl:2xl:accent-inherit