2.5.1 • Published 4 years ago

media-hex v2.5.1

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

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

2.5.1

4 years ago

2.5.0

5 years ago

2.4.4

5 years ago

2.4.3

5 years ago

2.4.2

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago