Fill
Controls the filling of SVG elements.
| Class | Style |
|---|---|
f-red-1 | fill: #f9e0e0; |
f-red-2 | fill: #f3c5c5; |
f-red-3 | fill: #edaaaa; |
f-red-4 | fill: #e88e8e; |
f-red-5 | fill: #e27373; |
f-red-6 | fill: #dd5858; |
f-red | fill: #d73d3d; |
f-red-7 | fill: #b93434; |
f-red-8 | fill: #9b2c2c; |
f-red-9 | fill: #7d2323; |
f-red-10 | fill: #5f1b1b; |
f-red-11 | fill: #411212; |
f-red-12 | fill: #220a0a; |
f-orange-1 | fill: #fae7d9; |
f-orange-2 | fill: #f6d2b9; |
f-orange-3 | fill: #f1bd98; |
f-orange-4 | fill: #eda777; |
f-orange-5 | fill: #e99256; |
f-orange-6 | fill: #e47d35; |
f-orange | fill: #e06814; |
f-orange-7 | fill: #c15911; |
f-orange-8 | fill: #a14b0e; |
f-orange-9 | fill: #823c0c; |
f-orange-10 | fill: #632e09; |
f-orange-11 | fill: #431f06; |
f-orange-12 | fill: #241103; |
f-yellow-1 | fill: #f8f0d7; |
f-yellow-2 | fill: #f2e3b5; |
f-yellow-3 | fill: #ecd692; |
f-yellow-4 | fill: #e5c86f; |
f-yellow-5 | fill: #dfbb4c; |
f-yellow-6 | fill: #d9ae2a; |
f-yellow | fill: #d3a107; |
f-yellow-7 | fill: #b58a06; |
f-yellow-8 | fill: #987405; |
f-yellow-9 | fill: #7a5d04; |
f-yellow-10 | fill: #5d4703; |
f-yellow-11 | fill: #3f3002; |
f-yellow-12 | fill: #221a01; |
f-green-1 | fill: #dbf3e4; |
f-green-2 | fill: #bce8cc; |
f-green-3 | fill: #9cddb4; |
f-green-4 | fill: #7dd29c; |
f-green-5 | fill: #5ec785; |
f-green-6 | fill: #3ebc6d; |
f-green | fill: #1fb155; |
f-green-7 | fill: #1b9849; |
f-green-8 | fill: #167f3d; |
f-green-9 | fill: #126731; |
f-green-10 | fill: #0e4e25; |
f-green-11 | fill: #09351a; |
f-green-12 | fill: #051c0e; |
f-teal-1 | fill: #d9f1ee; |
f-teal-2 | fill: #b8e4df; |
f-teal-3 | fill: #97d8d0; |
f-teal-4 | fill: #76cbc2; |
f-teal-5 | fill: #54bfb3; |
f-teal-6 | fill: #33b2a4; |
f-teal | fill: #12a695; |
f-teal-7 | fill: #0f8f80; |
f-teal-8 | fill: #0d786b; |
f-teal-9 | fill: #0a6056; |
f-teal-10 | fill: #084942; |
f-teal-11 | fill: #05322d; |
f-teal-12 | fill: #031b18; |
f-cyan-1 | fill: #d7f0f5; |
f-cyan-2 | fill: #b4e4ec; |
f-cyan-3 | fill: #91d7e3; |
f-cyan-4 | fill: #6ecada; |
f-cyan-5 | fill: #4bbdd1; |
f-cyan-6 | fill: #28b1c8; |
f-cyan | fill: #05a4bf; |
f-cyan-7 | fill: #048da4; |
f-cyan-8 | fill: #04768a; |
f-cyan-9 | fill: #035f6f; |
f-cyan-10 | fill: #024854; |
f-cyan-11 | fill: #023139; |
f-cyan-12 | fill: #011a1f; |
f-blue-1 | fill: #dfe9fa; |
f-blue-2 | fill: #c2d6f5; |
f-blue-3 | fill: #a6c2f0; |
f-blue-4 | fill: #8aafeb; |
f-blue-5 | fill: #6e9ce7; |
f-blue-6 | fill: #5188e2; |
f-blue | fill: #3575dd; |
f-blue-7 | fill: #2e65be; |
f-blue-8 | fill: #26549f; |
f-blue-9 | fill: #1f4480; |
f-blue-10 | fill: #173361; |
f-blue-11 | fill: #102342; |
f-blue-12 | fill: #081323; |
f-indigo-1 | fill: #e4e5f9; |
f-indigo-2 | fill: #cdcef4; |
f-indigo-3 | fill: #b6b7ee; |
f-indigo-4 | fill: #9fa0e9; |
f-indigo-5 | fill: #878ae4; |
f-indigo-6 | fill: #7073de; |
f-indigo | fill: #595cd9; |
f-indigo-7 | fill: #4d4fbb; |
f-indigo-8 | fill: #40429c; |
f-indigo-9 | fill: #34357e; |
f-indigo-10 | fill: #27285f; |
f-indigo-11 | fill: #1b1c41; |
f-indigo-12 | fill: #0e0f23; |
f-violet-1 | fill: #eae3fa; |
f-violet-2 | fill: #d8cbf5; |
f-violet-3 | fill: #c6b3f0; |
f-violet-4 | fill: #b49beb; |
f-violet-5 | fill: #a183e7; |
f-violet-6 | fill: #8f6be2; |
f-violet | fill: #7d53dd; |
f-violet-7 | fill: #6c47be; |
f-violet-8 | fill: #5a3c9f; |
f-violet-9 | fill: #493080; |
f-violet-10 | fill: #372561; |
f-violet-11 | fill: #261942; |
f-violet-12 | fill: #140d23; |
f-pink-1 | fill: #f8e1ec; |
f-pink-2 | fill: #f2c6dc; |
f-pink-3 | fill: #ecabcc; |
f-pink-4 | fill: #e691bb; |
f-pink-5 | fill: #e076ab; |
f-pink-6 | fill: #da5c9a; |
f-pink | fill: #d4418a; |
f-pink-7 | fill: #b63877; |
f-pink-8 | fill: #992f63; |
f-pink-9 | fill: #7b2650; |
f-pink-10 | fill: #5d1d3d; |
f-pink-11 | fill: #401429; |
f-pink-12 | fill: #220a16; |
f-slate-1 | fill: #e0e0e3; |
f-slate-2 | fill: #c5c5ca; |
f-slate-3 | fill: #ababb1; |
f-slate-4 | fill: #909098; |
f-slate-5 | fill: #757580; |
f-slate-6 | fill: #5a5a67; |
f-slate | fill: #3f3f4e; |
f-slate-7 | fill: #363643; |
f-slate-8 | fill: #2d2d38; |
f-slate-9 | fill: #25252d; |
f-slate-10 | fill: #1c1c22; |
f-slate-11 | fill: #131317; |
f-slate-12 | fill: #0a0a0c; |
f-gray-1 | fill: #e6e7e9; |
f-gray-2 | fill: #cfd1d5; |
f-gray-3 | fill: #b9bcc1; |
f-gray-4 | fill: #a3a7ae; |
f-gray-5 | fill: #8d929a; |
f-gray-6 | fill: #767c87; |
f-gray | fill: #606773; |
f-gray-7 | fill: #535963; |
f-gray-8 | fill: #454a53; |
f-gray-9 | fill: #383c43; |
f-gray-10 | fill: #2a2d33; |
f-gray-11 | fill: #1d1f23; |
f-gray-12 | fill: #0f1012; |
f-silver-1 | fill: #f5f5f6; |
f-silver-2 | fill: #ecedee; |
f-silver-3 | fill: #e3e4e6; |
f-silver-4 | fill: #dadcdf; |
f-silver-5 | fill: #d1d3d7; |
f-silver-6 | fill: #c8cbcf; |
f-silver | fill: #bfc2c7; |
f-silver-7 | fill: #a4a7ab; |
f-silver-8 | fill: #8a8c8f; |
f-silver-9 | fill: #6f7173; |
f-silver-10 | fill: #545558; |
f-silver-11 | fill: #393a3c; |
f-silver-12 | fill: #1f1f20; |
f-black | fill: #000000; |
f-current | fill: currentColor; |
f-transparent | fill: transparent; |
f-white | fill: #ffffff; |
This example showcases various fill color utilities using the indigo colors from the default color palette.
- The f-indigo-4 fill utility applies a lighter indigo shade to an SVG element.
- The f-indigo fill utility applies the base indigo shade to an SVG element.
- The f-indigo-8 fill utility applies a darker indigo shade to an SVG element.
<div class="d-g g-16 gtc-1 sm:gtc-3"> <div> <svg class="d-16 f-indigo-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z"/><path d="M8 14v.5"/><path d="M16 14v.5"/><path d="M11.25 16.25h1.5L12 17l-.75-.75Z"/></svg> </div> <div> <svg class="d-16 f-indigo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z"/><path d="M8 14v.5"/><path d="M16 14v.5"/><path d="M11.25 16.25h1.5L12 17l-.75-.75Z"/></svg> </div> <div> <svg class="d-16 f-indigo-8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z"/><path d="M8 14v.5"/><path d="M16 14v.5"/><path d="M11.25 16.25h1.5L12 17l-.75-.75Z"/></svg> </div></div>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Using media queries
You can combine responsive breakpoints like sm:f-*, md:f-*, lg:f-*, and xxl:f-* to allow targeting specific utilities in different viewports.
Using hover states
Alternatively, you can apply :hover by using h:f-* utility to override elements and change their values when hovering over them.