Logo: Omd:Cjk Type Shader

Omd:Cjk Type Shader

Communautéit
kwakseongjae
omd:cjk-type-shader

One effect, done well: 먹 번짐 — a large Korean, Japanese or Chinese display headline that reads as sumi ink printed on hanji. The heading stays real, selectable DOM text in ink color from the first frame; a WebGL2 layer over it adds what real ink does: a wet, glossy stroke with a soft bloom that shrinks as it dries, ink pooling darker at stroke rims, ends and corners, paper fibers showing through thick strokes, and capillary feathering along fibers at a few edges only. Two parameters (bleed, duration), ~5 KiB gzip of library JS, procedural paper texture, static fallback, prefers-reduced-motion, real-GPU verification script. Use for a CJK hero/launch headline, brand title, campaign line or section opener that should feel like a printed calligraphy poster. Triggers: '먹 번짐', '잉크 번짐', '한지 느낌 제목', '한글 타이포 셰이더', '제목에 셰이더', '墨のにじみ', '和紙', '筆文字っぽく', '墨跡暈開', '宣紙', 'CJK headline shader', 'sumi ink text effect', 'ink bleed text', 'Hangul shader'. Not for body text, buttons, or Latin-only headlines. Full-page shader backgrounds → omd-shader-hero. Korean typesetting rules → hangul. Brand tokens → omd-apply.

Iwwersiicht

Editeurkwakseongjae
Repositoryoh-my-design
Skill-Nummomd:cjk-type-shader
Stären
551
Forks
48
Matgeliwwert Dateien
2
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    kwakseongjae huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Omd:Cjk Type Shader an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/kwakseongjae/oh-my-design/tree/main/.claude/skills/omd-cjk-type-shader
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kwakseongjae/oh-my-design.git /tmp/oh-my-design
mkdir -p .claude/skills
cp -r /tmp/oh-my-design/.claude/skills/omd-cjk-type-shader .claude/skills/kwakseongjae-omd-cjk-type-shader
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Omd:Cjk Type Shader an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Omd:Cjk Type Shader automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Omd:Cjk Type Shader net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

omd-cjk-type-shader — 먹 번짐: CJK display type as sumi ink on hanji

Ink soaking into paper is the one image Korean, Japanese and Chinese writing share. This skill makes a big CJK headline read like it was printed or brushed in sumi on hanji. On a fast skim it should look like a calligraphy poster, not a filter.

How it works. The heading is ordinary DOM text in the ink color, readable and selectable from the first frame. The skill traces every grapheme where the browser laid it out and builds three fields from that mask: distance outside the strokes, distance inside them, and local ink coverage. A WebGL2 layer drawn over the text then adds only what real ink does:

  • wet → dry: the stroke starts glossy-dark with a soft bloom around it, and the bloom shrinks back as the ink dries;
  • pooling: ink collects darker along the stroke rim and at stroke ends and convex corners (low local coverage);
  • kasure: paper fibers show through the middle of thick strokes once dry;
  • nijimi: capillary feathering runs along a few paper fibers at some edges, chosen by low-frequency noise, never as an even ring around every glyph;
  • paper: a procedural hanji texture (SVG turbulence, no image) on the page.

It plays once when the heading enters the viewport, then the render loop stops. Line wrapping, keep-all, font swaps and resizes are re-traced.

Working example: examples/demo.html (single file, Korean + Japanese + Traditional Chinese). Proof: scripts/verify.mjs.

1. When to use / when not

Use when:

  • a Korean, Japanese or Chinese display headline (≥ 40px; hero, launch title, campaign line, section opener) should feel inked, calligraphic, "printed on hanji / washi / 宣紙";
  • the brand's ink and paper colors are known (DESIGN.md foreground/canvas, or the heading's computed color and the page background).

Don't use for:

  • body text, labels, buttons, nav, anything below ~32px (pooling and feathering need stroke width to read);
  • Latin-only headlines (it works, but the cultural point is gone);
  • more than one or two headings per page. Boldness in one place (tf-shaders rule);
  • light text on dark paper. The effect darkens ink, so it needs a paper that ink reads on.

2. The effect and its two parameters

ParamRangeDefaultWhat it does
bleed0–10.7How far the capillary feathering travels along fibers (up to 0.12em × bleed, at the edges noise picks) and how big the wet bloom gets. 0.4 = barely there, 0.8 = a wet brush.
durations2.6Time from wet to dry. The bloom peaks early and shrinks; pooling and fiber show-through come in as it dries. Under 1.5s it reads as a flash, over 4s as a loading state.

Everything else is fixed on purpose. Ink = the heading's computed color, darkened to 25% for pools; paper = the page background color. Text ink should be a sumi grey-black, not pure black (the demo uses #3a3530 on #f3eee4, about 10:1), so the darker pools have room to show. One signature, not a control panel.

3. The contract that keeps text text

  • The heading is a normal <h1>/<h2> with its real text. inkBleed() wraps the text in .ink-text and inserts an aria-hidden="true", pointer-events: none layer over it (z-index 2). The layer only darkens, lightens or extends what is already there. It never replaces or re-draws the glyphs, and with the layer removed the heading is still complete.
  • The headline paints on the first frame. No opacity: 0, no clip, no wait for the shader. tf-shaders measured LCP going to 7.8s when hero copy waited for a shader.
  • Selection, copy, find-in-page, translation, screen readers and SEO see plain text. verify.mjs checks that selecting the heading returns its full text in every pass.
  • Leave ~0.4em of clear space around the heading (the demo uses margin-bottom: 0.4em). Feathering and bloom extend up to ~0.3em past the glyphs.
  • Never draw CJK headlines with a canvas/Text shader component. Canvas text loses selection, accessibility, indexing and correct CJK shaping (tf-shaders "Don't" list).

4. CJK typesetting (applies before the shader)

From /hangul (HG rules) for Korean; ja/zh scoped separately so Korean rules don't leak:

css
.ink:lang(ko) { word-break: keep-all; overflow-wrap: anywhere;  /* HG-10, scoped to :lang(ko) */
                letter-spacing: -0.02em;                          /* HG-7: display never below -0.03em */
                line-height: 1.3; }                               /* HG-5: wrapping display >= 1.3 */
.ink:lang(ja), .ink:lang(zh-Hant) {
  line-break: strict;                                 /* kinsoku: no small kana / closing marks at line start */
  word-break: keep-all; overflow-wrap: anywhere;      /* break only at <wbr> phrase marks you place */
  letter-spacing: 0; line-height: 1.4; }
:lang(ko), :lang(ja), :lang(zh) { font-synthesis: none; } /* no fake bold/italic on CJK */
  • Mark Japanese/Chinese phrase boundaries with <wbr> (BudouX-style: 墨がにじむように、<wbr>名前が<wbr>紙に染みこむ。). In headless Chrome 149, word-break: auto-phrase computed correctly but did not produce phrase breaks in this demo, so don't rely on it.
  • Korean: line breaks only at spaces between 어절, never syllable by syllable. Hand-place display line breaks when the copywriter cares (tf-shaders cjk-type.md).
  • Set lang on the heading (ko, ja, zh-Hant/zh-Hans). It picks the right glyph variants for shared Han code points and scopes the rules above.
  • Fonts: use a face that ships the weight you set (HG-12). The demo uses Noto Serif KR / JP / TC 700 from Google Fonts, which loads only the glyph slices the page uses. A myeongjo/mincho/song face suits ink. Pretendard works too. Trace after document.fonts.ready so the field follows the real face, not the fallback.

5. Library, license, budget

Library: @paper-design/shaders (vanilla ShaderMount), pinned 0.0.81, WebGL2. Decision record (verified 2026-10-13 from the npm tarballs' LICENSE files, npm metadata and the GitHub license API):

@paper-design/shaders 0.0.81shaders 4.0.4 (shaders.com)
LicenseApache-2.0 (LICENSE + NOTICE "Paper Shaders, Copyright 2026 Paper")MIT (© 2026 Shader Effects Inc.); dep typegpu 0.12.3 MIT (Software Mansion)
Redistribution in a skill/templateallowed; keep NOTICE if you vendor codeallowed
RuntimeWebGL2: every current desktop and mobile browserWebGPU only, no fallback (Chrome/Edge, Android 12+ Chrome, Safari 26+, recent Firefox)
JS for this effect17.5 KiB min / 5.3 KiB gzip (esbuild, ShaderMount only); CDN per-file +esm 16.4 KiB / 5.0 KiB gzip2,535 KiB min / 710 KiB gzip (esbuild, Shader+MeshGradient from shaders/react)
Telemetrynone (its only fetch() reads a local blob's content type)on by default: samples 5% of sessions to shaders.com/api/telemetry; pass disableTelemetry
Custom GLSL + texturesyes (ShaderMount(el, frag, uniforms), image uniforms)via its component graph

The effect needs a custom fragment shader and one texture, which is exactly what ShaderMount is, at 1/130th of the WebGPU runtime's weight and with twice the browser reach. The demo imports Paper from jsDelivr (pinned, per-file build) and does not vendor it, so no NOTICE copy is needed. If you vendor Paper's files, copy its NOTICE alongside. If a project already ships shaders, this effect still runs on Paper. Don't load both runtimes on one page.

Budget for one heading:

  • JS: 5.0–5.3 KiB gzip library + 5.3 KiB gzip of effect code (shader, two distance transforms, coverage blur, tracing; measured unminified with comments).
  • GPU: one quad, one texture lookup and 7 value-noise calls per pixel, over the heading box plus a ≤0.32em pad, minPixelRatio: 1, capped at 1920×1080 px. It runs for duration and then setSpeed(0) stops the rAF loop. Paper also pauses it offscreen and in hidden tabs.
  • CPU: per layout change (font swap, resize, re-wrap; debounced 120ms), two Euclidean distance transforms (outside and inside the strokes) and one separable box blur, at half resolution above 64px type.
  • Paper texture: an inline SVG feTurbulence data URI on html (~600 bytes), no image request.
  • Fonts are the real cost. CJK faces are large. Load only the display weight, as unicode-range slices.

6. Fallback and reduced motion

  • No WebGL2 (probe canvas.getContext('webgl2') before mounting; ShaderMount throws if it can't get a context or link the program): no layer is inserted, the heading gets .ink-static (a faint CSS text-shadow). The heading is already in ink on textured paper, so it is complete without the shader. verify.mjs forces this path by stubbing getContext.
  • prefers-reduced-motion: reduce: mount at the dried frame with speed 0. The reader gets the final inked state as one still frame, with no motion and no rAF loop.
  • Shader compile failure (one happened while building this: a precision mismatch with Paper's vertex shader) takes the same .ink-static path. In your own GLSL, declare uniform mediump vec2 u_resolution;, because the precision must match Paper's vertex shader.

7. Verify on a real GPU

next build or a passing lint proves nothing for shaders (tf-shaders rule). Run:

bash
npm i -D playwright-core && npx playwright-core install chromium   # a fresh Playwright Chromium, not your own Chrome
node <skill>/scripts/verify.mjs path/to/page.html ./ink-verify --frames 36

It launches headless Chromium with --enable-gpu --ignore-gpu-blocklist --use-angle=metal (macOS) and runs three passes: GPU, reduced-motion, no-WebGL. Then it:

  • records the WebGL renderer string, so you know whether a real GPU or SwiftShader drew the frames;
  • steps the shader clock deterministically and saves frames (feed them to ffmpeg for the demo GIF/MP4);
  • proves rendering with pixels: shader-on vs shader-off inside the heading box, and first frame vs dried frame;
  • checks that the selected text equals the heading text, the layer is aria-hidden + pointer-events: none, reduced motion is still, and no-WebGL leaves no canvas.

Measured on 2026-10-13 (headless Chromium 149, ANGLE Metal Renderer: Apple M5 Pro, not SwiftShader): 10.2% of heading-box pixels changed by the shader, wet ≠ dry (5.9% differ), all checks passed. Look at the frames anyway, at full size: a misaligned field (wrong baseline) shows as pooling offset from the strokes, and a feathering setting that is too strong reads as fur. Only your eyes catch those.

8. Next.js / React port

Keep the same function and lifecycle in a 'use client' leaf: useEffect(() => { let h; document.fonts.ready.then(async () => { const { ShaderMount } = await import('@paper-design/shaders'); h = await inkBleed(ref.current, { bleed, duration }); }); return () => h?.mount.dispose(); }, []). Render the heading server-side as plain text, so the shader only decorates it after hydration. Don't use @paper-design/shaders-react's <ShaderMount> here: it doesn't give you the WebGL2 probe, the fallback class, or control over when the field is re-traced.

9. Attribution

The budget-first framing, the fallback-is-design rule, the first-frame-LCP rule, 어절-not-syllable reveals, keep-all, and the real-GPU screenshot loop come from the owner's tf-shaders experiment (skill/shader-landing/SKILL.md, references/cjk-type.md, scripts/shoot.mjs, RESEARCH.md, 2026-10). Korean type values come from OmD's /hangul skill. The distance transform is Felzenszwalb & Huttenlocher's linear-time EDT, written fresh here.

Don't

  • Don't hide the heading until the shader is ready. The text is the content; the ink is the frame.
  • Don't animate syllable by syllable, and don't split Hangul into per-character spans for a reveal.
  • Don't run the loop forever. A dried ink effect costs nothing; a looping one drains batteries.
  • Don't put two runtimes (Paper + shaders) on one page for one heading.
  • Don't feather every edge or draw a uniform halo. An even ring around each glyph reads as a sticker, not ink; feathering belongs to a few edges.
  • Don't use pure black text ink. Pools need a darker value to show, and sumi is grey-black anyway.
  • Don't push bleed until the fibers read as fur. Check the dried frame at your real font size.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Omd:Cjk Type Shader?

One effect, done well: 먹 번짐 — a large Korean, Japanese or Chinese display headline that reads as sumi ink printed on hanji. The heading stays real, selectable DOM text in ink color from the first frame; a WebGL2 layer over it adds what real ink does: a wet, glossy stroke with a soft bloom that shrinks as it dries, ink pooling darker at stroke rims, ends and corners, paper fibers showing through thick strokes, and capillary feathering along fibers at a few edges only. Two parameters (bleed, duration), ~5 KiB gzip of library JS, procedural paper texture, static fallback, prefers-reduced-motio...

Firwat Omd:Cjk Type Shader op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Omd:Cjk Type Shader besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Omd:Cjk Type Shader an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/kwakseongjae/oh-my-design/tree/main/.claude/skills/omd-cjk-type-shader an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Omd:Cjk Type Shader benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Omd:Cjk Type Shader benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Omd:Cjk Type Shader domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Omd:Cjk Type Shader gratis?

Jo. kwakseongjae huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇