1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month🚨 Slop police🚨 Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. mangacn
  3. Toned Image

Toned Image

component

Any picture turned into a manga screentone: black and white, dark areas become dense dots or lines in ink, light areas stay paper. Patterns: dots (45° screen), lines, cross, noise. Settings: density (cell size in px), contrast, threshold (solid ink above a darkness level). Done with CSS only (blend modes, filters, radial and linear gradients, a feTurbulence noise tile as background): same look in Chromium, Firefox and WebKit, cross-origin pictures work, nothing uploaded. Ink is the foreground colour, paper the background; dark mode is the negative. Keeps alt text.

pnpm dlx shadcn@latest add "https://mangacn.romain-sonnet.fr/r/toned-image.json"
Premium blocks for shadcn/uiShadcnblocks.com · AffiliateExplore
  • cn
@components/manga/toned-image.tsx