Utilities

Background Image Tint Color

The Background Image Tint Color utility lets you tint the background images of UI elements.

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

Using Default Tint Colors

By default, ZoboUI utilizes the colors from the Colors field in the Core section of the Theme Config asset, but you can also add your own custom colors or override the existing colors.

Applying a Tint Color

To apply a tint color, you can use the class bg-tint-{color} where {color} is the name of the color you want to use on an element with a background image.

<ui:VisalElement  class="flex flex-row space-y-2 " >
    <ui:VisualElement name="NoTint" class="bg-pattern"  />
    <ui:VisualElement name="WithRoseTint" class="bg-pattern bg-tint-rose-400" />
    <ui:VisualElement name="WithIndigoTint" class="bg-pattern bg-tint-indigo-300" />
</ui:VisualElement>

Background Image Tint Color


Customize

Modifier Variations

Modifier Variations

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

These modifier variations are enabled for the Background Image Tint Color utility by default:
  • hover

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 Background Image Tint 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 Background Image Tint 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 Background Image Tint Color utility:

  • bg-tint : -unity-background-image-tint-color

To customize these tags and properties, you can edit the Tag Property Map field for the Background Image Tint 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 Background Image Tint 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 Background Image Tint 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 Background Image Tint 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
Background Image