6238b86dcb
- 登录/注册(login.html/register.html 1:1):两栏卡片+品牌渐变面板+主题小衣服 pill(onSurface 变体)+记住我(记录并预填最近账号)+原型式 toast 校验; 登录 fidelity 1.4–2.1% 三主题全绿;注册暂不入闸(少 门店编号/兑换券 字段, 已记 CONTRACT,screens.mjs 留存根) - ds 原子补齐:DsToast(.toast 单例)/DsCheck(.check/.agree)/DsButton lg 档/ DsSelect 替换全部旧 DropdownButton/DsField label 在上/DsInput 后缀与密码形态 - 全屏统一:对话框按钮全 DsButton、盒式输入主题钉死(visualDensity.standard、 h38、InputDecorationTheme 渗漏修复)、图标全 lucide、JetBrains Mono 三端同源、 BrandMark 真相源 logo、只读模式写操作全量守卫(WriteGuard+DsToast) - 出入库列表:版式对齐原型(卡片对齐+搜索框居中)、KPI 近30天滚动、结清后 失效财务应收应付表;商品编辑抽屉介绍库改搜索下拉、图片双击全屏预览 - 删除旧 UI 死代码:DataTableCard/FormDialog/PageScaffold/SearchChip/ SelectProductDialog/tabStateProvider - golden/fidelity:stock-in/out 补注册(9%)、login 入册(8%)、goldens 全量重打; 修复 pubspec flutter_web_plugins 非法声明(CI pub get 阻断) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJ1g8XV1YhhmHRzhwWEW7o
166 lines
4.7 KiB
Dart
166 lines
4.7 KiB
Dart
// GENERATED by tool/gen_tokens.mjs — DO NOT EDIT.
|
|
// 源:lib/core/theme/token_source/tokens.css(从原型同步)。改色请改源后重跑脚本。
|
|
import 'package:flutter/material.dart';
|
|
import 'app_tokens.dart';
|
|
|
|
const AppTokens kTokensA = AppTokens(
|
|
page: Color(0xFFE7EBF1),
|
|
bg: Color(0xFFF5F7FA),
|
|
surface: Color(0xFFFFFFFF),
|
|
border: Color(0xFFDCE2EB),
|
|
borderSubtle: Color(0xFFECEFF4),
|
|
text: Color(0xFF232934),
|
|
heading: Color(0xFF1B2430),
|
|
title: Color(0xFF1B2430),
|
|
muted: Color(0xFF6E7888),
|
|
faint: Color(0xFF99A3B3),
|
|
primary: Color(0xFF2563AC),
|
|
primaryDark: Color(0xFF154072),
|
|
onPrimary: Color(0xFFFFFFFF),
|
|
brand400: Color(0xFF4F86C6),
|
|
brand50: Color(0xFFEEF4FB),
|
|
accent: Color(0xFF8B2331),
|
|
success: Color(0xFF2E8B57),
|
|
danger: Color(0xFFD14343),
|
|
warn: Color(0xFFE08E00),
|
|
infoSoft: Color(0xFFEEF4FB),
|
|
okSoft: Color(0xFFE8F5EE),
|
|
accentSoft: Color(0xFFFAEEF0),
|
|
successBg: Color(0xFFE8F5EE),
|
|
dangerBg: Color(0xFFFDECEC),
|
|
warnBg: Color(0xFFFFF4DB),
|
|
thBg: Color(0xFFF7F9FC),
|
|
rowHover: Color(0xFFEEF4FB),
|
|
shadow: Color(0x33142846),
|
|
topBg: Color(0xFF2563AC),
|
|
topFg: Color(0xFFFFFFFF),
|
|
topFaint: Color(0xb8FFFFFF),
|
|
topBorder: Color(0xFF1E5594),
|
|
topControl: Color(0x29FFFFFF),
|
|
topMarkBg: Color(0x38FFFFFF),
|
|
topMarkFg: Color(0xFFFFFFFF),
|
|
sideBg: Color(0xFF163A6C),
|
|
sideFg: Color(0xFFC4D6ED),
|
|
sideMuted: Color(0xFF7C9FCB),
|
|
sideActiveBg: Color(0xFF2C6BB3),
|
|
sideActiveFg: Color(0xFFFFFFFF),
|
|
sideBorder: Color(0xFF1E4A86),
|
|
sideHover: Color(0xFF1C4680),
|
|
menuUserBg: Color(0xFF3C79C0),
|
|
menuUserFg: Color(0xFFFFFFFF),
|
|
menuUserHover: Color(0xFF4D88CC),
|
|
toastBg: Color(0xFF1F2330),
|
|
isDark: false,
|
|
);
|
|
|
|
const AppTokens kTokensB = AppTokens(
|
|
page: Color(0xFF0B0B10),
|
|
bg: Color(0xFF15151C),
|
|
surface: Color(0xFF1E1E27),
|
|
border: Color(0xFF2B2B37),
|
|
borderSubtle: Color(0xFF26262F),
|
|
text: Color(0xFFE8E8EE),
|
|
heading: Color(0xFFF6F6F9),
|
|
title: Color(0xFFF6F6F9),
|
|
muted: Color(0xFF9A9AA8),
|
|
faint: Color(0xFF6E6E7E),
|
|
primary: Color(0xFFF5A300),
|
|
primaryDark: Color(0xFFD98C00),
|
|
onPrimary: Color(0xFF1A1408),
|
|
brand400: Color(0xFFE0A23A),
|
|
brand50: Color(0xFF2A2212),
|
|
accent: Color(0xFFF87171),
|
|
success: Color(0xFF34D399),
|
|
danger: Color(0xFFF87171),
|
|
warn: Color(0xFFFBBF24),
|
|
infoSoft: Color(0xFF1F2530),
|
|
okSoft: Color(0xFF16312A),
|
|
accentSoft: Color(0xFF33181A),
|
|
successBg: Color(0xFF16312A),
|
|
dangerBg: Color(0xFF3A1A1C),
|
|
warnBg: Color(0xFF332811),
|
|
thBg: Color(0xFF1A1A22),
|
|
rowHover: Color(0xFF24242F),
|
|
shadow: Color(0x8c000000),
|
|
topBg: Color(0xFF1A1A22),
|
|
topFg: Color(0xFFE8E8EE),
|
|
topFaint: Color(0xFF6E6E7E),
|
|
topBorder: Color(0xFF2B2B37),
|
|
topControl: Color(0xFF15151C),
|
|
topMarkBg: Color(0xFFF5A300),
|
|
topMarkFg: Color(0xFF1A1408),
|
|
sideBg: Color(0xFF121219),
|
|
sideFg: Color(0xFF9A9AA8),
|
|
sideMuted: Color(0xFF5E5E6C),
|
|
sideActiveBg: Color(0xFF2A2212),
|
|
sideActiveFg: Color(0xFFF5A300),
|
|
sideBorder: Color(0xFF24242E),
|
|
sideHover: Color(0xFF1E1E27),
|
|
menuUserBg: Color(0xFF3A3120),
|
|
menuUserFg: Color(0xFFF0E7D6),
|
|
menuUserHover: Color(0xFF473B27),
|
|
toastBg: Color(0xFF1F2330),
|
|
isDark: true,
|
|
);
|
|
|
|
const AppTokens kTokensC = AppTokens(
|
|
page: Color(0xFFE9DECB),
|
|
bg: Color(0xFFFAF5EC),
|
|
surface: Color(0xFFFFFDF8),
|
|
border: Color(0xFFEADDC9),
|
|
borderSubtle: Color(0xFFF1E8D8),
|
|
text: Color(0xFF33271F),
|
|
heading: Color(0xFF241A14),
|
|
title: Color(0xFF9E3B30),
|
|
muted: Color(0xFF917A64),
|
|
faint: Color(0xFFB9A488),
|
|
primary: Color(0xFF7C1F2C),
|
|
primaryDark: Color(0xFF5F1621),
|
|
onPrimary: Color(0xFFF7E9D6),
|
|
brand400: Color(0xFFB5862F),
|
|
brand50: Color(0xFFF3E7D2),
|
|
accent: Color(0xFFA23522),
|
|
success: Color(0xFF2E6B43),
|
|
danger: Color(0xFFB23A3A),
|
|
warn: Color(0xFFB07A12),
|
|
infoSoft: Color(0xFFF1E6D2),
|
|
okSoft: Color(0xFFE7F0E6),
|
|
accentSoft: Color(0xFFF3E0D5),
|
|
successBg: Color(0xFFE7F0E6),
|
|
dangerBg: Color(0xFFF6E4DD),
|
|
warnBg: Color(0xFFFBEFCF),
|
|
thBg: Color(0xFFF6EEDF),
|
|
rowHover: Color(0xFFF5ECDB),
|
|
shadow: Color(0x384A1420),
|
|
topBg: Color(0xFF7C1F2C),
|
|
topFg: Color(0xFFF7E9D6),
|
|
topFaint: Color(0xb8F7E9D6),
|
|
topBorder: Color(0xFF671E2C),
|
|
topControl: Color(0x24FFFFFF),
|
|
topMarkBg: Color(0x33FFFFFF),
|
|
topMarkFg: Color(0xFFF7E9D6),
|
|
sideBg: Color(0xFF4A1420),
|
|
sideFg: Color(0xFFE0C9B2),
|
|
sideMuted: Color(0xFFB58E76),
|
|
sideActiveBg: Color(0xFF671E2C),
|
|
sideActiveFg: Color(0xFFF7E9D6),
|
|
sideBorder: Color(0xFF5A2330),
|
|
sideHover: Color(0xFF5A1B28),
|
|
menuUserBg: Color(0xFF7E2B3B),
|
|
menuUserFg: Color(0xFFF7E9D6),
|
|
menuUserHover: Color(0xFF8E3344),
|
|
toastBg: Color(0xFF1F2330),
|
|
isDark: false,
|
|
);
|
|
|
|
AppTokens appTokensOf(String key) {
|
|
switch (key) {
|
|
case 'b':
|
|
return kTokensB;
|
|
case 'c':
|
|
return kTokensC;
|
|
default:
|
|
return kTokensA;
|
|
}
|
|
}
|