css-colors

有关如何为 CSS 规则添加新颜色的说明

📖 中文导读:有关如何为 CSS 规则添加新颜色的说明 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: css-colors description: Instructions on how to add new colors for CSS rules

When adding new colors for CSS rules, follow these guidelines to ensure consistency and maintainability:

  • If possible use Material UI color palette which is derived from MUI theme in frontend/src/theme/theme.ts
  • Do not use direct color codes in component code but instead refer to the theme colors
  • If a new color is needed, add it to the theme file's customColors section