snippet-book is a Jekyll blog theme based on jekyll-theme-console with a few changes:
- Catpucchin theme defaults for light and dark mode
- User's preferred style (light/dark) is used by default
In addition to jekyll's default configuration options, you can provide:
style_lightandstyle_darkto specify which predefined style (colors) should be used for light and dar modes
style_light: "latte" # available options: latte, frappe, macchiato, mocha
style_dark: "macchiato" # available options: latte, frappe, macchiato, mochaBesides the predefined front matter variables from jekyll this theme also supports following variables:
titleto set a title for the pagelangto specify the language, defaults to 'en'robotsto control the robot meta tag (details) - this may be useful for example to setNOINDEXto tag pages
If you want to customize this theme, follow this steps:
- Fork this repository (you can use the fork as your own theme or directly as your website)
- Create or modify files in
_layoutsdirectory for html-based changes - Create or modify files in
_sassunderassetsfor css-based changes- You can change things which are used in light and dark theme (like font-size) in
_sass/base.scss. You'll find style variables at the top. - Catppuccin colours are under
assets/_sass/colours/_<name-of-theme>.scss. These varaibles are then used to specify theme-specific colours in_sass/theme/_theme-<name-of-theme>.scss.
- You can change things which are used in light and dark theme (like font-size) in
To set up your environment to develop this theme, run bundle install.
Your theme is setup just like a normal Jekyll site! To test your theme, run bundle exec jekyll serve and open your browser at http://localhost:4000. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
The theme is available as open source under the terms of the MIT License.
PS: If you liked the theme, do star ⭐ it! Thanks!




