Skip to main content

Border Color

Apply colors to element borders.

Import​

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

Properties​

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

Custom Border Colors​

Custom properties are usually rendered using _(customValue)

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