如果您想使用调色板中不包含的特定颜色,且这些颜色会随深色/浅色模式切换而变化,您可以在同一组件的“颜色定义”选项卡中进行设置:
$bg-light: aqua; $bg-dark: blueviolet; :root { --category-id-4-background: #{dark-light-choose($bg-light, $bg-dark)}; }