Skip to content

Commit 02e8aa0

Browse files
committed
Create shy-planes-report.md
1 parent a78cca0 commit 02e8aa0

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.changeset/shy-planes-report.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
"@evolu/common": patch
3+
---
4+
5+
Evolu identicons
6+
7+
Added `createIdenticon` function for generating visually distinct SVG identicons from Evolu `Id` (including branded IDs like `OwnerId`, etc.). For user avatars, visual identity markers, and differentiating entities in UI without storing images.
8+
9+
### Features
10+
11+
- **Multiple styles**: Choose from 4 styles:
12+
- `"github"` (default): 5×5 grid with horizontal mirroring, inspired by GitHub avatars
13+
- `"quadrant"`: 2×2 color block grid with direct RGB mapping
14+
- `"gradient"`: Diagonal stripe pattern with smooth color gradients
15+
- `"sutnar"`: Ladislav Sutnar-inspired compositional design with adaptive colors
16+
- **SVG output**: Returns SVG string that can be used directly
17+
18+
### Example
19+
20+
```ts
21+
import { createIdenticon } from "@evolu/common";
22+
23+
// Basic usage with default GitHub style
24+
const svg = createIdenticon(userId);
25+
26+
const quadrant = createIdenticon(ownerId, "quadrant");
27+
const gradient = createIdenticon(postId, "gradient");
28+
const sutnar = createIdenticon(teamId, "sutnar");
29+
```

0 commit comments

Comments
 (0)