Skip to content

Commit efb01d2

Browse files
authored
readme: update to include package
1 parent 2e3a5ce commit efb01d2

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

β€ŽREADME.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,46 @@
66
</p>
77
<div align="center">
88
<a href="https://github.com/yuvalkarif/gradient-blob/actions/workflows/main.yml" target="__blank"><img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/yuvalkarif/gradient-blob/main.yml?color=blue" /></a>
9+
<a href="https://www.npmjs.com/package/@yuvalkarif/gradient-blob" target="__blank"><img alt="NPM Version" src="https://img.shields.io/npm/v/%40yuvalkarif%2Fgradient-blob?color=lavender"></a>
910
<a href="https://yuvalkarif.github.io/gradient-blob/" target="__blank"><img alt="Website" src="https://img.shields.io/website?url=https%3A%2F%2Fgradient-blob.yuvalkarif.com%2F" /></a>
1011
</div>
1112
</p>
1213

14+
> [!NOTE]
15+
> This project was created mainly for learning purposes such as repo management, CI/CD, monorepo, package maintenance, etc.
16+
1317
## Features 🌟
1418
- **Customizable Blobs** πŸ› : Adjust the size, color, and complexity of your blobs.
1519
- **Live Preview** πŸ‘€: See changes in real-time as you customize your blob.
16-
- **Copy CSS** πŸ“„: With one click, copy the CSS of your customized blob to your clipboard.
20+
- **Copy CSS** πŸ“„: Easily copy the CSS of your customized blob to your clipboard.
1721
- **Nuxt 3 Powered** πŸ”₯: Enjoy the latest features and optimizations of Nuxt 3.
1822
- **TypeScript Support** πŸ“š: Reliable and maintainable codebase with TypeScript.
23+
- **Fully Tested** πŸ§ͺ: Unit and E2E tests utilizing Vitest and Playwright.
24+
- **Formatted and Linted** 🧹: The entire repo is formatted and linted using ESLint.
25+
- **Published Package** πŸ“¦: A package that powers the interactive website.
26+
27+
## Package
28+
### Installation
29+
```bash
30+
npm i @yuvalkarif/gradient-blob
31+
```
1932

20-
## Getting Started πŸš€
33+
### Usage Example
34+
```ts
35+
import { gb, gbc } from '@yuvalkarif/gradient-blob'
36+
37+
// Basic Usage
38+
const gradientBlob = gb(10)
39+
// ^ -> "96% 25%, 19% 32%, 42% 91%, 82% 3%, 46% 52%, 35% 19%, 17% 24%, 83% 88%, 78% 86%, 26% 18%"
40+
41+
// Complicated Usage
42+
const { gb } = gbc({ cacheChance: 50 })
43+
const gradientBlob = gb(10, { clipPathProperty: true })
44+
// ^ -> "clip-path: polygon(96% 25%, 19% 32%, 42% 91%, 82% 3%, 46% 52%, 35% 19%, 17% 24%, 83% 88%, 78% 86%, 26% 18%)"
45+
```
46+
## Local Development πŸš€
2147
To run CSS Blobs Generator locally, clone the repository and install the dependencies:
2248

2349
```bash
24-
pnpm install && pnpm dev
50+
npm install && npm run dev
2551
```

0 commit comments

Comments
Β (0)