{"id":30040038,"url":"https://github.com/catppuccin/mdbook","last_synced_at":"2026-01-17T17:51:06.272Z","repository":{"id":49306271,"uuid":"517220423","full_name":"catppuccin/mdBook","owner":"catppuccin","description":"🎊 Soothing pastel theme for mdBook","archived":false,"fork":false,"pushed_at":"2025-07-09T13:37:13.000Z","size":3515,"stargazers_count":200,"open_issues_count":6,"forks_count":11,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-25T20:06:50.967Z","etag":null,"topics":["catppuccin","hacktoberfest","markdown","mdbook","mdbook-preprocessor","mdbook-theme","theme"],"latest_commit_sha":null,"homepage":"http://mdbook.catppuccin.com","language":"Handlebars","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catppuccin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"catppuccin","open_collective":"catppuccin"}},"created_at":"2022-07-24T03:50:29.000Z","updated_at":"2025-07-16T15:15:41.000Z","dependencies_parsed_at":"2024-01-13T16:58:23.741Z","dependency_job_id":"140f8283-e559-4b41-8e32-fce4bcb36f15","html_url":"https://github.com/catppuccin/mdBook","commit_stats":{"total_commits":194,"total_committers":11,"mean_commits":"17.636363636363637","dds":0.3041237113402062,"last_synced_commit":"9b436bf09bec634bf797a0b363249c718b6fa332"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/catppuccin/mdBook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catppuccin%2FmdBook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catppuccin%2FmdBook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catppuccin%2FmdBook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catppuccin%2FmdBook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catppuccin","download_url":"https://codeload.github.com/catppuccin/mdBook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catppuccin%2FmdBook/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269185774,"owners_count":24374634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["catppuccin","hacktoberfest","markdown","mdbook","mdbook-preprocessor","mdbook-theme","theme"],"created_at":"2025-08-07T01:55:51.162Z","updated_at":"2026-01-17T17:51:05.947Z","avatar_url":"https://github.com/catppuccin.png","language":"Handlebars","funding_links":["https://github.com/sponsors/catppuccin","https://opencollective.com/catppuccin"],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003e\n\t\u003cimg src=\"https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/logos/exports/1544x1544_circle.png\" width=\"100\" alt=\"Logo\"/\u003e\u003cbr/\u003e\n\t\u003cimg src=\"https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png\" height=\"30\" width=\"0px\"/\u003e\n\tCatppuccin for \u003ca href=\"https://rust-lang.github.io/mdBook/\"\u003emdBook\u003c/a\u003e\n\t\u003cimg src=\"https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png\" height=\"30\" width=\"0px\"/\u003e\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/catppuccin/mdBook/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/catppuccin/mdBook?colorA=363a4f\u0026colorB=b7bdf8\u0026style=for-the-badge\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/catppuccin/mdBook/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/catppuccin/mdBook?colorA=363a4f\u0026colorB=f5a97f\u0026style=for-the-badge\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/catppuccin/mdBook/contributors\"\u003e\u003cimg src=\"https://img.shields.io/github/contributors/catppuccin/mdBook?colorA=363a4f\u0026colorB=a6da95\u0026style=for-the-badge\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://crates.io/crates/mdbook-catppuccin\"\u003e\u003cimg src=\"https://img.shields.io/crates/v/mdbook-catppuccin?colorA=363a4f\u0026colorB=ee99a0\u0026style=for-the-badge\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"assets/catwalk.webp\"/\u003e\n\u003c/p\u003e\n\n## Previews\n\n\u003cdetails\u003e\n\u003csummary\u003e🌻 Latte\u003c/summary\u003e\n\u003cimg src=\"assets/latte.webp\"/\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e🪴 Frappé\u003c/summary\u003e\n\u003cimg src=\"assets/frappe.webp\"/\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e🌺 Macchiato\u003c/summary\u003e\n\u003cimg src=\"assets/macchiato.webp\"/\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e🌿 Mocha\u003c/summary\u003e\n\u003cimg src=\"assets/mocha.webp\"/\u003e\n\u003c/details\u003e\n\n## Usage\n\n1. Initialise your mdBook with the theme files:\n\n   ```shell\n   mdbook init --theme \u003cname\u003e\n   ```\n\n2. Enter the book directory and remove all theme files except `index.hbs`:\n\n   ```shell\n   cd \u003cname\u003e\n   # Remove all files except index.hbs\n   find ./theme -type f ! -name 'index.hbs' -delete\n   # Remove the left over empty directories\n   rm -d fonts css\n   ```\n\n3. Download the [catppuccin.css](https://github.com/catppuccin/mdBook/releases/latest/download/catppuccin.css)\n   file from the [latest GitHub release](https://github.com/catppuccin/mdBook/releases/latest) to the `theme`\n   directory.\n\n4. Update `additional-css` key within the `book.toml` as shown below\n\n   ```diff\n   [output.html]\n   -additional-css = []\n   +additional-css = [\"./theme/catppuccin.css\"]\n   ```\n\n5. Edit the `index.hbs` file to include the Catppuccin flavors:\n\n   ```diff\n   - \u003cli role=\"none\"\u003e\u003cbutton role=\"menuitem\" class=\"theme\" id=\"light\"\u003eLight\u003c/button\u003e\u003c/li\u003e\n   - \u003cli role=\"none\"\u003e\u003cbutton role=\"menuitem\" class=\"theme\" id=\"rust\"\u003eRust\u003c/button\u003e\u003c/li\u003e\n   - \u003cli role=\"none\"\u003e\u003cbutton role=\"menuitem\" class=\"theme\" id=\"coal\"\u003eCoal\u003c/button\u003e\u003c/li\u003e\n   - \u003cli role=\"none\"\u003e\u003cbutton role=\"menuitem\" class=\"theme\" id=\"navy\"\u003eNavy\u003c/button\u003e\u003c/li\u003e\n   - \u003cli role=\"none\"\u003e\u003cbutton role=\"menuitem\" class=\"theme\" id=\"ayu\"\u003eAyu\u003c/button\u003e\u003c/li\u003e\n   + \u003cli role=\"none\"\u003e\u003cbutton role=\"menuitem\" class=\"theme\" id=\"latte\"\u003eLatte\u003c/button\u003e\u003c/li\u003e\n   + \u003cli role=\"none\"\u003e\u003cbutton role=\"menuitem\" class=\"theme\" id=\"frappe\"\u003eFrappé\u003c/button\u003e\u003c/li\u003e\n   + \u003cli role=\"none\"\u003e\u003cbutton role=\"menuitem\" class=\"theme\" id=\"macchiato\"\u003eMacchiato\u003c/button\u003e\u003c/li\u003e\n   + \u003cli role=\"none\"\u003e\u003cbutton role=\"menuitem\" class=\"theme\" id=\"mocha\"\u003eMocha\u003c/button\u003e\u003c/li\u003e\n   ```\n\n   Additionally, you can use\n   [default-theme](https://rust-lang.github.io/mdBook/format/configuration/renderers.html?highlight=default-theme#html-renderer-options)\n   and\n   [preferred-dark-theme](https://rust-lang.github.io/mdBook/format/configuration/renderers.html?highlight=preferred-dark-theme#html-renderer-options)\n   keys for setting default light/dark mode themes in your `book.toml`.\n\n   E.g. To set the default theme to `latte` and default dark mode to `mocha`:\n\n   ```diff\n   [output.html]\n   + default-theme = \"latte\"\n   + preferred-dark-theme = \"mocha\"\n   ```\n\n6. Build using `mdbook build` and enjoy your new Catppuccin flavors!\n\n## Development\n\n1. Clone the repository and navigate to the repository root.\n\n   ```shell\n   git clone https://github.com/catppuccin/mdbook\n   cd mdbook\n   ```\n\n2. Generate the CSS files:\n\n   ```shell\n   pnpm install\n   pnpm run build\n   ```\n\n## 💝 Thanks to\n\n- [Hamothy](https://github.com/sgoudham)\n- [winston](https://github.com/nekowinston)\n\n\u0026#160;\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/footers/gray0_ctp_on_line.svg?sanitize=true\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\tCopyright \u0026copy; 2021-present \u003ca href=\"https://github.com/catppuccin\" target=\"_blank\"\u003eCatppuccin Org\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/catppuccin/catppuccin/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/static/v1.svg?style=for-the-badge\u0026label=License\u0026message=MIT\u0026logoColor=d9e0ee\u0026colorA=363a4f\u0026colorB=b7bdf8\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatppuccin%2Fmdbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatppuccin%2Fmdbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatppuccin%2Fmdbook/lists"}