BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/cult/ui/dither-image-demo

dither-image-demo

cult-ui/dither-image-demo
UnverifiedComponent

cult/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/dither-image-demo.json

Source

registry/default/example/dither-image-demo.tsxraw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/dither-image-demo.json · first 6 KB
1"use client"
2
3import {
4 DitherImage,
5 DitherImageCaption,
6 DitherImageContent,
7 DitherImageFrame,
8 DitherImageOverlay,
9 DitherImageReveal,
10 type DitherRevealDirection,
11} from "@/registry/default/ui/dither-image"
12
13const GHIBLI_STILLS: { alt: string; src: string }[] = Array.from(
14 { length: 9 },
15 (_, i) => ({
16 src: `/images/gibli/gibli-${i + 1}.jpg`,
17 alt: `Studio Ghibli-style still ${i + 1}, dithered`,
18 })
19)
20
21const FRAME_SIZES = "(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 90vw"
22/** Fixed box for `DitherImageReveal` + overlay demos (`size-56` → 14rem). */
23const REVEAL_SIZES = "224px"
24
25const REVEAL_OVERLAY_VARIANTS: {
26 direction: DitherRevealDirection
27 from: number
28 to: number
29 label: string
30 hint: string
31}[] = [
32 {
33 direction: "r",
34 from: 0,
35 to: 65,
36 label: "r",
37 hint: "Clean left → dither right",
38 },
39 {
40 direction: "l",
41 from: 0,
42 to: 65,
43 label: "l",
44 hint: "Clean right → dither left",
45 },
46 {
47 direction: "t",
48 from: 0,
49 to: 65,
50 label: "t",
51 hint: "Clean top → dither bottom",
52 },
53 {
54 direction: "b",
55 from: 0,
56 to: 65,
57 label: "b",
58 hint: "Clean bottom → dither top",
59 },
60 {
61 direction: "tl-br",
62 from: 0,
63 to: 70,
64 label: "tl-br",
65 hint: "Diagonal (clean top-left)",
66 },
67 {
68 direction: "radial",
69 from: 25,
70 to: 75,
71 label: "radial",
72 hint: "Center clean, edges dither",
73 },
74]
75
76export default function DitherImageDemo() {
77 return (
78 <main className="flex min-h-screen items-center justify-center bg-background p-8">
79 <div className="flex w-full max-w-5xl flex-col gap-10">
80 <header className="flex flex-col gap-2">
81 <h1 className="text-balance font-semibold text-2xl text-foreground tracking-tight">
82 DitherImage
83 </h1>
84 <p className="max-w-prose text-muted-foreground text-sm leading-relaxed">
85 CSS-only Bayer dither via{" "}
86 <code className="rounded bg-muted px-1 py-0.5 font-mono text-[0.75rem]">
87 dither-plugin
88 </code>
89 . Compound:{" "}
90 <code className="rounded bg-muted px-1 py-0.5 font-mono text-[0.75rem]">
91 DitherImage
92 </code>{" "}
93 wraps a{" "}
94 <code className="rounded bg-muted px-1 py-0.5 font-mono text-[0.75rem]">
95 DitherImageFrame
96 </code>{" "}
97 (the dithered surface) containing a{" "}
98// … truncated

What it pulls in

Other registry items

  • dither-image

Files it writes

  • registry/default/example/dither-image-demo.tsx

Facts

Registry
cult/ui
Type
registry:component
Access
Unverified
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

www.cult-ui.com nolly-studio/cult-ui on GitHub Raw registry item This item as JSON

More from cult/ui

All 157 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-instructionsai-instructionscult/uiComponentsUnverified2 deps
ai-instructions-demoai-instructions-democult/uiComponentsUnverifiedno deps
animated-numberanimated-numbercult/uiComponentsUnverified1 dep
animated-number-demoanimated-number-democult/uiComponentsUnverifiedno deps
bg-animate-buttonbg-animate-buttoncult/uiComponentsUnverifiedno deps
bg-animate-button-demobg-animate-button-democult/uiComponentsUnverifiedno deps
bg-animated-fractal-dot-gridbg-animated-fractal-dot-gridcult/uiComponentsUnverified1 dep
bg-animated-fractal-dot-grid-demobg-animated-fractal-dot-grid-democult/uiComponentsUnverifiedno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex