# Recipes (/recipes)

Copy-paste recipes for common tasks.

For runnable demos and full integration apps, see the package example directories in [`crates/lumis/examples`](https://github.com/leandrocp/lumis/tree/main/crates/lumis/examples), [`packages/elixir/lumis/examples`](https://github.com/leandrocp/lumis/tree/main/packages/elixir/lumis/examples), [`packages/javascript/lumis/examples`](https://github.com/leandrocp/lumis/tree/main/packages/javascript/lumis/examples), [`packages/javascript/react/examples`](https://github.com/leandrocp/lumis/tree/main/packages/javascript/react/examples), [`packages/javascript/rehype-lumis/examples`](https://github.com/leandrocp/lumis/tree/main/packages/javascript/rehype-lumis/examples), [`packages/javascript/markdown-it-lumis/examples`](https://github.com/leandrocp/lumis/tree/main/packages/javascript/markdown-it-lumis/examples), and [`packages/javascript/vite/examples`](https://github.com/leandrocp/lumis/tree/main/packages/javascript/vite/examples).

- [Minimal HTML](/recipes/minimal-html)
- [Auto-detect language](/recipes/auto-detect-language)
- [Linked HTML with CSS theme file](/recipes/linked-html-css-theme-file)
- [Tailwind CSS](/recipes/tailwind-css)
- [Multi-theme HTML](/recipes/multi-theme-html)
- [Terminal output](/recipes/terminal-output)
- [Rainbow brackets](/recipes/rainbow-brackets)
- [Line Highlighting](/recipes/line-highlighting)
- [Line Numbers](/recipes/line-numbers)
- [Wrap output with custom HTML](/recipes/wrap-output-with-custom-html)
- [Custom theme from JSON](/recipes/custom-theme-from-json)
- [Customize theme styles](/recipes/customize-theme-styles)
- [Injected languages (HTML + CSS + JS)](/recipes/injected-languages-html-css-js)
- [Highlight diffs](/recipes/highlight-diffs)
- [Phoenix LiveView rendering](/recipes/phoenix-liveview-rendering)
- [Stream output to a file (Rust)](/recipes/stream-output-to-a-file-rust)
- [Generate CSS from a theme (Rust)](/recipes/generate-css-from-a-theme-rust)
- [List languages and themes](/recipes/list-languages-and-themes)
- [Generate a theme from a Neovim colorscheme](/recipes/generate-theme-from-neovim-colorscheme)
- [Preload languages across runtimes](/languages)
- [Repeated highlighting (JavaScript / TypeScript)](/recipes/repeated-highlighting-javascript)
- [Browsers / CDN](/recipes/browser-cdn)
- [Local WASM bundle](/recipes/local-wasm-bundle)