Utilities

Text Shadow Color

The Text Shadow Color utility allows you to define the color of text shadows, adding depth or emphasis to text elements. This utility should be used in conjunction with the Text Shadow utility.

Utility Class
USS Properties
text-shadow-transparent
--zb-text-shadow-color: rgba(0, 0, 0, 0);
text-shadow-slate-50
--zb-text-shadow-color: #F8FAFC;
text-shadow-slate-100
--zb-text-shadow-color: #F1F5F9;
text-shadow-slate-200
--zb-text-shadow-color: #E2E8F0;
text-shadow-slate-300
--zb-text-shadow-color: #CBD5E1;
text-shadow-slate-400
--zb-text-shadow-color: #94A3B8;
text-shadow-slate-500
--zb-text-shadow-color: #64748B;
text-shadow-slate-600
--zb-text-shadow-color: #475569;
text-shadow-slate-700
--zb-text-shadow-color: #334155;
text-shadow-slate-800
--zb-text-shadow-color: #1E293B;
text-shadow-slate-900
--zb-text-shadow-color: #0F172A;
text-shadow-slate-950
--zb-text-shadow-color: #020617;
text-shadow-gray-50
--zb-text-shadow-color: #F9FAFB;
text-shadow-gray-100
--zb-text-shadow-color: #F3F4F6;
text-shadow-gray-200
--zb-text-shadow-color: #E5E7EB;
text-shadow-gray-300
--zb-text-shadow-color: #D1D5DB;
text-shadow-gray-400
--zb-text-shadow-color: #9CA3AF;
text-shadow-gray-500
--zb-text-shadow-color: #6B7280;
text-shadow-gray-600
--zb-text-shadow-color: #4B5563;
text-shadow-gray-700
--zb-text-shadow-color: #374151;
text-shadow-gray-800
--zb-text-shadow-color: #1F2937;
text-shadow-gray-900
--zb-text-shadow-color: #111827;
text-shadow-gray-950
--zb-text-shadow-color: #030712;
text-shadow-zinc-50
--zb-text-shadow-color: #FAFAFA;
text-shadow-zinc-100
--zb-text-shadow-color: #F4F4F5;
text-shadow-zinc-200
--zb-text-shadow-color: #E4E4E7;
text-shadow-zinc-300
--zb-text-shadow-color: #D4D4D8;
text-shadow-zinc-400
--zb-text-shadow-color: #A1A1AA;
text-shadow-zinc-500
--zb-text-shadow-color: #71717A;
text-shadow-zinc-600
--zb-text-shadow-color: #52525B;
text-shadow-zinc-700
--zb-text-shadow-color: #3F3F46;
text-shadow-zinc-800
--zb-text-shadow-color: #27272A;
text-shadow-zinc-900
--zb-text-shadow-color: #18181B;
text-shadow-zinc-950
--zb-text-shadow-color: #09090B;
text-shadow-neutral-50
--zb-text-shadow-color: #FAFAFA;
text-shadow-neutral-100
--zb-text-shadow-color: #F5F5F5;
text-shadow-neutral-200
--zb-text-shadow-color: #E5E5E5;
text-shadow-neutral-300
--zb-text-shadow-color: #D4D4D4;
text-shadow-neutral-400
--zb-text-shadow-color: #A3A3A3;
text-shadow-neutral-500
--zb-text-shadow-color: #737373;
text-shadow-neutral-600
--zb-text-shadow-color: #525252;
text-shadow-neutral-700
--zb-text-shadow-color: #404040;
text-shadow-neutral-800
--zb-text-shadow-color: #262626;
text-shadow-neutral-900
--zb-text-shadow-color: #171717;
text-shadow-neutral-950
--zb-text-shadow-color: #0A0A0A;
text-shadow-stone-50
--zb-text-shadow-color: #FAFAF9;
text-shadow-stone-100
--zb-text-shadow-color: #F5F5F4;
text-shadow-stone-200
--zb-text-shadow-color: #E7E5E4;
text-shadow-stone-300
--zb-text-shadow-color: #D6D3D1;
text-shadow-stone-400
--zb-text-shadow-color: #A8A29E;
text-shadow-stone-500
--zb-text-shadow-color: #78716C;
text-shadow-stone-600
--zb-text-shadow-color: #57534E;
text-shadow-stone-700
--zb-text-shadow-color: #44403C;
text-shadow-stone-800
--zb-text-shadow-color: #292524;
text-shadow-stone-900
--zb-text-shadow-color: #1C1917;
text-shadow-stone-950
--zb-text-shadow-color: #0C0A09;
text-shadow-red-50
--zb-text-shadow-color: #FEF2F2;
text-shadow-red-100
--zb-text-shadow-color: #FEE2E2;
text-shadow-red-200
--zb-text-shadow-color: #FECACA;
text-shadow-red-300
--zb-text-shadow-color: #FCA5A5;
text-shadow-red-400
--zb-text-shadow-color: #F87171;
text-shadow-red-500
--zb-text-shadow-color: #EF4444;
text-shadow-red-600
--zb-text-shadow-color: #DC2626;
text-shadow-red-700
--zb-text-shadow-color: #B91C1C;
text-shadow-red-800
--zb-text-shadow-color: #991B1B;
text-shadow-red-900
--zb-text-shadow-color: #7F1D1D;
text-shadow-red-950
--zb-text-shadow-color: #450A0A;
text-shadow-orange-50
--zb-text-shadow-color: #FFF7ED;
text-shadow-orange-100
--zb-text-shadow-color: #FFEDD5;
text-shadow-orange-200
--zb-text-shadow-color: #FED7AA;
text-shadow-orange-300
--zb-text-shadow-color: #FDBA74;
text-shadow-orange-400
--zb-text-shadow-color: #FB923C;
text-shadow-orange-500
--zb-text-shadow-color: #F97316;
text-shadow-orange-600
--zb-text-shadow-color: #EA580C;
text-shadow-orange-700
--zb-text-shadow-color: #C2410C;
text-shadow-orange-800
--zb-text-shadow-color: #9A3412;
text-shadow-orange-900
--zb-text-shadow-color: #7C2D12;
text-shadow-orange-950
--zb-text-shadow-color: #431407;
text-shadow-amber-50
--zb-text-shadow-color: #FFFBEB;
text-shadow-amber-100
--zb-text-shadow-color: #FEF3C7;
text-shadow-amber-200
--zb-text-shadow-color: #FDE68A;
text-shadow-amber-300
--zb-text-shadow-color: #FCD34D;
text-shadow-amber-400
--zb-text-shadow-color: #FBBF24;
text-shadow-amber-500
--zb-text-shadow-color: #F59E0B;
text-shadow-amber-600
--zb-text-shadow-color: #D97706;
text-shadow-amber-700
--zb-text-shadow-color: #B45309;
text-shadow-amber-800
--zb-text-shadow-color: #92400E;
text-shadow-amber-900
--zb-text-shadow-color: #78350F;
text-shadow-amber-950
--zb-text-shadow-color: #451A03;
text-shadow-yellow-50
--zb-text-shadow-color: #FEFCE8;
text-shadow-yellow-100
--zb-text-shadow-color: #FEF9C3;
text-shadow-yellow-200
--zb-text-shadow-color: #FEF08A;
text-shadow-yellow-300
--zb-text-shadow-color: #FDE047;
text-shadow-yellow-400
--zb-text-shadow-color: #FACC15;
text-shadow-yellow-500
--zb-text-shadow-color: #EAB308;
text-shadow-yellow-600
--zb-text-shadow-color: #CA8A04;
text-shadow-yellow-700
--zb-text-shadow-color: #A16207;
text-shadow-yellow-800
--zb-text-shadow-color: #854D0E;
text-shadow-yellow-900
--zb-text-shadow-color: #713F12;
text-shadow-yellow-950
--zb-text-shadow-color: #422006;
text-shadow-lime-50
--zb-text-shadow-color: #F7FEE7;
text-shadow-lime-100
--zb-text-shadow-color: #ECFCCB;
text-shadow-lime-200
--zb-text-shadow-color: #D9F99D;
text-shadow-lime-300
--zb-text-shadow-color: #BEF264;
text-shadow-lime-400
--zb-text-shadow-color: #A3E635;
text-shadow-lime-500
--zb-text-shadow-color: #84CC16;
text-shadow-lime-600
--zb-text-shadow-color: #65A30D;
text-shadow-lime-700
--zb-text-shadow-color: #4D7C0F;
text-shadow-lime-800
--zb-text-shadow-color: #3F6212;
text-shadow-lime-900
--zb-text-shadow-color: #365314;
text-shadow-lime-950
--zb-text-shadow-color: #1A2E05;
text-shadow-green-50
--zb-text-shadow-color: #F0FDF4;
text-shadow-green-100
--zb-text-shadow-color: #DCFCE7;
text-shadow-green-200
--zb-text-shadow-color: #BBF7D0;
text-shadow-green-300
--zb-text-shadow-color: #86EFAC;
text-shadow-green-400
--zb-text-shadow-color: #4ADE80;
text-shadow-green-500
--zb-text-shadow-color: #22C55E;
text-shadow-green-600
--zb-text-shadow-color: #16A34A;
text-shadow-green-700
--zb-text-shadow-color: #15803D;
text-shadow-green-800
--zb-text-shadow-color: #166534;
text-shadow-green-900
--zb-text-shadow-color: #14532D;
text-shadow-green-950
--zb-text-shadow-color: #052E16;
text-shadow-emerald-50
--zb-text-shadow-color: #ECFDF5;
text-shadow-emerald-100
--zb-text-shadow-color: #D1FAE5;
text-shadow-emerald-200
--zb-text-shadow-color: #A7F3D0;
text-shadow-emerald-300
--zb-text-shadow-color: #6EE7B7;
text-shadow-emerald-400
--zb-text-shadow-color: #34D399;
text-shadow-emerald-500
--zb-text-shadow-color: #10B981;
text-shadow-emerald-600
--zb-text-shadow-color: #059669;
text-shadow-emerald-700
--zb-text-shadow-color: #047857;
text-shadow-emerald-800
--zb-text-shadow-color: #065F46;
text-shadow-emerald-900
--zb-text-shadow-color: #064E3B;
text-shadow-emerald-950
--zb-text-shadow-color: #022C22;
text-shadow-teal-50
--zb-text-shadow-color: #F0FDFA;
text-shadow-teal-100
--zb-text-shadow-color: #CCFBF1;
text-shadow-teal-200
--zb-text-shadow-color: #99F6E4;
text-shadow-teal-300
--zb-text-shadow-color: #5EEAD4;
text-shadow-teal-400
--zb-text-shadow-color: #2DD4BF;
text-shadow-teal-500
--zb-text-shadow-color: #14B8A6;
text-shadow-teal-600
--zb-text-shadow-color: #0D9488;
text-shadow-teal-700
--zb-text-shadow-color: #0F766E;
text-shadow-teal-800
--zb-text-shadow-color: #115E59;
text-shadow-teal-900
--zb-text-shadow-color: #134E4A;
text-shadow-teal-950
--zb-text-shadow-color: #042F2E;
text-shadow-cyan-50
--zb-text-shadow-color: #ECFEFF;
text-shadow-cyan-100
--zb-text-shadow-color: #CFFAFE;
text-shadow-cyan-200
--zb-text-shadow-color: #A5F3FC;
text-shadow-cyan-300
--zb-text-shadow-color: #67E8F9;
text-shadow-cyan-400
--zb-text-shadow-color: #22D3EE;
text-shadow-cyan-500
--zb-text-shadow-color: #06B6D4;
text-shadow-cyan-600
--zb-text-shadow-color: #0891B2;
text-shadow-cyan-700
--zb-text-shadow-color: #0E7490;
text-shadow-cyan-800
--zb-text-shadow-color: #155E75;
text-shadow-cyan-900
--zb-text-shadow-color: #164E63;
text-shadow-cyan-950
--zb-text-shadow-color: #083344;
text-shadow-sky-50
--zb-text-shadow-color: #F0F9FF;
text-shadow-sky-100
--zb-text-shadow-color: #E0F2FE;
text-shadow-sky-200
--zb-text-shadow-color: #BAE6FD;
text-shadow-sky-300
--zb-text-shadow-color: #7DD3FC;
text-shadow-sky-400
--zb-text-shadow-color: #38BDF8;
text-shadow-sky-500
--zb-text-shadow-color: #0EA5E9;
text-shadow-sky-600
--zb-text-shadow-color: #0284C7;
text-shadow-sky-700
--zb-text-shadow-color: #0369A1;
text-shadow-sky-800
--zb-text-shadow-color: #075985;
text-shadow-sky-900
--zb-text-shadow-color: #0C4A6E;
text-shadow-sky-950
--zb-text-shadow-color: #082F49;
text-shadow-blue-50
--zb-text-shadow-color: #EFF6FF;
text-shadow-blue-100
--zb-text-shadow-color: #DBEAFE;
text-shadow-blue-200
--zb-text-shadow-color: #BFDBFE;
text-shadow-blue-300
--zb-text-shadow-color: #93C5FD;
text-shadow-blue-400
--zb-text-shadow-color: #60A5FA;
text-shadow-blue-500
--zb-text-shadow-color: #3B82F6;
text-shadow-blue-600
--zb-text-shadow-color: #2563EB;
text-shadow-blue-700
--zb-text-shadow-color: #1D4ED8;
text-shadow-blue-800
--zb-text-shadow-color: #1E40AF;
text-shadow-blue-900
--zb-text-shadow-color: #1E3A8A;
text-shadow-blue-950
--zb-text-shadow-color: #172554;
text-shadow-indigo-50
--zb-text-shadow-color: #EEF2FF;
text-shadow-indigo-100
--zb-text-shadow-color: #E0E7FF;
text-shadow-indigo-200
--zb-text-shadow-color: #C7D2FE;
text-shadow-indigo-300
--zb-text-shadow-color: #A5B4FC;
text-shadow-indigo-400
--zb-text-shadow-color: #818CF8;
text-shadow-indigo-500
--zb-text-shadow-color: #6366F1;
text-shadow-indigo-600
--zb-text-shadow-color: #4F46E5;
text-shadow-indigo-700
--zb-text-shadow-color: #4338CA;
text-shadow-indigo-800
--zb-text-shadow-color: #3730A3;
text-shadow-indigo-900
--zb-text-shadow-color: #312E81;
text-shadow-indigo-950
--zb-text-shadow-color: #1E1B4B;
text-shadow-violet-50
--zb-text-shadow-color: #F5F3FF;
text-shadow-violet-100
--zb-text-shadow-color: #EDE9FE;
text-shadow-violet-200
--zb-text-shadow-color: #DDD6FE;
text-shadow-violet-300
--zb-text-shadow-color: #C4B5FD;
text-shadow-violet-400
--zb-text-shadow-color: #A78BFA;
text-shadow-violet-500
--zb-text-shadow-color: #8B5CF6;
text-shadow-violet-600
--zb-text-shadow-color: #7C3AED;
text-shadow-violet-700
--zb-text-shadow-color: #6D28D9;
text-shadow-violet-800
--zb-text-shadow-color: #5B21B6;
text-shadow-violet-900
--zb-text-shadow-color: #4C1D95;
text-shadow-violet-950
--zb-text-shadow-color: #2E1065;
text-shadow-purple-50
--zb-text-shadow-color: #FAF5FF;
text-shadow-purple-100
--zb-text-shadow-color: #F3E8FF;
text-shadow-purple-200
--zb-text-shadow-color: #E9D5FF;
text-shadow-purple-300
--zb-text-shadow-color: #D8B4FE;
text-shadow-purple-400
--zb-text-shadow-color: #C084FC;
text-shadow-purple-500
--zb-text-shadow-color: #A855F7;
text-shadow-purple-600
--zb-text-shadow-color: #9333EA;
text-shadow-purple-700
--zb-text-shadow-color: #7E22CE;
text-shadow-purple-800
--zb-text-shadow-color: #6B21A8;
text-shadow-purple-900
--zb-text-shadow-color: #581C87;
text-shadow-purple-950
--zb-text-shadow-color: #3B0764;
text-shadow-fuchsia-50
--zb-text-shadow-color: #FDF4FF;
text-shadow-fuchsia-100
--zb-text-shadow-color: #FAE8FF;
text-shadow-fuchsia-200
--zb-text-shadow-color: #F5D0FE;
text-shadow-fuchsia-300
--zb-text-shadow-color: #F0ABFC;
text-shadow-fuchsia-400
--zb-text-shadow-color: #E879F9;
text-shadow-fuchsia-500
--zb-text-shadow-color: #D946EF;
text-shadow-fuchsia-600
--zb-text-shadow-color: #C026D3;
text-shadow-fuchsia-700
--zb-text-shadow-color: #A21CAF;
text-shadow-fuchsia-800
--zb-text-shadow-color: #86198F;
text-shadow-fuchsia-900
--zb-text-shadow-color: #701A75;
text-shadow-fuchsia-950
--zb-text-shadow-color: #4A044E;
text-shadow-pink-50
--zb-text-shadow-color: #FDF2F8;
text-shadow-pink-100
--zb-text-shadow-color: #FCE7F3;
text-shadow-pink-200
--zb-text-shadow-color: #FBCFE8;
text-shadow-pink-300
--zb-text-shadow-color: #F9A8D4;
text-shadow-pink-400
--zb-text-shadow-color: #F472B6;
text-shadow-pink-500
--zb-text-shadow-color: #EC4899;
text-shadow-pink-600
--zb-text-shadow-color: #DB2777;
text-shadow-pink-700
--zb-text-shadow-color: #BE185D;
text-shadow-pink-800
--zb-text-shadow-color: #9D174D;
text-shadow-pink-900
--zb-text-shadow-color: #831843;
text-shadow-pink-950
--zb-text-shadow-color: #500724;
text-shadow-rose-50
--zb-text-shadow-color: #FFF1F2;
text-shadow-rose-100
--zb-text-shadow-color: #FFE4E6;
text-shadow-rose-200
--zb-text-shadow-color: #FECDD3;
text-shadow-rose-300
--zb-text-shadow-color: #FDA4AF;
text-shadow-rose-400
--zb-text-shadow-color: #FB7185;
text-shadow-rose-500
--zb-text-shadow-color: #F43F5E;
text-shadow-rose-600
--zb-text-shadow-color: #E11D48;
text-shadow-rose-700
--zb-text-shadow-color: #BE123C;
text-shadow-rose-800
--zb-text-shadow-color: #9F1239;
text-shadow-rose-900
--zb-text-shadow-color: #881337;
text-shadow-rose-950
--zb-text-shadow-color: #4C0519;

Using Text Shadow Colors

This utility provides classes to set the color of text shadows. You can choose from a predefined set of colors or define custom colors in your project's Theme Config asset.

Applying Text Shadow Color

To apply a text shadow color, use the text-shadow-{color} class, where {color} is the name of your chosen color. This class changes the color of the text shadow applied to an element.

Basic Usage in UXML

<ui:Label class="text-shadow text-shadow-slate-500">
  <!-- Text with a slate-500 colored shadow -->
</ui:Label>

Customize

Modifier Variations

Modifier Variations

You can customize which modifier variations of the Text Shadow Color utility are generated, such as pseudo-classes (e.g., hover, focus) and custom modifiers.

These modifier variations are enabled for the Text Shadow Color utility by default:
  • hover
  • focus

By fine-tuning the utility variations, you maintain control over your stylesheet's size and complexity, ensuring that only necessary styles are included. To update these values:

  1. Open the Theme Config Asset: Find the asset within your Unity project.
  2. Navigate to the 'Utilities' Section: Locate the Text Shadow Color utility.
  3. Adjust Modifier Variations: Select which modifiers you want to be generated for the utility. Keep in mind that the order of the modifiers will affect the order and specificity of the generated USS classes.

Class Tags and Properties

Class Tags and Properties

The Text Shadow Color utility generates classes based on predefined tags and their associated USS properties. While we recommend keeping these defaults for consistency and ease of reference in our documentation, you have the option to customize them to suit your project's specific needs.

These values are prepended to the defined values in this format tag-{value}. If a tag is empty, the generated class will simply be the value by itself.

Here are the default tags and the USS properties they set for the Text Shadow Color utility:

  • text-shadow : --zb-text-shadow-color

To customize these tags and properties, you can edit the Tag Property Map field for the Text Shadow Color utility in the Theme Config asset. This allows you to define new tags or modify existing ones, thus tailoring the generated classes to your preferences.

Extending Core Fields

The Text Shadow Color utility uses values from the following fields from the Core section of the Theme Config asset:

  • Colors
These fields are used in addition to any custom values defined for the utility. If the same key exists in both the utility and core configurations, the utility's values will override those from the core.

To customize or define these extended fields:

  1. Open the Theme Config Asset: Locate the asset within your Unity project.
  2. Navigate to the 'Utilities' Section: Find the Text Shadow Color utility.
  3. Customize Extend Fields: Modify or add fields in the Extend Fields array to change the core configuration values that are extended. You'll only be able to extend fields of the same type.

Disable Utility

The Text Shadow Color utility is enabled by default. You can disable it by unchecking the Enabled option in the Theme Config asset. This will prevent the generation of the utility's styles.

Previous
Text Shadow