Files
yanting/lib/theme/wise_tokens.dart
2026-06-05 11:12:55 +08:00

60 lines
1.8 KiB
Dart

import 'package:flutter/material.dart';
import 'yanting_tokens.dart';
final class WiseColors {
static const primary = YantingColors.foreground;
static const primarySoft = YantingColors.primaryForeground;
static const secondary = YantingColors.primary;
static const secondary200 = YantingColors.brandSoft;
static const accent = YantingColors.link;
static const canvas = YantingColors.background;
static const ink = YantingColors.foreground;
static const ink700 = YantingColors.secondaryForeground;
static const textSecondary = YantingColors.mutedForeground;
static const textTertiary = YantingColors.mutedForeground;
static const surface = YantingColors.card;
static const border = YantingColors.border;
static const positive = YantingColors.chart2;
static const warning = Color(0xFF9A6A00);
static const negative = YantingColors.destructive;
}
final class WiseSpacing {
static const x1 = YantingSpacing.x1;
static const x2 = YantingSpacing.x2;
static const x3 = YantingSpacing.cardGap;
static const x4 = YantingSpacing.screenX;
static const x5 = YantingSpacing.screenX;
static const x6 = YantingSpacing.x6;
static const x8 = YantingSpacing.x8;
static const x10 = YantingSpacing.x10;
}
final class WiseRadius {
static const sm = YantingRadius.sm;
static const md = YantingRadius.xl;
static const lg = 24.0;
static const pill = YantingRadius.pill;
}
final class WiseMotion {
static const short = Duration(milliseconds: 200);
static const base = Duration(milliseconds: 350);
static const curve = Cubic(0.8, 0.05, 0.2, 0.95);
}
final class WiseShadows {
static const card = <BoxShadow>[];
static const elevated = <BoxShadow>[];
}
const wiseFontStack = [
'DM Sans',
'PingFang SC',
'Microsoft YaHei',
'Helvetica Neue',
'Arial',
'sans-serif',
];