fix:按html的假数据demo
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'yanting_tokens.dart';
|
||||
|
||||
abstract final class YantingText {
|
||||
static const fontFamily = 'DM Sans';
|
||||
static const fontFallback = [
|
||||
'PingFang SC',
|
||||
'Microsoft YaHei',
|
||||
'Helvetica Neue',
|
||||
'Arial',
|
||||
'sans-serif',
|
||||
];
|
||||
|
||||
static const appTitle = TextStyle(
|
||||
color: YantingColors.foreground,
|
||||
fontFamily: fontFamily,
|
||||
fontFamilyFallback: fontFallback,
|
||||
fontSize: 34,
|
||||
height: 1.15,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.w800,
|
||||
);
|
||||
|
||||
static const sectionTitle = TextStyle(
|
||||
color: YantingColors.foreground,
|
||||
fontFamily: fontFamily,
|
||||
fontFamilyFallback: fontFallback,
|
||||
fontSize: 22,
|
||||
height: 1.2,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.w700,
|
||||
);
|
||||
|
||||
static const cardTitle = TextStyle(
|
||||
color: YantingColors.foreground,
|
||||
fontFamily: fontFamily,
|
||||
fontFamilyFallback: fontFallback,
|
||||
fontSize: 19,
|
||||
height: 1.4,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.w600,
|
||||
);
|
||||
|
||||
static const listTitle = TextStyle(
|
||||
color: YantingColors.foreground,
|
||||
fontFamily: fontFamily,
|
||||
fontFamilyFallback: fontFallback,
|
||||
fontSize: 16.5,
|
||||
height: 1.45,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.w600,
|
||||
);
|
||||
|
||||
static const body = TextStyle(
|
||||
color: YantingColors.foreground,
|
||||
fontFamily: fontFamily,
|
||||
fontFamilyFallback: fontFallback,
|
||||
fontSize: 15,
|
||||
height: 1.6,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.w400,
|
||||
);
|
||||
|
||||
static const sub = TextStyle(
|
||||
color: YantingColors.mutedForeground,
|
||||
fontFamily: fontFamily,
|
||||
fontFamilyFallback: fontFallback,
|
||||
fontSize: 15,
|
||||
height: 1.45,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.w400,
|
||||
);
|
||||
|
||||
static const meta = TextStyle(
|
||||
color: YantingColors.mutedForeground,
|
||||
fontFamily: fontFamily,
|
||||
fontFamilyFallback: fontFallback,
|
||||
fontSize: 13,
|
||||
height: 1.5,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.w400,
|
||||
fontFeatures: YantingTypographyFeatures.tabularNums,
|
||||
);
|
||||
|
||||
static const chip = TextStyle(
|
||||
color: YantingColors.secondaryForeground,
|
||||
fontFamily: fontFamily,
|
||||
fontFamilyFallback: fontFallback,
|
||||
fontSize: 15,
|
||||
height: 1.2,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
|
||||
static const badge = TextStyle(
|
||||
color: YantingColors.mutedForeground,
|
||||
fontFamily: fontFamily,
|
||||
fontFamilyFallback: fontFallback,
|
||||
fontSize: 12,
|
||||
height: 1.5,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.w500,
|
||||
fontFeatures: YantingTypographyFeatures.tabularNums,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user