{"repo":"callstack/react-native-material-palette","free":true,"listed":false,"github":"https://github.com/callstack/react-native-material-palette","clone":"git clone https://github.com/callstack/react-native-material-palette.git","description":"Bringing Material Palette API to React Native","language":"TypeScript","stars":137,"topics":["react-native","react","material-design","material-ui"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-material-palette [![Build Status][build-badge]][build] [![Version][version-badge]][package] [![MIT License][license-badge]][license] [![Chat][chat-badge]][chat] Android Palette API brought to react native. It extracts prominent colors from images to help you create visually engaging apps. The library only supports Android and requires new architecture to work. Installation Usage createPalette Extract prominent color swatches from an image: Or with local image: The returned PaletteResult has the following properties, each of which is a PaletteSwatch or undefined : Property Description -------------- ------------------------------ vibrant A vibrant color from the image lightVibrant A light and vibrant color darkVibrant A dark and vibrant color muted A muted color from the image lightMuted A light and muted color darkMuted A dark and muted color Each PaletteSwatch has the following properties: Property Type Description ---------------- -------- ----------------------------------------------------- color string The main color of the swatch (hex format) population number The number of pixels represented by this swatch bodyTextColor string A color suitable for body text over the swatch color titleTextColor string A color suitable for title text over the swatch color Options region Specifies a rectangular area of the image to use for palette generation. Coordinates are in pixels. maximumColorCount Maximum colors in the palette. The default value is 16, and the optimal v","default_branch":null,"files":null,"tree":[],"storefront":"/r/callstack","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/callstack/react-native-material-palette/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}