Overlay ✱
Add overlay color on top of non-transparent pixels.
✱ represents it's an iOS-only prop
Import
src/screens/Component.js
import { fx } from "nativeflowcss";
Properties
Object | Native Properties | Color Box |
---|---|---|
fx.overlay_slate_50 | { overlayColor: '#f8fafc' } | |
fx.overlay_slate_100 | { overlayColor: '#f1f5f9' } | |
fx.overlay_slate_200 | { overlayColor: '#e2e8f0' } | |
fx.overlay_slate_300 | { overlayColor: '#cbd5e1' } | |
fx.overlay_slate_400 | { overlayColor: '#94a3b8' } | |
fx.overlay_slate_500 | { overlayColor: '#64748b' } | |
fx.overlay_slate_600 | { overlayColor: '#475569' } | |
fx.overlay_slate_700 | { overlayColor: '#334155' } | |
fx.overlay_slate_800 | { overlayColor: '#1e293b' } | |
fx.overlay_slate_900 | { overlayColor: '#0f172a' } | |
fx.overlay_slate_950 | { overlayColor: '#020617' } | |
fx.overlay_gray_50 | { overlayColor: '#f9fafb' } | |
fx.overlay_gray_100 | { overlayColor: '#f3f4f6' } | |
fx.overlay_gray_200 | { overlayColor: '#e5e7eb' } | |
fx.overlay_gray_300 | { overlayColor: '#d1d5db' } | |
fx.overlay_gray_400 | { overlayColor: '#9ca3af' } | |
fx.overlay_gray_500 | { overlayColor: '#6b7280' } | |
fx.overlay_gray_600 | { overlayColor: '#4b5563' } | |
fx.overlay_gray_700 | { overlayColor: '#374151' } | |
fx.overlay_gray_800 | { overlayColor: '#1f2937' } | |
fx.overlay_gray_900 | { overlayColor: '#111827' } | |
fx.overlay_gray_950 | { overlayColor: '#030712' } | |
fx.overlay_zinc_50 | { overlayColor: '#fafafa' } | |
fx.overlay_zinc_100 | { overlayColor: '#f4f4f5' } | |
fx.overlay_zinc_200 | { overlayColor: '#e4e4e7' } | |
fx.overlay_zinc_300 | { overlayColor: '#d4d4d8' } | |
fx.overlay_zinc_400 | { overlayColor: '#a1a1aa' } | |
fx.overlay_zinc_500 | { overlayColor: '#71717a' } | |
fx.overlay_zinc_600 | { overlayColor: '#52525b' } | |
fx.overlay_zinc_700 | { overlayColor: '#3f3f46' } | |
fx.overlay_zinc_800 | { overlayColor: '#27272a' } | |
fx.overlay_zinc_900 | { overlayColor: '#18181b' } | |
fx.overlay_zinc_950 | { overlayColor: '#09090b' } | |
fx.overlay_neutral_50 | { overlayColor: '#fafafa' } | |
fx.overlay_neutral_100 | { overlayColor: '#f5f5f5' } | |
fx.overlay_neutral_200 | { overlayColor: '#e5e5e5' } | |
fx.overlay_neutral_300 | { overlayColor: '#d4d4d4' } | |
fx.overlay_neutral_400 | { overlayColor: '#a3a3a3' } | |
fx.overlay_neutral_500 | { overlayColor: '#737373' } | |
fx.overlay_neutral_600 | { overlayColor: '#525252' } | |
fx.overlay_neutral_700 | { overlayColor: '#404040' } | |
fx.overlay_neutral_800 | { overlayColor: '#262626' } | |
fx.overlay_neutral_900 | { overlayColor: '#171717' } | |
fx.overlay_neutral_950 | { overlayColor: '#0a0a0a' } | |
fx.overlay_stone_50 | { overlayColor: '#fafaf9' } | |
fx.overlay_stone_100 | { overlayColor: '#f5f5f4' } | |
fx.overlay_stone_200 | { overlayColor: '#e7e5e4' } | |
fx.overlay_stone_300 | { overlayColor: '#d6d3d1' } | |
fx.overlay_stone_400 | { overlayColor: '#a8a29e' } | |
fx.overlay_stone_500 | { overlayColor: '#78716c' } | |
fx.overlay_stone_600 | { overlayColor: '#57534e' } | |
fx.overlay_stone_700 | { overlayColor: '#44403c' } | |
fx.overlay_stone_800 | { overlayColor: '#292524' } | |
fx.overlay_stone_900 | { overlayColor: '#1c1917' } | |
fx.overlay_stone_950 | { overlayColor: '#0c0a09' } | |
fx.overlay_red_50 | { overlayColor: '#fef2f2' } | |
fx.overlay_red_100 | { overlayColor: '#fee2e2' } | |
fx.overlay_red_200 | { overlayColor: '#fecaca' } | |
fx.overlay_red_300 | { overlayColor: '#fca5a5' } | |
fx.overlay_red_400 | { overlayColor: '#f87171' } | |
fx.overlay_red_500 | { overlayColor: '#ef4444' } | |
fx.overlay_red_600 | { overlayColor: '#dc2626' } | |
fx.overlay_red_700 | { overlayColor: '#b91c1c' } | |
fx.overlay_red_800 | { overlayColor: '#991b1b' } | |
fx.overlay_red_900 | { overlayColor: '#7f1d1d' } | |
fx.overlay_red_950 | { overlayColor: '#450a0a' } | |
fx.overlay_orange_50 | { overlayColor: '#fff7ed' } | |
fx.overlay_orange_100 | { overlayColor: '#ffedd5' } | |
fx.overlay_orange_200 | { overlayColor: '#fed7aa' } | |
fx.overlay_orange_300 | { overlayColor: '#fdba74' } | |
fx.overlay_orange_400 | { overlayColor: '#fb923c' } | |
fx.overlay_orange_500 | { overlayColor: '#f97316' } | |
fx.overlay_orange_600 | { overlayColor: '#ea580c' } | |
fx.overlay_orange_700 | { overlayColor: '#c2410c' } | |
fx.overlay_orange_800 | { overlayColor: '#9a3412' } | |
fx.overlay_orange_900 | { overlayColor: '#7c2d12' } | |
fx.overlay_orange_950 | { overlayColor: '#431407' } | |
fx.overlay_amber_50 | { overlayColor: '#fffbeb' } | |
fx.overlay_amber_100 | { overlayColor: '#fef3c7' } | |
fx.overlay_amber_200 | { overlayColor: '#fde68a' } | |
fx.overlay_amber_300 | { overlayColor: '#fcd34d' } | |
fx.overlay_amber_400 | { overlayColor: '#fbbf24' } | |
fx.overlay_amber_500 | { overlayColor: '#f59e0b' } | |
fx.overlay_amber_600 | { overlayColor: '#d97706' } | |
fx.overlay_amber_700 | { overlayColor: '#b45309' } | |
fx.overlay_amber_800 | { overlayColor: '#92400e' } | |
fx.overlay_amber_900 | { overlayColor: '#78350f' } | |
fx.overlay_amber_950 | { overlayColor: '#451a03' } | |
fx.overlay_yellow_50 | { overlayColor: '#fefce8' } | |
fx.overlay_yellow_100 | { overlayColor: '#fef9c3' } | |
fx.overlay_yellow_200 | { overlayColor: '#fef08a' } | |
fx.overlay_yellow_300 | { overlayColor: '#fde047' } | |
fx.overlay_yellow_400 | { overlayColor: '#facc15' } | |
fx.overlay_yellow_500 | { overlayColor: '#eab308' } | |
fx.overlay_yellow_600 | { overlayColor: '#ca8a04' } | |
fx.overlay_yellow_700 | { overlayColor: '#a16207' } | |
fx.overlay_yellow_800 | { overlayColor: '#854d0e' } | |
fx.overlay_yellow_900 | { overlayColor: '#713f12' } | |
fx.overlay_yellow_950 | { overlayColor: '#422006' } | |
fx.overlay_lime_50 | { overlayColor: '#f7fee7' } | |
fx.overlay_lime_100 | { overlayColor: '#ecfccb' } | |
fx.overlay_lime_200 | { overlayColor: '#d9f99d' } | |
fx.overlay_lime_300 | { overlayColor: '#bef264' } | |
fx.overlay_lime_400 | { overlayColor: '#a3e635' } | |
fx.overlay_lime_500 | { overlayColor: '#84cc16' } | |
fx.overlay_lime_600 | { overlayColor: '#65a30d' } | |
fx.overlay_lime_700 | { overlayColor: '#4d7c0f' } | |
fx.overlay_lime_800 | { overlayColor: '#3f6212' } | |
fx.overlay_lime_900 | { overlayColor: '#365314' } | |
fx.overlay_lime_950 | { overlayColor: '#1a2e05' } | |
fx.overlay_green_50 | { overlayColor: '#f0fdf4' } | |
fx.overlay_green_100 | { overlayColor: '#dcfce7' } | |
fx.overlay_green_200 | { overlayColor: '#bbf7d0' } | |
fx.overlay_green_300 | { overlayColor: '#86efac' } | |
fx.overlay_green_400 | { overlayColor: '#4ade80' } | |
fx.overlay_green_500 | { overlayColor: '#22c55e' } | |
fx.overlay_green_600 | { overlayColor: '#16a34a' } | |
fx.overlay_green_700 | { overlayColor: '#15803d' } | |
fx.overlay_green_800 | { overlayColor: '#166534' } | |
fx.overlay_green_900 | { overlayColor: '#14532d' } | |
fx.overlay_green_950 | { overlayColor: '#052e16' } | |
fx.overlay_emerald_50 | { overlayColor: '#ecfdf5' } | |
fx.overlay_emerald_100 | { overlayColor: '#d1fae5' } | |
fx.overlay_emerald_200 | { overlayColor: '#a7f3d0' } | |
fx.overlay_emerald_300 | { overlayColor: '#6ee7b7' } | |
fx.overlay_emerald_400 | { overlayColor: '#34d399' } | |
fx.overlay_emerald_500 | { overlayColor: '#10b981' } | |
fx.overlay_emerald_600 | { overlayColor: '#059669' } | |
fx.overlay_emerald_700 | { overlayColor: '#047857' } | |
fx.overlay_emerald_800 | { overlayColor: '#065f46' } | |
fx.overlay_emerald_900 | { overlayColor: '#064e3b' } | |
fx.overlay_emerald_950 | { overlayColor: '#022c22' } | |
fx.overlay_teal_50 | { overlayColor: '#f0fdfa' } | |
fx.overlay_teal_100 | { overlayColor: '#ccfbf1' } | |
fx.overlay_teal_200 | { overlayColor: '#99f6e4' } | |
fx.overlay_teal_300 | { overlayColor: '#5eead4' } | |
fx.overlay_teal_400 | { overlayColor: '#2dd4bf' } | |
fx.overlay_teal_500 | { overlayColor: '#14b8a6' } | |
fx.overlay_teal_600 | { overlayColor: '#0d9488' } | |
fx.overlay_teal_700 | { overlayColor: '#0f766e' } | |
fx.overlay_teal_800 | { overlayColor: '#115e59' } | |
fx.overlay_teal_900 | { overlayColor: '#134e4a' } | |
fx.overlay_teal_950 | { overlayColor: '#042f2e' } | |
fx.overlay_cyan_50 | { overlayColor: '#ecfeff' } | |
fx.overlay_cyan_100 | { overlayColor: '#cffafe' } | |
fx.overlay_cyan_200 | { overlayColor: '#a5f3fc' } | |
fx.overlay_cyan_300 | { overlayColor: '#67e8f9' } | |
fx.overlay_cyan_400 | { overlayColor: '#22d3ee' } | |
fx.overlay_cyan_500 | { overlayColor: '#06b6d4' } | |
fx.overlay_cyan_600 | { overlayColor: '#0891b2' } | |
fx.overlay_cyan_700 | { overlayColor: '#0e7490' } | |
fx.overlay_cyan_800 | { overlayColor: '#155e75' } | |
fx.overlay_cyan_900 | { overlayColor: '#164e63' } | |
fx.overlay_cyan_950 | { overlayColor: '#083344' } | |
fx.overlay_sky_50 | { overlayColor: '#f0f9ff' } | |
fx.overlay_sky_100 | { overlayColor: '#e0f2fe' } | |
fx.overlay_sky_200 | { overlayColor: '#bae6fd' } | |
fx.overlay_sky_300 | { overlayColor: '#7dd3fc' } | |
fx.overlay_sky_400 | { overlayColor: '#38bdf8' } | |
fx.overlay_sky_500 | { overlayColor: '#0ea5e9' } | |
fx.overlay_sky_600 | { overlayColor: '#0284c7' } | |
fx.overlay_sky_700 | { overlayColor: '#0369a1' } | |
fx.overlay_sky_800 | { overlayColor: '#075985' } | |
fx.overlay_sky_900 | { overlayColor: '#0c4a6e' } | |
fx.overlay_sky_950 | { overlayColor: '#082f49' } | |
fx.overlay_blue_50 | { overlayColor: '#eff6ff' } | |
fx.overlay_blue_100 | { overlayColor: '#dbeafe' } | |
fx.overlay_blue_200 | { overlayColor: '#bfdbfe' } | |
fx.overlay_blue_300 | { overlayColor: '#93c5fd' } | |
fx.overlay_blue_400 | { overlayColor: '#60a5fa' } | |
fx.overlay_blue_500 | { overlayColor: '#3b82f6' } | |
fx.overlay_blue_600 | { overlayColor: '#2563eb' } | |
fx.overlay_blue_700 | { overlayColor: '#1d4ed8' } | |
fx.overlay_blue_800 | { overlayColor: '#1e40af' } | |
fx.overlay_blue_900 | { overlayColor: '#1e3a8a' } | |
fx.overlay_blue_950 | { overlayColor: '#172554' } | |
fx.overlay_indigo_50 | { overlayColor: '#eef2ff' } | |
fx.overlay_indigo_100 | { overlayColor: '#e0e7ff' } | |
fx.overlay_indigo_200 | { overlayColor: '#c7d2fe' } | |
fx.overlay_indigo_300 | { overlayColor: '#a5b4fc' } | |
fx.overlay_indigo_400 | { overlayColor: '#818cf8' } | |
fx.overlay_indigo_500 | { overlayColor: '#6366f1' } | |
fx.overlay_indigo_600 | { overlayColor: '#4f46e5' } | |
fx.overlay_indigo_700 | { overlayColor: '#4338ca' } | |
fx.overlay_indigo_800 | { overlayColor: '#3730a3' } | |
fx.overlay_indigo_900 | { overlayColor: '#312e81' } | |
fx.overlay_indigo_950 | { overlayColor: '#1e1b4b' } | |
fx.overlay_violet_50 | { overlayColor: '#f5f3ff' } | |
fx.overlay_violet_100 | { overlayColor: '#ede9fe' } | |
fx.overlay_violet_200 | { overlayColor: '#ddd6fe' } | |
fx.overlay_violet_300 | { overlayColor: '#c4b5fd' } | |
fx.overlay_violet_400 | { overlayColor: '#a78bfa' } | |
fx.overlay_violet_500 | { overlayColor: '#8b5cf6' } | |
fx.overlay_violet_600 | { overlayColor: '#7c3aed' } | |
fx.overlay_violet_700 | { overlayColor: '#6d28d9' } | |
fx.overlay_violet_800 | { overlayColor: '#5b21b6' } | |
fx.overlay_violet_900 | { overlayColor: '#4c1d95' } | |
fx.overlay_violet_950 | { overlayColor: '#2e1065' } | |
fx.overlay_purple_50 | { overlayColor: '#faf5ff' } | |
fx.overlay_purple_100 | { overlayColor: '#f3e8ff' } | |
fx.overlay_purple_200 | { overlayColor: '#e9d5ff' } | |
fx.overlay_purple_300 | { overlayColor: '#d8b4fe' } | |
fx.overlay_purple_400 | { overlayColor: '#c084fc' } | |
fx.overlay_purple_500 | { overlayColor: '#a855f7' } | |
fx.overlay_purple_600 | { overlayColor: '#9333ea' } | |
fx.overlay_purple_700 | { overlayColor: '#7e22ce' } | |
fx.overlay_purple_800 | { overlayColor: '#6b21a8' } | |
fx.overlay_purple_900 | { overlayColor: '#581c87' } | |
fx.overlay_purple_950 | { overlayColor: '#3b0764' } | |
fx.overlay_fuchsia_50 | { overlayColor: '#fdf4ff' } | |
fx.overlay_fuchsia_100 | { overlayColor: '#fae8ff' } | |
fx.overlay_fuchsia_200 | { overlayColor: '#f5d0fe' } | |
fx.overlay_fuchsia_300 | { overlayColor: '#f0abfc' } | |
fx.overlay_fuchsia_400 | { overlayColor: '#e879f9' } | |
fx.overlay_fuchsia_500 | { overlayColor: '#d946ef' } | |
fx.overlay_fuchsia_600 | { overlayColor: '#c026d3' } | |
fx.overlay_fuchsia_700 | { overlayColor: '#a21caf' } | |
fx.overlay_fuchsia_800 | { overlayColor: '#86198f' } | |
fx.overlay_fuchsia_900 | { overlayColor: '#701a75' } | |
fx.overlay_fuchsia_950 | { overlayColor: '#4a044e' } | |
fx.overlay_pink_50 | { overlayColor: '#fdf2f8' } | |
fx.overlay_pink_100 | { overlayColor: '#fce7f3' } | |
fx.overlay_pink_200 | { overlayColor: '#fbcfe8' } | |
fx.overlay_pink_300 | { overlayColor: '#f9a8d4' } | |
fx.overlay_pink_400 | { overlayColor: '#f472b6' } | |
fx.overlay_pink_500 | { overlayColor: '#ec4899' } | |
fx.overlay_pink_600 | { overlayColor: '#db2777' } | |
fx.overlay_pink_700 | { overlayColor: '#be185d' } | |
fx.overlay_pink_800 | { overlayColor: '#9d174d' } | |
fx.overlay_pink_900 | { overlayColor: '#831843' } | |
fx.overlay_pink_950 | { overlayColor: '#500724' } | |
fx.overlay_rose_50 | { overlayColor: '#fff1f2' } | |
fx.overlay_rose_100 | { overlayColor: '#ffe4e6' } | |
fx.overlay_rose_200 | { overlayColor: '#fecdd3' } | |
fx.overlay_rose_300 | { overlayColor: '#fda4af' } | |
fx.overlay_rose_400 | { overlayColor: '#fb7185' } | |
fx.overlay_rose_500 | { overlayColor: '#f43f5e' } | |
fx.overlay_rose_600 | { overlayColor: '#e11d48' } | |
fx.overlay_rose_700 | { overlayColor: '#be123c' } | |
fx.overlay_rose_800 | { overlayColor: '#9f1239' } | |
fx.overlay_rose_900 | { overlayColor: '#881337' } | |
fx.overlay_rose_950 | { overlayColor: '#4c0519' } |
Custom Overlay Colors
Custom properties are usually rendered using _(customValue)
Object | Native Properties |
---|---|
fx.overlay_(customColor) | { overlayColor: customColor } |
Colors
Red Green Blue (RGB)
React Native supports rgb() and rgba() in both hexadecimal and functional notation:
'#f0f'
(#rgb)'#ff00ff'
(#rrggbb)'#f0ff'
(#rgba)'#ff00ff00'
(#rrggbbaa)'rgb(255, 0, 255)'
'rgb(255 0 255)'
'rgba(255, 0, 255, 1.0)'
'rgba(255 0 255 / 1.0)'
Hue Saturation Lightness (HSL)
React Native supports hsl() and hsla() in functional notation:
'hsl(360, 100%, 100%)'
'hsl(360 100% 100%)'
'hsla(360, 100%, 100%, 1.0)'
'hsla(360 100% 100% / 1.0)'
Hue Whiteness Blackness (HWB)
React Native supports hwb() in functional notation:
'hwb(0, 0%, 100%)'
'hwb(360, 100%, 100%)'
'hwb(0 0% 0%)'
'hwb(70 50% 0%)'
Color ints
React Native supports also colors as an int values (in RGB color mode):
0xff00ff00
(0xrrggbbaa)
CAUTION
This action is dangerous
This might appear similar to the Android Color ints representation but on Android values are stored in SRGB color mode (0xaarrggbb)
.
Named Colors
All colors from the CSS3/SVG Specs are supported.
They only support lowercase named colors