11.7. 为 Developer Hub 实例自定义页面主题标头
您可以通过修改 app-config.yaml 文件的 branding.theme 部分来自定义 Developer Hub 实例中 light 和 dark 的标头颜色。您还可以为其他 Developer Hub 页面自定义页面标头,如 Home、Catalog 和 API 页面。
app:
branding:
theme:
light:
palette: {}
pageTheme:
default:
backgroundColor: "<default_light_background_color>"
fontColor: "<default_light_font_color>"
shape: none
apis:
backgroundColor: "<apis_light_background_color>"
fontColor: "<apis_light_font_color>"
shape: none
dark:
palette: {}
pageTheme:
default:
backgroundColor: "<default_dark_background_color>"
fontColor: "<default_dark_font_color>"
shape: none
# ...
light-
me 模式,如
light或dark default-
主题配置的默认页面的
yaml标头 backgroundColor-
页面标头背景的颜色,如
#ffffff或white fontColor-
页面标头中文本颜色,如
#000000或black 形成-
页面标头中的模式,例如
wave、round或noneapis::特定页面的yaml标头,如apis、home