media-hex

2.5.1 • Public • Published

What is this?

Get the colors of popular media platforms instead of having to find hex codes.

Installation

npm i media-hex --save

React Example

One can put their styles in an object in one's React component file; however, replace the CSS property value with the mediaHexHelper.

import React from 'react';

import { mediaHexHelper } from 'media-hex';


const mediaColor = {
    color: mediaHexHelper('apple')
}

function MyComponent() {
    return (
        <div style={mediaColor}>This text will be Apple's purple</div>
    );
}

export default MyComponent;

Social Media Hexes 'facebook' 'twitter' 'whatsapp' 'instagram' 'discord'

Video Streaming Media Hexes 'youtube' 'netflix' 'hulu' 'amazon-prime' 'disney-plus'

Audio Media Hexes 'apple' 'google' 'spotify' 'podcast-republic' 'podcast-addict' 'i-heart-radio'

colors

Package Sidebar

Install

npm i media-hex

Weekly Downloads

1

Version

2.5.1

License

ISC

Unpacked Size

14.1 kB

Total Files

4

Last publish

Collaborators

  • zgraham