1.0.1 • Published 3 years ago
@artifak/hextorgb v1.0.1
@artifak/hextorgb
A utility function to convert hexadecimal colour values to RGB string.
Installation
Yarn
yarn add @artifak/hextorgb
NPM
npm install @artifak/hextorgb
Usage
import { hexToRGB } from 'artifak';
import styled from 'styled-components';
export const Container = styled.div`
margin: 0 auto;
width: 100%;
background: #000;
color: ${hexToRGB('#FFF')};
`;
1.0.1
3 years ago