Modifyng CSS Styles
16/05/2025

Customizing CSS Styles in the Tessera Jekyll Theme
Welcome! This guide explains how to customize CSS styles when using the Tessera Jekyll theme.
Tessera is built for flexibility and makes it easy to override default styles without editing the core theme files. The recommended way to apply your own styles is by using the assets/css/custom.css
file.
Where to Add Custom Styles
Tessera includes a special file:
assets/css/custom.css
This file is automatically loaded by the theme, making it the best place to write your own CSS. It allows you to:
- Override existing styles
- Add new styles for custom components
- Tweak layout, colors, typography, spacing, and more
Since this file is separate from the main theme CSS, your custom styles won’t be overwritten when the theme updates and you only need to define the specific changes you need.
How to Use It
- Open (or create) the file at
assets/css/custom.css
in your site’s root directory. - Write your custom styles as needed. For example:
/* Change the size of the right pane */
#right-container {
width: 30%;
}
- Save the file and rebuild your site. Tessera will automatically include your custom styles in the final output.
Example: Changing Theme Colors
Here’s a simple example of how you might override the theme’s color scheme:
:root {
--bg: #0f2200;
--fg: #d1ffac;
}
By using custom.css
, you keep your changes clean, organized, and upgrade-safe. It’s the recommended method for styling your Tessera-based Jekyll site.
