fix: 绿色主题回滚为淡紫清新风

朝露绿翻车,换回柔和紫(#7C6FF7) + 淡紫白底(#FAF9FF)
This commit is contained in:
MingNian
2026-06-08 18:08:22 +08:00
parent 58af5f6d5b
commit 5f8964e03f

View File

@@ -1,32 +1,31 @@
import 'package:flutter/material.dart';
import 'package:shadcn_ui/shadcn_ui.dart';
/// 健康管家 —「朝露」Morning Dew
/// 深青绿 + 薄荷白,植物系清新风格
/// 健康管家 — 淡紫清新风
class AppTheme {
AppTheme._();
// ── 主色调:深青绿 ──
static const Color primary = Color(0xFF2D6A4F); // 深青绿
static const Color primaryLight = Color(0xFFD8F3DC); // 浅薄荷
static const Color primaryDark = Color(0xFF1B4332); // 深森林
static const Color primaryGlow = Color(0xFFB7E4C7); // 发光薄荷
// ── 主色调:柔和紫 ──
static const Color primary = Color(0xFF7C6FF7); // 柔紫
static const Color primaryLight = Color(0xFFEDEAFF); // 浅薰衣草
static const Color primaryDark = Color(0xFF4A3FBE); // 深
static const Color primaryGlow = Color(0xFFD9D4FF); // 发光
// ── 中性色 ──
static const Color bg = Color(0xFFF7FAF8); // 暖白底
static const Color bg = Color(0xFFFAF9FF); // 淡紫白
static const Color surface = Color(0xFFFFFFFF);
static const Color text = Color(0xFF1B281F); // 深绿
static const Color textSub = Color(0xFF6B7B6F); // 灰绿
static const Color textHint = Color(0xFFB7BFB9); // 浅灰绿
static const Color border = Color(0xFFE0E8E2);
static const Color divider = Color(0xFFF0F4F1);
static const Color text = Color(0xFF1E1B2E); //
static const Color textSub = Color(0xFF6E6B82); // 灰
static const Color textHint = Color(0xFFB5B2C8); // 浅灰
static const Color border = Color(0xFFE8E6F0);
static const Color divider = Color(0xFFF4F2FA);
// ── 语义色 ──
static const Color success = Color(0xFF40916C); // 翠绿
static const Color error = Color(0xFFE07A5F); // 陶土
static const Color warning = Color(0xFFF2CC8F); // 蜂蜜黄
static const Color accent = Color(0xFF81B29A); // 中青绿
static const Color info = Color(0xFF52B788); // 亮绿
static const Color success = Color(0xFF52B788); // 翠绿
static const Color error = Color(0xFFE85D75); //
static const Color warning = Color(0xFFF5B041); // 暖琥珀
static const Color accent = Color(0xFFA78BFA); // 中
static const Color info = Color(0xFF7C6FF7); // 柔紫
// ── 圆角 ──
static const double rXs = 6;
@@ -54,7 +53,7 @@ class AppTheme {
// ── 智能体配色 ──
static const Map<String, Color> agentColors = {
'default': Color(0xFFD8F3DC), // 薄荷
'default': Color(0xFFEDEAFF), // 淡紫
'consultation': Color(0xFFE0F0FF), // 淡天蓝
'health': Color(0xFFE8FFE8), // 淡翠绿
'diet': Color(0xFFFFF0E0), // 淡杏
@@ -75,7 +74,7 @@ class AppTheme {
brightness: Brightness.light,
),
scaffoldBackgroundColor: bg,
fontFamily: null, // 使用系统默认字体
fontFamily: null,
appBarTheme: const AppBarTheme(
backgroundColor: surface,
@@ -142,9 +141,9 @@ class AppTheme {
popoverForeground: text,
primary: primary,
primaryForeground: Colors.white,
secondary: Color(0xFFF0F4F1),
secondary: Color(0xFFF4F2FA),
secondaryForeground: text,
muted: Color(0xFFF0F4F1),
muted: Color(0xFFF4F2FA),
mutedForeground: textSub,
accent: accent,
accentForeground: Colors.white,
@@ -153,7 +152,7 @@ class AppTheme {
border: border,
input: border,
ring: primary,
selection: Color(0xFFB7E4C7),
selection: Color(0xFFD9D4FF),
),
radius: BorderRadius.circular(rMd),
);