diff --git a/docs/next/colors.html b/docs/next/colors.html index 82edef27fb8..1adc66c649d 100644 --- a/docs/next/colors.html +++ b/docs/next/colors.html @@ -1,4 +1,4 @@ -Color Reference · React Native
Edit

Color Reference

Components in React Native are styled using JavaScript. Color properties usually match how CSS works on the web.

-

Red Green Blue (RGB)

+
Edit

Color Reference

Components in React Native are styled using JavaScript. Color properties usually match how CSS works on the web. General guides on the color usage on each platform could be found below:

+ +

Color APIs

+

React Native has several color APIs designed to allow you to take full advantage of your platform's design and user preferences.

+
    +
  • PlatformColor lets you reference the platform's color system.
  • +
  • DynamicColorIOS is iOS specific and allows you to specify which colors should be used in light or Dark Mode.
  • +
+

Color representations

+

Red Green Blue (RGB)

React Native supports rgb() and rgba() in both hexadecimal and functional notation:

  • '#f0f' (#rgb)
  • @@ -79,13 +90,13 @@
  • 'rgb(255, 0, 255)'
  • 'rgba(255, 0, 255, 1.0)'
-

Hue Saturation Lightness (HSL)

+

Hue Saturation Lightness (HSL)

React Native supports hsl() and hsla() in functional notation:

  • 'hsl(360, 100%, 100%)'
  • 'hsla(360, 100%, 100%, 1.0)'
-

Color ints

+

Color ints

React Native supports also colors as an int values (in RGB color mode):

  • 0xff00ff00 (0xrrggbbaa)
  • @@ -93,20 +104,14 @@

    Note: This might appear similar to the Android Color ints representation but on Android values are stored in SRGB color mode (0xaarrggbb).

    -

    Color APIs

    -

    React Native has several color APIs designed to allow you to take full advantage of your platform's design and user preferences.

    -
      -
    • PlatformColor lets you reference the platform's color system.
    • -
    • DynamicColorIOS is iOS specific and allows you to specify which colors should be used in light or dark mode.
    • -
    -

    Named colors

    +

    Named colors

    In React Native you can also use color name strings as values.

    Note: React Native only supports lowercase color names. Uppercase color names are not supported.

    -

    transparent

    +

    transparent

    This is a shortcut for rgba(0,0,0,0), same like in CSS3.

    -

    Color keywords

    +

    Color keywords

    Named colors implementation follows the CSS3/SVG specification:

      @@ -256,7 +261,7 @@
    • yellow (#ffff00)
    • yellowgreen (#9acd32)
    -
Edit

Color Reference

Components in React Native are styled using JavaScript. Color properties usually match how CSS works on the web.

-

Red Green Blue (RGB)

+
Edit

Color Reference

Components in React Native are styled using JavaScript. Color properties usually match how CSS works on the web. General guides on the color usage on each platform could be found below:

+ +

Color APIs

+

React Native has several color APIs designed to allow you to take full advantage of your platform's design and user preferences.

+
    +
  • PlatformColor lets you reference the platform's color system.
  • +
  • DynamicColorIOS is iOS specific and allows you to specify which colors should be used in light or Dark Mode.
  • +
+

Color representations

+

Red Green Blue (RGB)

React Native supports rgb() and rgba() in both hexadecimal and functional notation:

  • '#f0f' (#rgb)
  • @@ -79,13 +90,13 @@
  • 'rgb(255, 0, 255)'
  • 'rgba(255, 0, 255, 1.0)'
-

Hue Saturation Lightness (HSL)

+

Hue Saturation Lightness (HSL)

React Native supports hsl() and hsla() in functional notation:

  • 'hsl(360, 100%, 100%)'
  • 'hsla(360, 100%, 100%, 1.0)'
-

Color ints

+

Color ints

React Native supports also colors as an int values (in RGB color mode):

  • 0xff00ff00 (0xrrggbbaa)
  • @@ -93,20 +104,14 @@

    Note: This might appear similar to the Android Color ints representation but on Android values are stored in SRGB color mode (0xaarrggbb).

    -

    Color APIs

    -

    React Native has several color APIs designed to allow you to take full advantage of your platform's design and user preferences.

    -
      -
    • PlatformColor lets you reference the platform's color system.
    • -
    • DynamicColorIOS is iOS specific and allows you to specify which colors should be used in light or dark mode.
    • -
    -

    Named colors

    +

    Named colors

    In React Native you can also use color name strings as values.

    Note: React Native only supports lowercase color names. Uppercase color names are not supported.

    -

    transparent

    +

    transparent

    This is a shortcut for rgba(0,0,0,0), same like in CSS3.

    -

    Color keywords

    +

    Color keywords

    Named colors implementation follows the CSS3/SVG specification:

      @@ -256,7 +261,7 @@
    • yellow (#ffff00)
    • yellowgreen (#9acd32)
    -