Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cirolee/tailwindcss-universal-colors

universal color palette for tailwidncss
https://github.com/cirolee/tailwindcss-universal-colors

colors tailwindcss universal-colors

Last synced: 9 days ago
JSON representation

universal color palette for tailwidncss

Awesome Lists containing this project

README

        


logo

# tailwindcss-universal-colors

universal color palette for tailwindcss

![image](./assets/cover.png)

[preview](https://cirolee.github.io/tailwindcss-universal-colors/)

## install

```bash
# npm
npm install tailwindcss-universal-colors -D
# yarn
yarn add tailwindcss-universal-colors -D
# pnpm
pnpm add tailwindcss-universal-colors -D

```

## usage

### use as extended colors

```ts
// tailwind.config.mjs
import universalColors from 'tailwindcss-universal-colors';

export default {
theme: {
extend: {
colors: {
...universalColors,
},
},
},
// ...
};
```

### `getColors` helps get color value

```ts
import { getColors } from 'tailwindcss-universal-colors';

getColors('gray.0'); // #F8FAFB
```

## inspired

[colar](https://github.com/fchristant/colar)