58 lines
1.4 KiB
Dart
58 lines
1.4 KiB
Dart
import 'package:flutter/widgets.dart';
|
|
|
|
/// 字号刻度常量。
|
|
/// 颜色在用处通过 ShadTheme.of(context).colorScheme 取,此处只定义尺寸/粗细/行高。
|
|
abstract class AppText {
|
|
/// App 大标题: 34px / w800 / lh 1.15
|
|
static const TextStyle appTitle = TextStyle(
|
|
fontSize: 34,
|
|
fontWeight: FontWeight.w800,
|
|
height: 1.15,
|
|
);
|
|
|
|
/// 区块标题: 22px / w700
|
|
static const TextStyle sectionTitle = TextStyle(
|
|
fontSize: 22,
|
|
fontWeight: FontWeight.w700,
|
|
);
|
|
|
|
/// 卡片标题: 19px / w620 / lh 1.4
|
|
static const TextStyle cardTitle = TextStyle(
|
|
fontSize: 19,
|
|
fontWeight: FontWeight.w600, // 最接近 w620
|
|
height: 1.4,
|
|
);
|
|
|
|
/// 列表标题: 16.5px / w600
|
|
static const TextStyle listTitle = TextStyle(
|
|
fontSize: 16.5,
|
|
fontWeight: FontWeight.w600,
|
|
);
|
|
|
|
/// 正文: 15px / w400 / lh 1.6
|
|
static const TextStyle body = TextStyle(
|
|
fontSize: 15,
|
|
fontWeight: FontWeight.w400,
|
|
height: 1.6,
|
|
);
|
|
|
|
/// meta 信息: 13px / w400
|
|
static const TextStyle meta = TextStyle(
|
|
fontSize: 13,
|
|
fontWeight: FontWeight.w400,
|
|
);
|
|
|
|
/// chip 筛选: 15px / w500
|
|
static const TextStyle chip = TextStyle(
|
|
fontSize: 15,
|
|
fontWeight: FontWeight.w500,
|
|
);
|
|
|
|
/// badge 标签: 12px / w500
|
|
static const TextStyle badge = TextStyle(
|
|
fontSize: 12,
|
|
fontWeight: FontWeight.w500,
|
|
height: 1.5,
|
|
);
|
|
}
|