1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Lots of updates

This commit is contained in:
Zhiyuan Zheng
2021-01-07 19:13:09 +01:00
parent dcb36a682d
commit 4b99813bb7
104 changed files with 2463 additions and 1619 deletions

View File

@ -3,11 +3,11 @@ const Base = 4
export const StyleConstants = {
Font: {
Size: { S: 14, M: 16, L: 18 },
LineHeight: { S: 18, M: 22, L: 26 },
LineHeight: { S: 20, M: 22, L: 26 },
Weight: { Bold: '600' as '600' }
},
FontStyle: {
S: { fontSize: 14, lineHeight: 18 },
S: { fontSize: 14, lineHeight: 20 },
M: { fontSize: 16, lineHeight: 22 },
L: { fontSize: 20, lineHeight: 26 }
},

View File

@ -12,7 +12,8 @@ export type ColorDefinitions =
| 'backgroundGradientEnd'
| 'backgroundOverlay'
| 'border'
| 'shimmer'
| 'shimmerDefault'
| 'shimmerHighlight'
const themeColors: {
[key in ColorDefinitions]: {
@ -65,17 +66,13 @@ const themeColors: {
light: 'rgba(18, 18, 18, 0.3)',
dark: 'rgba(255, 255, 255, 0.3)'
},
shimmer: {
light: [
'rgba(18, 18, 18, 0.05)',
'rgba(18, 18, 18, 0.15)',
'rgba(18, 18, 18, 0.05)'
],
dark: [
'rgba(250, 250, 250, 0.05)',
'rgba(250, 250, 250, 0.15)',
'rgba(250, 250, 250, 0.05)'
]
shimmerDefault: {
light: 'rgba(18, 18, 18, 0.05)',
dark: 'rgba(250, 250, 250, 0.05)'
},
shimmerHighlight: {
light: 'rgba(18, 18, 18, 0.15)',
dark: 'rgba(250, 250, 250, 0.15)'
}
}