Skip to main content

Fill

Utilities for styling the fill of SVG elements.

CSS Property:fill
Classes:25

Fill Classes

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

Arbitrary Values

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

[fill:value]

Responsive Variants

Apply fill utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:fill-none
768px+md:md:fill-none
1024px+lg:lg:fill-none
1280px+xl:xl:fill-none
1536px+2xl:2xl:fill-none