mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-04-24 12:55:55 +08:00
refactor: remove leading as its not a valid CSS prop
This commit is contained in:
@@ -19,50 +19,42 @@ const openSauceMetrics = {
|
||||
const h1 = {
|
||||
fontMetrics: openSauceMetrics,
|
||||
fontSize: 24,
|
||||
leading: 32,
|
||||
};
|
||||
|
||||
// B2
|
||||
const h2 = {
|
||||
fontMetrics: openSauceMetrics,
|
||||
fontSize: 18,
|
||||
leading: 28,
|
||||
};
|
||||
// B3
|
||||
const h3 = {
|
||||
fontMetrics: openSauceMetrics,
|
||||
fontSize: 16,
|
||||
leading: 24,
|
||||
};
|
||||
// C1
|
||||
const h4 = {
|
||||
fontMetrics: openSauceMetrics,
|
||||
fontSize: 14,
|
||||
leading: 20,
|
||||
};
|
||||
// C2
|
||||
const h5 = {
|
||||
fontMetrics: openSauceMetrics,
|
||||
fontSize: 12,
|
||||
leading: 16,
|
||||
};
|
||||
|
||||
const c1 = {
|
||||
fontMetrics: interMetrics,
|
||||
fontSize: 14,
|
||||
leading: 20,
|
||||
};
|
||||
|
||||
const c2 = {
|
||||
fontMetrics: interMetrics,
|
||||
fontSize: 12,
|
||||
leading: 16,
|
||||
};
|
||||
|
||||
const c3 = {
|
||||
fontMetrics: interMetrics,
|
||||
fontSize: 10,
|
||||
leading: 16,
|
||||
};
|
||||
|
||||
const captionStyles = (variant?: 'c1' | 'c2' | 'c3') => {
|
||||
|
||||
Reference in New Issue
Block a user