ColorsColor

Color

Controls the text color of an element.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
tc-red-1color: #f9e0e0;
tc-red-2color: #f3c5c5;
tc-red-3color: #edaaaa;
tc-red-4color: #e88e8e;
tc-red-5color: #e27373;
tc-red-6color: #dd5858;
tc-redcolor: #d73d3d;
tc-red-7color: #b93434;
tc-red-8color: #9b2c2c;
tc-red-9color: #7d2323;
tc-red-10color: #5f1b1b;
tc-red-11color: #411212;
tc-red-12color: #220a0a;
tc-orange-1color: #fae7d9;
tc-orange-2color: #f6d2b9;
tc-orange-3color: #f1bd98;
tc-orange-4color: #eda777;
tc-orange-5color: #e99256;
tc-orange-6color: #e47d35;
tc-orangecolor: #e06814;
tc-orange-7color: #c15911;
tc-orange-8color: #a14b0e;
tc-orange-9color: #823c0c;
tc-orange-10color: #632e09;
tc-orange-11color: #431f06;
tc-orange-12color: #241103;
tc-yellow-1color: #f8f0d7;
tc-yellow-2color: #f2e3b5;
tc-yellow-3color: #ecd692;
tc-yellow-4color: #e5c86f;
tc-yellow-5color: #dfbb4c;
tc-yellow-6color: #d9ae2a;
tc-yellowcolor: #d3a107;
tc-yellow-7color: #b58a06;
tc-yellow-8color: #987405;
tc-yellow-9color: #7a5d04;
tc-yellow-10color: #5d4703;
tc-yellow-11color: #3f3002;
tc-yellow-12color: #221a01;
tc-green-1color: #dbf3e4;
tc-green-2color: #bce8cc;
tc-green-3color: #9cddb4;
tc-green-4color: #7dd29c;
tc-green-5color: #5ec785;
tc-green-6color: #3ebc6d;
tc-greencolor: #1fb155;
tc-green-7color: #1b9849;
tc-green-8color: #167f3d;
tc-green-9color: #126731;
tc-green-10color: #0e4e25;
tc-green-11color: #09351a;
tc-green-12color: #051c0e;
tc-teal-1color: #d9f1ee;
tc-teal-2color: #b8e4df;
tc-teal-3color: #97d8d0;
tc-teal-4color: #76cbc2;
tc-teal-5color: #54bfb3;
tc-teal-6color: #33b2a4;
tc-tealcolor: #12a695;
tc-teal-7color: #0f8f80;
tc-teal-8color: #0d786b;
tc-teal-9color: #0a6056;
tc-teal-10color: #084942;
tc-teal-11color: #05322d;
tc-teal-12color: #031b18;
tc-cyan-1color: #d7f0f5;
tc-cyan-2color: #b4e4ec;
tc-cyan-3color: #91d7e3;
tc-cyan-4color: #6ecada;
tc-cyan-5color: #4bbdd1;
tc-cyan-6color: #28b1c8;
tc-cyancolor: #05a4bf;
tc-cyan-7color: #048da4;
tc-cyan-8color: #04768a;
tc-cyan-9color: #035f6f;
tc-cyan-10color: #024854;
tc-cyan-11color: #023139;
tc-cyan-12color: #011a1f;
tc-blue-1color: #dfe9fa;
tc-blue-2color: #c2d6f5;
tc-blue-3color: #a6c2f0;
tc-blue-4color: #8aafeb;
tc-blue-5color: #6e9ce7;
tc-blue-6color: #5188e2;
tc-bluecolor: #3575dd;
tc-blue-7color: #2e65be;
tc-blue-8color: #26549f;
tc-blue-9color: #1f4480;
tc-blue-10color: #173361;
tc-blue-11color: #102342;
tc-blue-12color: #081323;
tc-indigo-1color: #e4e5f9;
tc-indigo-2color: #cdcef4;
tc-indigo-3color: #b6b7ee;
tc-indigo-4color: #9fa0e9;
tc-indigo-5color: #878ae4;
tc-indigo-6color: #7073de;
tc-indigocolor: #595cd9;
tc-indigo-7color: #4d4fbb;
tc-indigo-8color: #40429c;
tc-indigo-9color: #34357e;
tc-indigo-10color: #27285f;
tc-indigo-11color: #1b1c41;
tc-indigo-12color: #0e0f23;
tc-violet-1color: #eae3fa;
tc-violet-2color: #d8cbf5;
tc-violet-3color: #c6b3f0;
tc-violet-4color: #b49beb;
tc-violet-5color: #a183e7;
tc-violet-6color: #8f6be2;
tc-violetcolor: #7d53dd;
tc-violet-7color: #6c47be;
tc-violet-8color: #5a3c9f;
tc-violet-9color: #493080;
tc-violet-10color: #372561;
tc-violet-11color: #261942;
tc-violet-12color: #140d23;
tc-pink-1color: #f8e1ec;
tc-pink-2color: #f2c6dc;
tc-pink-3color: #ecabcc;
tc-pink-4color: #e691bb;
tc-pink-5color: #e076ab;
tc-pink-6color: #da5c9a;
tc-pinkcolor: #d4418a;
tc-pink-7color: #b63877;
tc-pink-8color: #992f63;
tc-pink-9color: #7b2650;
tc-pink-10color: #5d1d3d;
tc-pink-11color: #401429;
tc-pink-12color: #220a16;
tc-slate-1color: #e0e0e3;
tc-slate-2color: #c5c5ca;
tc-slate-3color: #ababb1;
tc-slate-4color: #909098;
tc-slate-5color: #757580;
tc-slate-6color: #5a5a67;
tc-slatecolor: #3f3f4e;
tc-slate-7color: #363643;
tc-slate-8color: #2d2d38;
tc-slate-9color: #25252d;
tc-slate-10color: #1c1c22;
tc-slate-11color: #131317;
tc-slate-12color: #0a0a0c;
tc-gray-1color: #e6e7e9;
tc-gray-2color: #cfd1d5;
tc-gray-3color: #b9bcc1;
tc-gray-4color: #a3a7ae;
tc-gray-5color: #8d929a;
tc-gray-6color: #767c87;
tc-graycolor: #606773;
tc-gray-7color: #535963;
tc-gray-8color: #454a53;
tc-gray-9color: #383c43;
tc-gray-10color: #2a2d33;
tc-gray-11color: #1d1f23;
tc-gray-12color: #0f1012;
tc-silver-1color: #f5f5f6;
tc-silver-2color: #ecedee;
tc-silver-3color: #e3e4e6;
tc-silver-4color: #dadcdf;
tc-silver-5color: #d1d3d7;
tc-silver-6color: #c8cbcf;
tc-silvercolor: #bfc2c7;
tc-silver-7color: #a4a7ab;
tc-silver-8color: #8a8c8f;
tc-silver-9color: #6f7173;
tc-silver-10color: #545558;
tc-silver-11color: #393a3c;
tc-silver-12color: #1f1f20;
tc-blackcolor: #000000;
tc-currentcolor: currentColor;
tc-transparentcolor: transparent;
tc-whitecolor: #ffffff;

This example showcases various color utilities using the silver colors from the default color palette.

  • The tc-silver-3 utility applies a lighter silver shade.
  • The tc-silver utility applies the base silver shade.
  • The tc-silver-8 utility applies a darker silver shade.

Sphinx of black quartz, judge my vow.

Sphinx of black quartz, judge my vow.

Sphinx of black quartz, judge my vow.

<div class="d-g p-4 rg-4">
<p class="ta-c tc-silver-3">Sphinx of black quartz, judge my vow.</p>
<p class="ta-c tc-silver">Sphinx of black quartz, judge my vow.</p>
<p class="ta-c tc-silver-8">Sphinx of black quartz, judge my vow.</p>
</div>

Using utility variants

Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.

Targeting different viewports

You can combine responsive breakpoints like sm:tc-*, md:tc-*, lg:tc-*, and xxl:tc-* to allow targeting specific utilities in different viewports.

Targeting hover states

Alternatively, you can apply :hover by using h:tc-* utility to override elements and change their values when hovering over them.

Targeting with opacity

You can also control the opacity of colors using opacity modifiers with tc-* syntax, where * represents the opacity value (e.g., tc-*/25, tc-*/50, tc-*/75, tc-*/100) to create semi-transparent versions of the base color.