web/apps/lq_label/src/views/annotation-view/annotation-view.module.scss - 添加主题感知的 header 样式web/apps/lq_label/src/views/editor-test/editor-test.module.scss - 添加主题感知的 header 样式web/apps/lq_label/src/views/project-list-view/project-list-view.module.scss - 优化 badgeInactive 样式web/apps/lq_label/src/views/annotation-view/annotation-view.tsx - 使用 CSS 模块类替代 Tailwind 类web/apps/lq_label/src/views/editor-test/editor-test.tsx - 使用 CSS 模块类替代 Tailwind 类之前:使用 Tailwind 类
<div className="flex items-center justify-between p-comfortable border-b border-neutral-border bg-primary-background">
现在:使用 CSS 模块和主题变量
<div className={styles.header}>
.header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 24px;
border-bottom: 1px solid var(--theme-border);
background: var(--theme-background);
}
之前:对比度不够
.badgeInactive {
background: var(--theme-background-secondary);
color: var(--theme-paragraph-subtle);
}
现在:更好的对比度
.badgeInactive {
background: var(--theme-background-tertiary);
color: var(--theme-paragraph);
border: 1px solid var(--theme-border);
}
--theme-background - 主背景色--theme-border - 边框颜色--theme-headline - 标题文本色--theme-paragraph - 正文文本色--theme-paragraph-subtle - 次要文本色--theme-background-tertiary - 第三级背景色所有修改都遵循主题系统,确保在三种主题模式(白色、深色、护眼)下都有良好的视觉效果。