CSS 变量

Hugo 搜索模块的 CSS 变量列表。

你可以通过以下 CSS 变量轻松地调整搜索 UI 以适应你的主题和深色模式。

1:root {
2  --search-primary: skyblue;
3}
NameDescription
--search-primaryPrimary color.
--search-container-bgContainer background color.
--search-bgBackground color.
--search-colorPrimary text color.
--search-color-secondarySecondary text color.
--search-result-bgResult background color.
--search-result-bg-activeResult background color on active.
--search-result-colorPrimary result text color.
--search-result-color-activePrimary result text color on active.
--search-result-color-secondarySecondary result text color.
--search-result-color-secondary-activeSecondary result text color on active.
--search-result-highlight-bgThe highlight result background color, default to inherit.
--search-result-highlight-colorThe highlight result color, default to inherit.
--search-border-colorBorder color.