Tint Color
Modify the color of images and icons.
Import​
src/screens/Component.js
import { fx } from "nativeflowcss";
Properties​
Object | Native Properties | Color Box |
---|---|---|
fx.tint_slate_50 | { tintColor: '#f8fafc' } | |
fx.tint_slate_100 | { tintColor: '#f1f5f9' } | |
fx.tint_slate_200 | { tintColor: '#e2e8f0' } | |
fx.tint_slate_300 | { tintColor: '#cbd5e1' } | |
fx.tint_slate_400 | { tintColor: '#94a3b8' } | |
fx.tint_slate_500 | { tintColor: '#64748b' } | |
fx.tint_slate_600 | { tintColor: '#475569' } | |
fx.tint_slate_700 | { tintColor: '#334155' } | |
fx.tint_slate_800 | { tintColor: '#1e293b' } | |
fx.tint_slate_900 | { tintColor: '#0f172a' } | |
fx.tint_slate_950 | { tintColor: '#020617' } | |
fx.tint_gray_50 | { tintColor: '#f9fafb' } | |
fx.tint_gray_100 | { tintColor: '#f3f4f6' } | |
fx.tint_gray_200 | { tintColor: '#e5e7eb' } | |
fx.tint_gray_300 | { tintColor: '#d1d5db' } | |
fx.tint_gray_400 | { tintColor: '#9ca3af' } | |
fx.tint_gray_500 | { tintColor: '#6b7280' } | |
fx.tint_gray_600 | { tintColor: '#4b5563' } | |
fx.tint_gray_700 | { tintColor: '#374151' } | |
fx.tint_gray_800 | { tintColor: '#1f2937' } | |
fx.tint_gray_900 | { tintColor: '#111827' } | |
fx.tint_gray_950 | { tintColor: '#030712' } | |
fx.tint_zinc_50 | { tintColor: '#fafafa' } | |
fx.tint_zinc_100 | { tintColor: '#f4f4f5' } | |
fx.tint_zinc_200 | { tintColor: '#e4e4e7' } | |
fx.tint_zinc_300 | { tintColor: '#d4d4d8' } | |
fx.tint_zinc_400 | { tintColor: '#a1a1aa' } | |
fx.tint_zinc_500 | { tintColor: '#71717a' } | |
fx.tint_zinc_600 | { tintColor: '#52525b' } | |
fx.tint_zinc_700 | { tintColor: '#3f3f46' } | |
fx.tint_zinc_800 | { tintColor: '#27272a' } | |
fx.tint_zinc_900 | { tintColor: '#18181b' } | |
fx.tint_zinc_950 | { tintColor: '#09090b' } | |
fx.tint_neutral_50 | { tintColor: '#fafafa' } | |
fx.tint_neutral_100 | { tintColor: '#f5f5f5' } | |
fx.tint_neutral_200 | { tintColor: '#e5e5e5' } | |
fx.tint_neutral_300 | { tintColor: '#d4d4d4' } | |
fx.tint_neutral_400 | { tintColor: '#a3a3a3' } | |
fx.tint_neutral_500 | { tintColor: '#737373' } | |
fx.tint_neutral_600 | { tintColor: '#525252' } | |
fx.tint_neutral_700 | { tintColor: '#404040' } | |
fx.tint_neutral_800 | { tintColor: '#262626' } | |
fx.tint_neutral_900 | { tintColor: '#171717' } | |
fx.tint_neutral_950 | { tintColor: '#0a0a0a' } | |
fx.tint_stone_50 | { tintColor: '#fafaf9' } | |
fx.tint_stone_100 | { tintColor: '#f5f5f4' } | |
fx.tint_stone_200 | { tintColor: '#e7e5e4' } | |
fx.tint_stone_300 | { tintColor: '#d6d3d1' } | |
fx.tint_stone_400 | { tintColor: '#a8a29e' } | |
fx.tint_stone_500 | { tintColor: '#78716c' } | |
fx.tint_stone_600 | { tintColor: '#57534e' } | |
fx.tint_stone_700 | { tintColor: '#44403c' } | |
fx.tint_stone_800 | { tintColor: '#292524' } | |
fx.tint_stone_900 | { tintColor: '#1c1917' } | |
fx.tint_stone_950 | { tintColor: '#0c0a09' } | |
fx.tint_red_50 | { tintColor: '#fef2f2' } | |
fx.tint_red_100 | { tintColor: '#fee2e2' } | |
fx.tint_red_200 | { tintColor: '#fecaca' } | |
fx.tint_red_300 | { tintColor: '#fca5a5' } | |
fx.tint_red_400 | { tintColor: '#f87171' } | |
fx.tint_red_500 | { tintColor: '#ef4444' } | |
fx.tint_red_600 | { tintColor: '#dc2626' } | |
fx.tint_red_700 | { tintColor: '#b91c1c' } | |
fx.tint_red_800 | { tintColor: '#991b1b' } | |
fx.tint_red_900 | { tintColor: '#7f1d1d' } | |
fx.tint_red_950 | { tintColor: '#450a0a' } | |
fx.tint_orange_50 | { tintColor: '#fff7ed' } | |
fx.tint_orange_100 | { tintColor: '#ffedd5' } | |
fx.tint_orange_200 | { tintColor: '#fed7aa' } | |
fx.tint_orange_300 | { tintColor: '#fdba74' } | |
fx.tint_orange_400 | { tintColor: '#fb923c' } | |
fx.tint_orange_500 | { tintColor: '#f97316' } | |
fx.tint_orange_600 | { tintColor: '#ea580c' } | |
fx.tint_orange_700 | { tintColor: '#c2410c' } | |
fx.tint_orange_800 | { tintColor: '#9a3412' } | |
fx.tint_orange_900 | { tintColor: '#7c2d12' } | |
fx.tint_orange_950 | { tintColor: '#431407' } | |
fx.tint_amber_50 | { tintColor: '#fffbeb' } | |
fx.tint_amber_100 | { tintColor: '#fef3c7' } | |
fx.tint_amber_200 | { tintColor: '#fde68a' } | |
fx.tint_amber_300 | { tintColor: '#fcd34d' } | |
fx.tint_amber_400 | { tintColor: '#fbbf24' } | |
fx.tint_amber_500 | { tintColor: '#f59e0b' } | |
fx.tint_amber_600 | { tintColor: '#d97706' } | |
fx.tint_amber_700 | { tintColor: '#b45309' } | |
fx.tint_amber_800 | { tintColor: '#92400e' } | |
fx.tint_amber_900 | { tintColor: '#78350f' } | |
fx.tint_amber_950 | { tintColor: '#451a03' } | |
fx.tint_yellow_50 | { tintColor: '#fefce8' } | |
fx.tint_yellow_100 | { tintColor: '#fef9c3' } | |
fx.tint_yellow_200 | { tintColor: '#fef08a' } | |
fx.tint_yellow_300 | { tintColor: '#fde047' } | |
fx.tint_yellow_400 | { tintColor: '#facc15' } | |
fx.tint_yellow_500 | { tintColor: '#eab308' } | |
fx.tint_yellow_600 | { tintColor: '#ca8a04' } | |
fx.tint_yellow_700 | { tintColor: '#a16207' } | |
fx.tint_yellow_800 | { tintColor: '#854d0e' } | |
fx.tint_yellow_900 | { tintColor: '#713f12' } | |
fx.tint_yellow_950 | { tintColor: '#422006' } | |
fx.tint_lime_50 | { tintColor: '#f7fee7' } | |
fx.tint_lime_100 | { tintColor: '#ecfccb' } | |
fx.tint_lime_200 | { tintColor: '#d9f99d' } | |
fx.tint_lime_300 | { tintColor: '#bef264' } | |
fx.tint_lime_400 | { tintColor: '#a3e635' } | |
fx.tint_lime_500 | { tintColor: '#84cc16' } | |
fx.tint_lime_600 | { tintColor: '#65a30d' } | |
fx.tint_lime_700 | { tintColor: '#4d7c0f' } | |
fx.tint_lime_800 | { tintColor: '#3f6212' } | |
fx.tint_lime_900 | { tintColor: '#365314' } | |
fx.tint_lime_950 | { tintColor: '#1a2e05' } | |
fx.tint_green_50 | { tintColor: '#f0fdf4' } | |
fx.tint_green_100 | { tintColor: '#dcfce7' } | |
fx.tint_green_200 | { tintColor: '#bbf7d0' } | |
fx.tint_green_300 | { tintColor: '#86efac' } | |
fx.tint_green_400 | { tintColor: '#4ade80' } | |
fx.tint_green_500 | { tintColor: '#22c55e' } | |
fx.tint_green_600 | { tintColor: '#16a34a' } | |
fx.tint_green_700 | { tintColor: '#15803d' } | |
fx.tint_green_800 | { tintColor: '#166534' } | |
fx.tint_green_900 | { tintColor: '#14532d' } | |
fx.tint_green_950 | { tintColor: '#052e16' } | |
fx.tint_emerald_50 | { tintColor: '#ecfdf5' } | |
fx.tint_emerald_100 | { tintColor: '#d1fae5' } | |
fx.tint_emerald_200 | { tintColor: '#a7f3d0' } | |
fx.tint_emerald_300 | { tintColor: '#6ee7b7' } | |
fx.tint_emerald_400 | { tintColor: '#34d399' } | |
fx.tint_emerald_500 | { tintColor: '#10b981' } | |
fx.tint_emerald_600 | { tintColor: '#059669' } | |
fx.tint_emerald_700 | { tintColor: '#047857' } | |
fx.tint_emerald_800 | { tintColor: '#065f46' } | |
fx.tint_emerald_900 | { tintColor: '#064e3b' } | |
fx.tint_emerald_950 | { tintColor: '#022c22' } | |
fx.tint_teal_50 | { tintColor: '#f0fdfa' } | |
fx.tint_teal_100 | { tintColor: '#ccfbf1' } | |
fx.tint_teal_200 | { tintColor: '#99f6e4' } | |
fx.tint_teal_300 | { tintColor: '#5eead4' } | |
fx.tint_teal_400 | { tintColor: '#2dd4bf' } | |
fx.tint_teal_500 | { tintColor: '#14b8a6' } | |
fx.tint_teal_600 | { tintColor: '#0d9488' } | |
fx.tint_teal_700 | { tintColor: '#0f766e' } | |
fx.tint_teal_800 | { tintColor: '#115e59' } | |
fx.tint_teal_900 | { tintColor: '#134e4a' } | |
fx.tint_teal_950 | { tintColor: '#042f2e' } | |
fx.tint_cyan_50 | { tintColor: '#ecfeff' } | |
fx.tint_cyan_100 | { tintColor: '#cffafe' } | |
fx.tint_cyan_200 | { tintColor: '#a5f3fc' } | |
fx.tint_cyan_300 | { tintColor: '#67e8f9' } | |
fx.tint_cyan_400 | { tintColor: '#22d3ee' } | |
fx.tint_cyan_500 | { tintColor: '#06b6d4' } | |
fx.tint_cyan_600 | { tintColor: '#0891b2' } | |
fx.tint_cyan_700 | { tintColor: '#0e7490' } | |
fx.tint_cyan_800 | { tintColor: '#155e75' } | |
fx.tint_cyan_900 | { tintColor: '#164e63' } | |
fx.tint_cyan_950 | { tintColor: '#083344' } | |
fx.tint_sky_50 | { tintColor: '#f0f9ff' } | |
fx.tint_sky_100 | { tintColor: '#e0f2fe' } | |
fx.tint_sky_200 | { tintColor: '#bae6fd' } | |
fx.tint_sky_300 | { tintColor: '#7dd3fc' } | |
fx.tint_sky_400 | { tintColor: '#38bdf8' } | |
fx.tint_sky_500 | { tintColor: '#0ea5e9' } | |
fx.tint_sky_600 | { tintColor: '#0284c7' } | |
fx.tint_sky_700 | { tintColor: '#0369a1' } | |
fx.tint_sky_800 | { tintColor: '#075985' } | |
fx.tint_sky_900 | { tintColor: '#0c4a6e' } | |
fx.tint_sky_950 | { tintColor: '#082f49' } | |
fx.tint_blue_50 | { tintColor: '#eff6ff' } | |
fx.tint_blue_100 | { tintColor: '#dbeafe' } | |
fx.tint_blue_200 | { tintColor: '#bfdbfe' } | |
fx.tint_blue_300 | { tintColor: '#93c5fd' } | |
fx.tint_blue_400 | { tintColor: '#60a5fa' } | |
fx.tint_blue_500 | { tintColor: '#3b82f6' } | |
fx.tint_blue_600 | { tintColor: '#2563eb' } | |
fx.tint_blue_700 | { tintColor: '#1d4ed8' } | |
fx.tint_blue_800 | { tintColor: '#1e40af' } | |
fx.tint_blue_900 | { tintColor: '#1e3a8a' } | |
fx.tint_blue_950 | { tintColor: '#172554' } | |
fx.tint_indigo_50 | { tintColor: '#eef2ff' } | |
fx.tint_indigo_100 | { tintColor: '#e0e7ff' } | |
fx.tint_indigo_200 | { tintColor: '#c7d2fe' } | |
fx.tint_indigo_300 | { tintColor: '#a5b4fc' } | |
fx.tint_indigo_400 | { tintColor: '#818cf8' } | |
fx.tint_indigo_500 | { tintColor: '#6366f1' } | |
fx.tint_indigo_600 | { tintColor: '#4f46e5' } | |
fx.tint_indigo_700 | { tintColor: '#4338ca' } | |
fx.tint_indigo_800 | { tintColor: '#3730a3' } | |
fx.tint_indigo_900 | { tintColor: '#312e81' } | |
fx.tint_indigo_950 | { tintColor: '#1e1b4b' } | |
fx.tint_violet_50 | { tintColor: '#f5f3ff' } | |
fx.tint_violet_100 | { tintColor: '#ede9fe' } | |
fx.tint_violet_200 | { tintColor: '#ddd6fe' } | |
fx.tint_violet_300 | { tintColor: '#c4b5fd' } | |
fx.tint_violet_400 | { tintColor: '#a78bfa' } | |
fx.tint_violet_500 | { tintColor: '#8b5cf6' } | |
fx.tint_violet_600 | { tintColor: '#7c3aed' } | |
fx.tint_violet_700 | { tintColor: '#6d28d9' } | |
fx.tint_violet_800 | { tintColor: '#5b21b6' } | |
fx.tint_violet_900 | { tintColor: '#4c1d95' } | |
fx.tint_violet_950 | { tintColor: '#2e1065' } | |
fx.tint_purple_50 | { tintColor: '#faf5ff' } | |
fx.tint_purple_100 | { tintColor: '#f3e8ff' } | |
fx.tint_purple_200 | { tintColor: '#e9d5ff' } | |
fx.tint_purple_300 | { tintColor: '#d8b4fe' } | |
fx.tint_purple_400 | { tintColor: '#c084fc' } | |
fx.tint_purple_500 | { tintColor: '#a855f7' } | |
fx.tint_purple_600 | { tintColor: '#9333ea' } | |
fx.tint_purple_700 | { tintColor: '#7e22ce' } | |
fx.tint_purple_800 | { tintColor: '#6b21a8' } | |
fx.tint_purple_900 | { tintColor: '#581c87' } | |
fx.tint_purple_950 | { tintColor: '#3b0764' } | |
fx.tint_fuchsia_50 | { tintColor: '#fdf4ff' } | |
fx.tint_fuchsia_100 | { tintColor: '#fae8ff' } | |
fx.tint_fuchsia_200 | { tintColor: '#f5d0fe' } | |
fx.tint_fuchsia_300 | { tintColor: '#f0abfc' } | |
fx.tint_fuchsia_400 | { tintColor: '#e879f9' } | |
fx.tint_fuchsia_500 | { tintColor: '#d946ef' } | |
fx.tint_fuchsia_600 | { tintColor: '#c026d3' } | |
fx.tint_fuchsia_700 | { tintColor: '#a21caf' } | |
fx.tint_fuchsia_800 | { tintColor: '#86198f' } | |
fx.tint_fuchsia_900 | { tintColor: '#701a75' } | |
fx.tint_fuchsia_950 | { tintColor: '#4a044e' } | |
fx.tint_pink_50 | { tintColor: '#fdf2f8' } | |
fx.tint_pink_100 | { tintColor: '#fce7f3' } | |
fx.tint_pink_200 | { tintColor: '#fbcfe8' } | |
fx.tint_pink_300 | { tintColor: '#f9a8d4' } | |
fx.tint_pink_400 | { tintColor: '#f472b6' } | |
fx.tint_pink_500 | { tintColor: '#ec4899' } | |
fx.tint_pink_600 | { tintColor: '#db2777' } | |
fx.tint_pink_700 | { tintColor: '#be185d' } | |
fx.tint_pink_800 | { tintColor: '#9d174d' } | |
fx.tint_pink_900 | { tintColor: '#831843' } | |
fx.tint_pink_950 | { tintColor: '#500724' } | |
fx.tint_rose_50 | { tintColor: '#fff1f2' } | |
fx.tint_rose_100 | { tintColor: '#ffe4e6' } | |
fx.tint_rose_200 | { tintColor: '#fecdd3' } | |
fx.tint_rose_300 | { tintColor: '#fda4af' } | |
fx.tint_rose_400 | { tintColor: '#fb7185' } | |
fx.tint_rose_500 | { tintColor: '#f43f5e' } | |
fx.tint_rose_600 | { tintColor: '#e11d48' } | |
fx.tint_rose_700 | { tintColor: '#be123c' } | |
fx.tint_rose_800 | { tintColor: '#9f1239' } | |
fx.tint_rose_900 | { tintColor: '#881337' } | |
fx.tint_rose_950 | { tintColor: '#4c0519' } |
Custom Tint Colors​
Custom properties are usually rendered using _(customValue)
Object | Native Properties |
---|---|
fx.tint_(customColor) | { tintColor: 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