@artifak/hextorgba
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@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)};
`;

Package Sidebar

Install

npm i @artifak/hextorgba

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

18.6 kB

Total Files

15

Last publish

Collaborators

  • heyjules