feat(theme): numeric typography tokens + ringWarn color
This commit is contained in:
1 parent
fc38498a5b
commit
48918e7156
2 files changed
+85
No files matched your search
@@ -0,0 +1,20 @@
|
|||||||
|
export const colors = {
|
||||||
|
canvas: '#070605',
|
||||||
|
canvasSoft: '#0D0906',
|
||||||
|
surface: '#12100C',
|
||||||
|
surfaceRaised: '#1D170F',
|
||||||
|
surfaceHot: '#251A10',
|
||||||
|
text: '#F8EAD8',
|
||||||
|
textMuted: '#B9A98E',
|
||||||
|
textDim: '#746754',
|
||||||
|
line: '#392D1E',
|
||||||
|
action: '#E23B2E',
|
||||||
|
warning: '#FFB43D',
|
||||||
|
success: '#34C77B',
|
||||||
|
stopSurface: '#FFF0DC',
|
||||||
|
stopText: '#120B07',
|
||||||
|
ringWarn: 'rgba(226, 59, 46, 0.55)',
|
||||||
|
black: '#030302',
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export type FightRateColor = keyof typeof colors;
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
export const typography = {
|
||||||
|
display: {
|
||||||
|
fontSize: 82,
|
||||||
|
lineHeight: 74,
|
||||||
|
fontWeight: '900' as const,
|
||||||
|
letterSpacing: -7,
|
||||||
|
},
|
||||||
|
displaySmall: {
|
||||||
|
fontSize: 48,
|
||||||
|
lineHeight: 46,
|
||||||
|
fontWeight: '900' as const,
|
||||||
|
letterSpacing: -3,
|
||||||
|
},
|
||||||
|
displayNumeric: {
|
||||||
|
fontFamily: 'JetBrainsMono-ExtraBold',
|
||||||
|
fontVariant: ['tabular-nums'] as const,
|
||||||
|
fontSize: 110,
|
||||||
|
lineHeight: 100,
|
||||||
|
fontWeight: '900' as const,
|
||||||
|
letterSpacing: -7,
|
||||||
|
},
|
||||||
|
displaySmallNumeric: {
|
||||||
|
fontFamily: 'JetBrainsMono-ExtraBold',
|
||||||
|
fontVariant: ['tabular-nums'] as const,
|
||||||
|
fontSize: 56,
|
||||||
|
lineHeight: 54,
|
||||||
|
fontWeight: '900' as const,
|
||||||
|
letterSpacing: -3,
|
||||||
|
},
|
||||||
|
metricNumeric: {
|
||||||
|
fontFamily: 'JetBrainsMono-Bold',
|
||||||
|
fontVariant: ['tabular-nums'] as const,
|
||||||
|
fontSize: 28,
|
||||||
|
lineHeight: 30,
|
||||||
|
fontWeight: '800' as const,
|
||||||
|
letterSpacing: -1.2,
|
||||||
|
},
|
||||||
|
detailNumeric: {
|
||||||
|
fontFamily: 'JetBrainsMono-Bold',
|
||||||
|
fontVariant: ['tabular-nums'] as const,
|
||||||
|
fontSize: 18,
|
||||||
|
lineHeight: 22,
|
||||||
|
fontWeight: '800' as const,
|
||||||
|
letterSpacing: -0.8,
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
fontSize: 10,
|
||||||
|
lineHeight: 13,
|
||||||
|
fontWeight: '900' as const,
|
||||||
|
letterSpacing: 1.4,
|
||||||
|
textTransform: 'uppercase' as const,
|
||||||
|
},
|
||||||
|
body: {
|
||||||
|
fontSize: 15,
|
||||||
|
lineHeight: 22,
|
||||||
|
fontWeight: '500' as const,
|
||||||
|
},
|
||||||
|
button: {
|
||||||
|
fontSize: 12,
|
||||||
|
lineHeight: 16,
|
||||||
|
fontWeight: '900' as const,
|
||||||
|
letterSpacing: 0.8,
|
||||||
|
textTransform: 'uppercase' as const,
|
||||||
|
},
|
||||||
|
} as const;
|
||||||
Reference in new issue
Block a user