TypeFree Customization Showcase & Practical AI Examples
This guide walks everyday users and creators through every visual, acoustic, physical layout, and lexicon element you can customize in TypeFree, with ready-to-copy prompts you can paste into Claude Code, Cursor, Antigravity, Codex, ChatGPT, Gemini, or DeepSeek.
1. Overview: Three Independent Customization Layers
TypeFree separates customization into three decoupled layers — switching a visual skin never scrambles your typing muscle memory, and switching a key layout never overwrites your colors or switch sounds:
| Layer | What You Can Customize | How to Load on Phone |
|---|---|---|
1. Visual, Tactile & Switch Theme (.tftheme.json) | 26 color tokens + per-key/per-row keyAccents color blocking, glass keycap opacity over photo wallpapers, automatic light/dark dual palettes, per-app auto-theme rules, 7 vector keycap silhouettes, 4 fonts, 4 candidate bar styles, 6 touch particles, custom SVG canvas backdrops (customBackdropPath) & keycap corner crests (customStickerPath), multi-line or hidden spacebar legends, 5 synthesized mechanical switches + haptic crispness | 📷 Scan QR (TF2:) / Copy JSON -> 1-tap Top Bar Preview / + Import |
2. Physical Key Layout (.tflayout.json) | 3–7 weighted rows, 2-key tap-to-swap, split thumb spacers, arbitrary 2D coordinates (2-row tall ISO Enter, center tall Backspace, dual split Spacebars, one-handed thumb arcs), 19 functional key roles, per-key swipe-up & long-press symbols | 📷 Scan QR (TFL2:) / Copy JSON -> 1-tap Top Bar Enable / + Import |
| 3. Custom Dictionaries, Codetables & Voice Hotwords | Shared Pinyin/Shuangpin/T9 sub-dictionaries (Sogou .scel, CSV, TXT -> .dict.yaml), Wubi/Tiger/Xiaohe/XKJD6 sub-dicts (ext/), desktop Rime schema bundles (.zip), AI voice homophone hotwords (.hotwords.txt) | Keyboard → Lexicon / Voice & AI → Personal Dictionary |
2. Visual & Acoustic Theme Capabilities (.tftheme.json)
2.1 26 Fine-Grained Color Tokens, Per-Key keyAccents & Glass Wallpaper Mode
- Canvas gradient:
keyboardCanvas(top) →keyboardCanvasBottom(bottom). - Four independent keycap tiers +
keyAccentsoverrides: Alpha keys (keyCapBg+keyCapText+keyCapPressedBg), function keys (keyCapSecondaryBg+keyCapSecondaryText), primary Enter/Voice action key (accentKeyBg+accentKeyText), dedicated Spacebar (spaceBarBg+spaceBarText), plus up to 16keyAccentsrules targeting individual keys ("w","a","s","d"), roles ("role:backspace"), or entire rows ("row:0"). - Custom multi-line or hidden Spacebar legend:
spaceBarLabelreplaces the default input scheme label cleanly (supports\nline breaks,spaceBarFontSizeSp7.5–16sp,spaceBarMaxLines1–3), or set"hideSpaceBarText": truefor a minimalist blank spacebar. - 3D bevel & shadow: Outline stroke (
keyBorder), 1px top bevel highlight (keyTopHighlight), and 3D bottom shadow rim (keyShadow). - 6 candidate bar tokens: Separate background, border, and text colors for normal candidates vs. the 1st highlighted candidate (
candidateHighlightBg,candidateHighlightBorder,candidateHighlightText). - Frosted glass over photo wallpapers: Set
keyCapAlpha(0.35–0.75) with a custom album wallpaper in the in-app Workshop (wallpaperDimAlphacontrols backdrop dimming).
2.2 7 Non-Distorting Vector Keycap Shapes & Physical Travel
shapeKind:"rounded","chamfered_mecha"(45° octagonal bevels),"retro_round"(typewriter circles),"pill_capsule","pixel_step"(8-bit stair corners),"cat_ear", or"keyless_borderless"(pure floating legends).- Tactile geometry:
cornerRadiusDp(0–22dp),bottomRimDp(0–4dp3D skirt),borderWidthDp(0–2.5dp),pressDepthDp(0–3dpdownward key travel), andfontKind("default","monospace","serif","rounded").
2.3 4 Candidate Framing Styles, Touch Particles & Micro-Badges
candidateStyle:"chip_all","first_only"(highlight pill on 1st candidate only),"underline"(glowing bottom bar under 1st candidate), or"borderless".particleEffect:"ripple_ring","star_sparks","pixel_blocks","sakura_petals","ink_drop", or"none"(with customparticleColorandmaxParticles).cornerSticker&customStickerPath: Presets ("leaf","star","paw","mecha_crosshair","zonai_eye","kuromi_skull","phantom_star") OR any custom24×24SVG vector path (customStickerPath<=240chars) authored by AI.backdropPattern&customBackdropPath: Presets ("zonai_circuit","argyle_plaid","halftone_dots","mecha_warning") OR any custom32×32("tile") /100×60("cover") SVG vector path (customBackdropPath<=320chars) carried losslessly insideTF2:QR codes.overhangMascot:"pixel_cat","cyber_combo","zen_woodfish", or"none".
2.4 On-Device 44.1kHz Synthesized Mechanical Switches & Haptics
TypeFree synthesizes multi-sample 44.1kHz PCM switch audio directly on-device (4 pitch-varied alpha samples + dedicated stabilized spacebar, backspace, and enter samples — zero audio file bloat, 100% preserved inside a TF2: QR code):
"hifi_thocky": Deep PBT/stone bottom-out thock (208Hzhousing resonance +138Hzspacebar)."cherry_blue": Crisp dual-stage tactile click jacket (3400Hzclick +9msclack)."topre_silent": Cushioned electro-capacitive dome thud."retro_typewriter": Metallic hammer strike + dual-tone brass carriage-return bell chime on Enter."water_drop": Clean upward pitch-swept bubble droplet."system": Android system click sound.- Pair any switch with
hapticScale(0.5–1.5). (Note:v3.9.5selects among these 5 synthesized switch presets viasoundPackId; arbitrary raw Hz oscillator formulas are not yet exposed in JSON.)
3. Physical Keyboard Layouts (.tflayout.json)
- Weighted N-Row Mode (
rows): 3–7 rows with proportionalrowWeight, per-keywidthWeight, and invisible"spacer"gaps for split ergonomic keyboards. - Arbitrary 2D Coordinate Mode (
gridCols,gridRows,positionedKeys): Exact(colX, rowY, colSpan, rowSpan)placement supporting 2-row tall ISO Enter keys (rowSpan: 2.0), center thumb Backspace, dual split Spacebars, and left/right one-handed arcs. - 19 Built-In Key Roles:
char(with customswipeUpText&longPressText),backspace(mandatory),space_smart,enter_smart,shift_or_clear,language_toggle,layer_symbol_emoji,comma_smart,period_smart,undo_action,clipboard_open,voice_panel_open,tab,escape,arrow_left,arrow_right,arrow_up,arrow_down, andspacer.
4. Ready-to-Copy AI Prompts
Prompt 1 — Tears of the Kingdom / Game Relic Theme + Lossless QR
Read
skills/typefree-theme-designer/SKILL.mdandAI_SPEC.mdinhttps://github.com/dengxuezhao/typefree-bazaar. Design a Tears of the Kingdom Zonai stone tablet dark theme: weathered dark basalt-jade canvas, carved octagonalchamfered_mechakeycaps with a2.2dpbottom rim, ancient gold Enter key, warm ivoryseriflegends, subtleleafetching, Ultrahand greenripple_ringparticles, and deephifi_thockyswitch sound. Runtf-theme lintto 0 errors and render aTF2:QR preview SVG.
Prompt 2 — 5-Row SSH / Termux Developer Layout (TFL2:)
Following
AI_SPEC.md§2 inhttps://github.com/dengxuezhao/typefree-bazaar, design a 5-row developer.tflayout.jsonwith a compact top row containingEsc,Tab,/,-,|,↑,↓,←,→, full QWERTY letters with1–0swipe-up digits, and zero key overlaps. Validate withtf-theme lintand output aTFL2:QR code.
Prompt 3 — Convert Sogou .scel or CSV Glossary into Shared Pinyin Dict + Voice Hotwords
Read
skills/typefree-dict-converter/SKILL.mdandDICT_SPEC.mdinhttps://github.com/dengxuezhao/typefree-bazaar. Convert my attached.scel/ CSV domain glossary into both a TypeFree shared Pinyin.dict.yaml(ü -> v, tone-free lowercase syllables) and an AI voice.hotwords.txtlist, verify withtf-dict lint, and show me the 1-step import path in TypeFree.