Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bartbergmans authored Feb 20, 2022
1 parent 548d230 commit ac1291d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Palettey

Package to generate a 10-color palette based on a given color hex.
Useful to generate Tailwind CSS palettes.
## Usage

```js
// Generate a luminance palette
palettey.createPalleteFromColor("primary", "#7953e0", {
useLightness: false,
})

// Generate a lightness palette
palettey.createPalleteFromColor("primary", "#7953e0", {})
```

Check out [Palette Generator](https://tailwind.simeongriggs.dev) to try the generator online.

## Credits
Based on [tailwind-css-palette-generator](https://github.com/SimeonGriggs/tailwind-css-palette-generator) created by [Simeon Griggs](https://simeongriggs.dev/)

0 comments on commit ac1291d

Please sign in to comment.