@artifak/hextorgba
v1.0.1
Published
Utility function to convert style hex colour codes to RGBA string.
Downloads
4
Maintainers
Readme
@artifak/hextorgba
A utility function to convert hexadecimal colour values to RGBA string.
Installation
Yarn
yarn add @artifak/hextorgba
NPM
npm install @artifak/hextorgba
Usage
import { hexToRGBA } from 'artifak';
import styled from 'styled-components';
export const Container = styled.div`
margin: 0 auto;
width: 100%;
background: #000;
color: ${hexToRGBA('#FFF', 0.75)};
`;