# 0.25.0 (/docs/changelog/0.25.0)



CodeBlock now loads Shiki through its core, with a fixed set of languages and the JavaScript regex engine, so apps that use the kit build about 23 Shiki chunks instead of about 300 and no WASM. Languages and themes outside the built-in set have to be registered first. A Figma parity pass aligns Card, Badge, ThemeIcon, Button, Table and the pink and green ramps with the 42 UI Kit, and Switch and Checkbox now align to their label line when a description sits below.

## Changes [#changes]

<Changelog version="0.25.0" />

## Upgrading CodeBlock [#upgrading-codeblock]

`language` resolves these names on its own, each loaded on first use:

| Language   | Names                                       |
| ---------- | ------------------------------------------- |
| C          | `c`                                         |
| C++        | `cpp`, `c++`                                |
| Python     | `python`, `py`                              |
| Shell      | `shellscript`, `bash`, `sh`, `shell`, `zsh` |
| JavaScript | `javascript`, `js`, `cjs`, `mjs`, `jsx`     |
| TypeScript | `typescript`, `ts`, `cts`, `mts`, `tsx`     |
| JSON       | `json`                                      |
| YAML       | `yaml`, `yml`                               |
| Markdown   | `markdown`, `md`                            |
| HTML       | `html`                                      |
| CSS        | `css`                                       |
| SQL        | `sql`                                       |
| Go         | `go`                                        |
| Rust       | `rust`, `rs`                                |
| Java       | `java`                                      |
| Makefile   | `make`, `makefile`                          |
| Dockerfile | `docker`, `dockerfile`                      |
| Diff       | `diff`                                      |

Any other name now renders as plain text, with a warning in development. To keep a language you relied on, register its grammar once, before the first `CodeBlock` that uses it. Any of [Shiki's grammars](https://shiki.style/languages) works:

```tsx
import { registerLanguage } from '@42-central/ui-react/code-block';

await registerLanguage((await import('shiki/langs/haskell.mjs')).default);
// later:
<CodeBlock language="haskell" code="main = print 1" />
```

Themes work the same way: `github-light` and `github-dark-default` are built in, and any other theme must go through `registerTheme` before `themes` names it. See [Languages and themes](/docs/code-block#languages-and-themes).
