Skip to main content

Shadow Color

Set the color of the shadow.

info

This property will only work on Android API 28 and above. For similar functionality on lower Android APIs, use the elevation property.

Import​

src/screens/Component.js
import { shadow } from "nativeflowcss";

Properties​

ObjectNative PropertiesShadow Sphere
shadow.color_slate_50{ shadowColor: '#f8fafc' }
shadow.color_slate_100{ shadowColor: '#f1f5f9' }
shadow.color_slate_200{ shadowColor: '#e2e8f0' }
shadow.color_slate_300{ shadowColor: '#cbd5e1' }
shadow.color_slate_400{ shadowColor: '#94a3b8' }
shadow.color_slate_500{ shadowColor: '#64748b' }
shadow.color_slate_600{ shadowColor: '#475569' }
shadow.color_slate_700{ shadowColor: '#334155' }
shadow.color_slate_800{ shadowColor: '#1e293b' }
shadow.color_slate_900{ shadowColor: '#0f172a' }
shadow.color_slate_950{ shadowColor: '#020617' }
shadow.color_gray_50{ shadowColor: '#f9fafb' }
shadow.color_gray_100{ shadowColor: '#f3f4f6' }
shadow.color_gray_200{ shadowColor: '#e5e7eb' }
shadow.color_gray_300{ shadowColor: '#d1d5db' }
shadow.color_gray_400{ shadowColor: '#9ca3af' }
shadow.color_gray_500{ shadowColor: '#6b7280' }
shadow.color_gray_600{ shadowColor: '#4b5563' }
shadow.color_gray_700{ shadowColor: '#374151' }
shadow.color_gray_800{ shadowColor: '#1f2937' }
shadow.color_gray_900{ shadowColor: '#111827' }
shadow.color_gray_950{ shadowColor: '#030712' }
shadow.color_zinc_50{ shadowColor: '#fafafa' }
shadow.color_zinc_100{ shadowColor: '#f4f4f5' }
shadow.color_zinc_200{ shadowColor: '#e4e4e7' }
shadow.color_zinc_300{ shadowColor: '#d4d4d8' }
shadow.color_zinc_400{ shadowColor: '#a1a1aa' }
shadow.color_zinc_500{ shadowColor: '#71717a' }
shadow.color_zinc_600{ shadowColor: '#52525b' }
shadow.color_zinc_700{ shadowColor: '#3f3f46' }
shadow.color_zinc_800{ shadowColor: '#27272a' }
shadow.color_zinc_900{ shadowColor: '#18181b' }
shadow.color_zinc_950{ shadowColor: '#09090b' }
shadow.color_neutral_50{ shadowColor: '#fafafa' }
shadow.color_neutral_100{ shadowColor: '#f5f5f5' }
shadow.color_neutral_200{ shadowColor: '#e5e5e5' }
shadow.color_neutral_300{ shadowColor: '#d4d4d4' }
shadow.color_neutral_400{ shadowColor: '#a3a3a3' }
shadow.color_neutral_500{ shadowColor: '#737373' }
shadow.color_neutral_600{ shadowColor: '#525252' }
shadow.color_neutral_700{ shadowColor: '#404040' }
shadow.color_neutral_800{ shadowColor: '#262626' }
shadow.color_neutral_900{ shadowColor: '#171717' }
shadow.color_neutral_950{ shadowColor: '#0a0a0a' }
shadow.color_stone_50{ shadowColor: '#fafaf9' }
shadow.color_stone_100{ shadowColor: '#f5f5f4' }
shadow.color_stone_200{ shadowColor: '#e7e5e4' }
shadow.color_stone_300{ shadowColor: '#d6d3d1' }
shadow.color_stone_400{ shadowColor: '#a8a29e' }
shadow.color_stone_500{ shadowColor: '#78716c' }
shadow.color_stone_600{ shadowColor: '#57534e' }
shadow.color_stone_700{ shadowColor: '#44403c' }
shadow.color_stone_800{ shadowColor: '#292524' }
shadow.color_stone_900{ shadowColor: '#1c1917' }
shadow.color_stone_950{ shadowColor: '#0c0a09' }
shadow.color_red_50{ shadowColor: '#fef2f2' }
shadow.color_red_100{ shadowColor: '#fee2e2' }
shadow.color_red_200{ shadowColor: '#fecaca' }
shadow.color_red_300{ shadowColor: '#fca5a5' }
shadow.color_red_400{ shadowColor: '#f87171' }
shadow.color_red_500{ shadowColor: '#ef4444' }
shadow.color_red_600{ shadowColor: '#dc2626' }
shadow.color_red_700{ shadowColor: '#b91c1c' }
shadow.color_red_800{ shadowColor: '#991b1b' }
shadow.color_red_900{ shadowColor: '#7f1d1d' }
shadow.color_red_950{ shadowColor: '#450a0a' }
shadow.color_orange_50{ shadowColor: '#fff7ed' }
shadow.color_orange_100{ shadowColor: '#ffedd5' }
shadow.color_orange_200{ shadowColor: '#fed7aa' }
shadow.color_orange_300{ shadowColor: '#fdba74' }
shadow.color_orange_400{ shadowColor: '#fb923c' }
shadow.color_orange_500{ shadowColor: '#f97316' }
shadow.color_orange_600{ shadowColor: '#ea580c' }
shadow.color_orange_700{ shadowColor: '#c2410c' }
shadow.color_orange_800{ shadowColor: '#9a3412' }
shadow.color_orange_900{ shadowColor: '#7c2d12' }
shadow.color_orange_950{ shadowColor: '#431407' }
shadow.color_amber_50{ shadowColor: '#fffbeb' }
shadow.color_amber_100{ shadowColor: '#fef3c7' }
shadow.color_amber_200{ shadowColor: '#fde68a' }
shadow.color_amber_300{ shadowColor: '#fcd34d' }
shadow.color_amber_400{ shadowColor: '#fbbf24' }
shadow.color_amber_500{ shadowColor: '#f59e0b' }
shadow.color_amber_600{ shadowColor: '#d97706' }
shadow.color_amber_700{ shadowColor: '#b45309' }
shadow.color_amber_800{ shadowColor: '#92400e' }
shadow.color_amber_900{ shadowColor: '#78350f' }
shadow.color_amber_950{ shadowColor: '#451a03' }
shadow.color_yellow_50{ shadowColor: '#fefce8' }
shadow.color_yellow_100{ shadowColor: '#fef9c3' }
shadow.color_yellow_200{ shadowColor: '#fef08a' }
shadow.color_yellow_300{ shadowColor: '#fde047' }
shadow.color_yellow_400{ shadowColor: '#facc15' }
shadow.color_yellow_500{ shadowColor: '#eab308' }
shadow.color_yellow_600{ shadowColor: '#ca8a04' }
shadow.color_yellow_700{ shadowColor: '#a16207' }
shadow.color_yellow_800{ shadowColor: '#854d0e' }
shadow.color_yellow_900{ shadowColor: '#713f12' }
shadow.color_yellow_950{ shadowColor: '#422006' }
shadow.color_lime_50{ shadowColor: '#f7fee7' }
shadow.color_lime_100{ shadowColor: '#ecfccb' }
shadow.color_lime_200{ shadowColor: '#d9f99d' }
shadow.color_lime_300{ shadowColor: '#bef264' }
shadow.color_lime_400{ shadowColor: '#a3e635' }
shadow.color_lime_500{ shadowColor: '#84cc16' }
shadow.color_lime_600{ shadowColor: '#65a30d' }
shadow.color_lime_700{ shadowColor: '#4d7c0f' }
shadow.color_lime_800{ shadowColor: '#3f6212' }
shadow.color_lime_900{ shadowColor: '#365314' }
shadow.color_lime_950{ shadowColor: '#1a2e05' }
shadow.color_green_50{ shadowColor: '#f0fdf4' }
shadow.color_green_100{ shadowColor: '#dcfce7' }
shadow.color_green_200{ shadowColor: '#bbf7d0' }
shadow.color_green_300{ shadowColor: '#86efac' }
shadow.color_green_400{ shadowColor: '#4ade80' }
shadow.color_green_500{ shadowColor: '#22c55e' }
shadow.color_green_600{ shadowColor: '#16a34a' }
shadow.color_green_700{ shadowColor: '#15803d' }
shadow.color_green_800{ shadowColor: '#166534' }
shadow.color_green_900{ shadowColor: '#14532d' }
shadow.color_green_950{ shadowColor: '#052e16' }
shadow.color_emerald_50{ shadowColor: '#ecfdf5' }
shadow.color_emerald_100{ shadowColor: '#d1fae5' }
shadow.color_emerald_200{ shadowColor: '#a7f3d0' }
shadow.color_emerald_300{ shadowColor: '#6ee7b7' }
shadow.color_emerald_400{ shadowColor: '#34d399' }
shadow.color_emerald_500{ shadowColor: '#10b981' }
shadow.color_emerald_600{ shadowColor: '#059669' }
shadow.color_emerald_700{ shadowColor: '#047857' }
shadow.color_emerald_800{ shadowColor: '#065f46' }
shadow.color_emerald_900{ shadowColor: '#064e3b' }
shadow.color_emerald_950{ shadowColor: '#022c22' }
shadow.color_teal_50{ shadowColor: '#f0fdfa' }
shadow.color_teal_100{ shadowColor: '#ccfbf1' }
shadow.color_teal_200{ shadowColor: '#99f6e4' }
shadow.color_teal_300{ shadowColor: '#5eead4' }
shadow.color_teal_400{ shadowColor: '#2dd4bf' }
shadow.color_teal_500{ shadowColor: '#14b8a6' }
shadow.color_teal_600{ shadowColor: '#0d9488' }
shadow.color_teal_700{ shadowColor: '#0f766e' }
shadow.color_teal_800{ shadowColor: '#115e59' }
shadow.color_teal_900{ shadowColor: '#134e4a' }
shadow.color_teal_950{ shadowColor: '#042f2e' }
shadow.color_cyan_50{ shadowColor: '#ecfeff' }
shadow.color_cyan_100{ shadowColor: '#cffafe' }
shadow.color_cyan_200{ shadowColor: '#a5f3fc' }
shadow.color_cyan_300{ shadowColor: '#67e8f9' }
shadow.color_cyan_400{ shadowColor: '#22d3ee' }
shadow.color_cyan_500{ shadowColor: '#06b6d4' }
shadow.color_cyan_600{ shadowColor: '#0891b2' }
shadow.color_cyan_700{ shadowColor: '#0e7490' }
shadow.color_cyan_800{ shadowColor: '#155e75' }
shadow.color_cyan_900{ shadowColor: '#164e63' }
shadow.color_cyan_950{ shadowColor: '#083344' }
shadow.color_sky_50{ shadowColor: '#f0f9ff' }
shadow.color_sky_100{ shadowColor: '#e0f2fe' }
shadow.color_sky_200{ shadowColor: '#bae6fd' }
shadow.color_sky_300{ shadowColor: '#7dd3fc' }
shadow.color_sky_400{ shadowColor: '#38bdf8' }
shadow.color_sky_500{ shadowColor: '#0ea5e9' }
shadow.color_sky_600{ shadowColor: '#0284c7' }
shadow.color_sky_700{ shadowColor: '#0369a1' }
shadow.color_sky_800{ shadowColor: '#075985' }
shadow.color_sky_900{ shadowColor: '#0c4a6e' }
shadow.color_sky_950{ shadowColor: '#082f49' }
shadow.color_blue_50{ shadowColor: '#eff6ff' }
shadow.color_blue_100{ shadowColor: '#dbeafe' }
shadow.color_blue_200{ shadowColor: '#bfdbfe' }
shadow.color_blue_300{ shadowColor: '#93c5fd' }
shadow.color_blue_400{ shadowColor: '#60a5fa' }
shadow.color_blue_500{ shadowColor: '#3b82f6' }
shadow.color_blue_600{ shadowColor: '#2563eb' }
shadow.color_blue_700{ shadowColor: '#1d4ed8' }
shadow.color_blue_800{ shadowColor: '#1e40af' }
shadow.color_blue_900{ shadowColor: '#1e3a8a' }
shadow.color_blue_950{ shadowColor: '#172554' }
shadow.color_indigo_50{ shadowColor: '#eef2ff' }
shadow.color_indigo_100{ shadowColor: '#e0e7ff' }
shadow.color_indigo_200{ shadowColor: '#c7d2fe' }
shadow.color_indigo_300{ shadowColor: '#a5b4fc' }
shadow.color_indigo_400{ shadowColor: '#818cf8' }
shadow.color_indigo_500{ shadowColor: '#6366f1' }
shadow.color_indigo_600{ shadowColor: '#4f46e5' }
shadow.color_indigo_700{ shadowColor: '#4338ca' }
shadow.color_indigo_800{ shadowColor: '#3730a3' }
shadow.color_indigo_900{ shadowColor: '#312e81' }
shadow.color_indigo_950{ shadowColor: '#1e1b4b' }
shadow.color_violet_50{ shadowColor: '#f5f3ff' }
shadow.color_violet_100{ shadowColor: '#ede9fe' }
shadow.color_violet_200{ shadowColor: '#ddd6fe' }
shadow.color_violet_300{ shadowColor: '#c4b5fd' }
shadow.color_violet_400{ shadowColor: '#a78bfa' }
shadow.color_violet_500{ shadowColor: '#8b5cf6' }
shadow.color_violet_600{ shadowColor: '#7c3aed' }
shadow.color_violet_700{ shadowColor: '#6d28d9' }
shadow.color_violet_800{ shadowColor: '#5b21b6' }
shadow.color_violet_900{ shadowColor: '#4c1d95' }
shadow.color_violet_950{ shadowColor: '#2e1065' }
shadow.color_purple_50{ shadowColor: '#faf5ff' }
shadow.color_purple_100{ shadowColor: '#f3e8ff' }
shadow.color_purple_200{ shadowColor: '#e9d5ff' }
shadow.color_purple_300{ shadowColor: '#d8b4fe' }
shadow.color_purple_400{ shadowColor: '#c084fc' }
shadow.color_purple_500{ shadowColor: '#a855f7' }
shadow.color_purple_600{ shadowColor: '#9333ea' }
shadow.color_purple_700{ shadowColor: '#7e22ce' }
shadow.color_purple_800{ shadowColor: '#6b21a8' }
shadow.color_purple_900{ shadowColor: '#581c87' }
shadow.color_purple_950{ shadowColor: '#3b0764' }
shadow.color_fuchsia_50{ shadowColor: '#fdf4ff' }
shadow.color_fuchsia_100{ shadowColor: '#fae8ff' }
shadow.color_fuchsia_200{ shadowColor: '#f5d0fe' }
shadow.color_fuchsia_300{ shadowColor: '#f0abfc' }
shadow.color_fuchsia_400{ shadowColor: '#e879f9' }
shadow.color_fuchsia_500{ shadowColor: '#d946ef' }
shadow.color_fuchsia_600{ shadowColor: '#c026d3' }
shadow.color_fuchsia_700{ shadowColor: '#a21caf' }
shadow.color_fuchsia_800{ shadowColor: '#86198f' }
shadow.color_fuchsia_900{ shadowColor: '#701a75' }
shadow.color_fuchsia_950{ shadowColor: '#4a044e' }
shadow.color_pink_50{ shadowColor: '#fdf2f8' }
shadow.color_pink_100{ shadowColor: '#fce7f3' }
shadow.color_pink_200{ shadowColor: '#fbcfe8' }
shadow.color_pink_300{ shadowColor: '#f9a8d4' }
shadow.color_pink_400{ shadowColor: '#f472b6' }
shadow.color_pink_500{ shadowColor: '#ec4899' }
shadow.color_pink_600{ shadowColor: '#db2777' }
shadow.color_pink_700{ shadowColor: '#be185d' }
shadow.color_pink_800{ shadowColor: '#9d174d' }
shadow.color_pink_900{ shadowColor: '#831843' }
shadow.color_pink_950{ shadowColor: '#500724' }
shadow.color_rose_50{ shadowColor: '#fff1f2' }
shadow.color_rose_100{ shadowColor: '#ffe4e6' }
shadow.color_rose_200{ shadowColor: '#fecdd3' }
shadow.color_rose_300{ shadowColor: '#fda4af' }
shadow.color_rose_400{ shadowColor: '#fb7185' }
shadow.color_rose_500{ shadowColor: '#f43f5e' }
shadow.color_rose_600{ shadowColor: '#e11d48' }
shadow.color_rose_700{ shadowColor: '#be123c' }
shadow.color_rose_800{ shadowColor: '#9f1239' }
shadow.color_rose_900{ shadowColor: '#881337' }
shadow.color_rose_950{ shadowColor: '#4c0519' }

Custom Shadow Colors​

Custom properties are usually rendered using _(customValue)

ObjectNative Properties
shadow.color_(customColor){ shadowColor: 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