ColorsOutline Color

Outline Color

Controls the color of the outline of an element.

Widely available

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

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

This example showcases various outline-color utilities colors using the indigo colors from the default color palette.

  • The oc-indigo-3 utility applies a lighter indigo shade to the outline of an element.
  • The oc-indigo utility applies the base indigo shade to the outline of an element.
  • The oc-indigo-8 utility applies a darker indigo shade to the outline of an element.
<div class="d-g g-16 gtc-1 sm:gtc-3">
<div class="b-1 bc-indigo d-16 oc-indigo-3 oo-1 os-s"></div>
<div class="b-1 bc-indigo d-16 oc-indigo oo-1 os-s"></div>
<div class="b-1 bc-indigo d-16 oc-indigo-8 oo-1 os-s"></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.

Targeting different viewports

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

Targeting hover states

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