Skip to content

Simplify theme color customisation#2682

Closed
KittyChiu wants to merge 3 commits intocotes2020:masterfrom
KittyChiu:master
Closed

Simplify theme color customisation#2682
KittyChiu wants to merge 3 commits intocotes2020:masterfrom
KittyChiu:master

Conversation

@KittyChiu
Copy link
Copy Markdown

@KittyChiu KittyChiu commented Mar 17, 2026

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (refactoring and improving code)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Description

Allow customisation to the theme colors with simple _config.yml settings, rather than editing the css.

Additional context

#1354 (pls reopen issue)

How to test

  1. Update _config.yml and update values under theme_colors. For example
theme_colors:
  light:
    forecolor: "#444400" # e.g. "#34343c"
    backcolor: "#ffffff" # e.g. "#ffffff"
  dark:
    forecolor: "#ffffff" # e.g. "#afb0b1"
    backcolor: "#330033" # e.g. "#1b1b1e"

@KittyChiu KittyChiu changed the title Simple theme color customisation Simplify theme color customisation Mar 17, 2026
- Add foreground/background color configuration via CSS color-mix
- Clarify that theme colors must be fully opaque in config comments
[WIP] Update theme colors based on forecolor and backcolor variables
Copy link
Copy Markdown
Owner

@cotes2020 cotes2020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi there! Just wanted to check—are you looking to just update the colors for those two <meta> tags? Or is the plan to support an arbitrary number of custom colors via _config.yml?

@KittyChiu
Copy link
Copy Markdown
Author

The intent is to support custom colour via _config.yml

@cotes2020
Copy link
Copy Markdown
Owner

Automatically calculating the remaining colors results in a poor UI experience. I recommend injecting CSS to modify the existing colors instead of relying on that method.

@cotes2020 cotes2020 closed this Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants