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

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i @artifak/hextorgb

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

8.11 kB

Total Files

16

Last publish

Collaborators

  • heyjules