Skip to content

Commit

Permalink
update hextorgba readme
Browse files Browse the repository at this point in the history
  • Loading branch information
heyjul3s committed Feb 17, 2021
1 parent 136e060 commit 71d7fbf
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/hextorgba/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
# `@artifak/hextorgba`

A utility function to convert hexadecimal colour values to RGBA string.

## Installation

### Yarn

```sh
yarn add @artifak/hextorgba
```

### NPM

```sh
npm install @artifak/hextorgba
```

## Usage

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

0 comments on commit 71d7fbf

Please sign in to comment.