K Kibo Get Kibo

How iPhone keyboard themes are actually drawn

A custom keyboard is not recolouring Apple’s keyboard — it is drawing its own keys inside an empty view, which is why it can look like anything and why it has to rebuild everything Apple’s keyboard provides as standard.

A keyboard theme is not a skin laid over Apple’s keyboard: the extension is handed an empty rectangle at the bottom of the screen and draws every key inside it itself.

The extension gets a blank view

When iOS presents a third-party keyboard, what it provides is a view of a certain size and a connection to the text field. Everything inside that view is the extension’s own drawing. There is no Apple keyboard underneath being recoloured and no official set of theming hooks — which is why custom keyboards can look like anything at all, and equally why they have to rebuild the behaviour Apple’s keyboard supplies as standard.

That rebuilt behaviour is the part users never notice until it is missing:

A theme sits on top of that machinery rather than in place of it. Changing the look changes what the drawing code paints, not what the keyboard does.

What a theme actually consists of

Metrics

Key width and height, the gaps between keys, row heights, corner radius, and how each of those scales with screen width, orientation and the safe area at the bottom of the phone. These are usually shared across every theme deliberately, so that muscle memory survives a change of look — the keys should move under your thumb only if a theme is explicitly meant to change shape.

Colour, in two independent layers

The key background and the glyph printed on it are separate values. That separation is what makes a theme readable or not: a background and a glyph too close in lightness produce keys you can see and letters you cannot. The pairing has to hold for the pressed state, the darker function keys, the shift key in its several states and the popup preview, not only for the keyboard sitting at rest. Contrast is measurable rather than a matter of taste, and it is the difference between a keyboard that photographs well and one that is usable at night.

Lighting, drawn per key

Backlight effects are not an image or a video layered over the keyboard. Each key is already a view the keyboard drew, so an effect is code that changes those views over time — a glow that brightens on the key you just pressed and decays, a hue that advances with key position so a wave appears to travel across a row, particles emitted from the point of a press. Because it is drawn rather than stored, an effect costs a few numbers instead of a set of animation frames, and it can take its colours from whichever theme is loaded rather than needing one version per theme.

Why a theme has to be cheap to render

A keyboard extension runs under a much tighter memory limit than an ordinary app — tens of megabytes rather than hundreds — and exceeding it does not make the keyboard slow, it terminates the extension. iOS then falls back to Apple’s keyboard mid-sentence, which is the flicker people report as the keyboard disappearing.

That single constraint shapes the whole design:

None of this is visible while typing, which is the intent. It does explain a pattern worth recognising: keyboards that lean on large images tend to be the ones that stutter on first appearance and vanish under memory pressure, and keyboards built out of drawing tend not to.

Where Kibo fits

Kibo draws its own keys, which is what makes its range of themes possible — flat minimal boards, dark boards, neon, gradients and patterned skins are all the same layout painted with different values, so the key positions do not move when you change the look. Backlight effects are drawn per key on top of that, taking their colour from the theme in place rather than shipping as artwork of their own.

The economy is deliberate. Emoji and kaomoji panels are text, photo backgrounds are downsampled once in the main app before the keyboard ever sees them, and only the selected theme, sound and languages are loaded. That is what keeps the keyboard inside the extension memory budget while still looking like something other than a grey grid.

Frequently asked questions

Do keyboard themes change Apple’s keyboard?

No. A third-party keyboard is a separate keyboard drawing its own keys in its own view. Apple’s keyboard is untouched and still appears in secure fields and wherever you switch back to it.

Why do the keys stay in the same place when I change theme?

Layout metrics — key sizes, gaps, row heights — are generally shared across themes on purpose, so that changing the look does not cost you the muscle memory of where the keys are.

Are backlight effects videos or images?

Neither. They are drawing code applied to key views that already exist, which is why an effect can take its colours from the current theme and costs far less to store than animation frames would.

Why do some themed keyboards crash or flicker?

Usually memory. Keyboard extensions have a small memory budget, and a theme built from large images can push past it, at which point iOS terminates the extension and falls back to the system keyboard.

Try it on your own keyboard

Kibo is a free custom keyboard for iPhone with real mechanical key sounds, a wardrobe of themes and RGB backlight effects. No account, no ads, and it works with Full Access left off.

Download on the App Store

Related guides

All guides