|
| 1 | +/* |
| 2 | + * Infomaniak Core - Android |
| 3 | + * Copyright (C) 2025 Infomaniak Network SA |
| 4 | + * |
| 5 | + * This program is free software: you can redistribute it and/or modify |
| 6 | + * it under the terms of the GNU General Public License as published by |
| 7 | + * the Free Software Foundation, either version 3 of the License, or |
| 8 | + * (at your option) any later version. |
| 9 | + * |
| 10 | + * This program is distributed in the hope that it will be useful, |
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | + * GNU General Public License for more details. |
| 14 | + * |
| 15 | + * You should have received a copy of the GNU General Public License |
| 16 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | + */ |
| 18 | +package com.infomaniak.core.ui.theme |
| 19 | + |
| 20 | +import androidx.compose.ui.text.TextStyle |
| 21 | +import androidx.compose.ui.text.font.FontFamily |
| 22 | +import androidx.compose.ui.text.font.FontWeight |
| 23 | +import androidx.compose.ui.unit.sp |
| 24 | + |
| 25 | +object Typography { |
| 26 | + |
| 27 | + val h1 = TextStyle( |
| 28 | + fontFamily = FontFamily.Default, |
| 29 | + fontWeight = FontWeight.SemiBold, |
| 30 | + fontSize = 22.sp, |
| 31 | + lineHeight = 28.sp, |
| 32 | + ) |
| 33 | + |
| 34 | + val h2 = TextStyle( |
| 35 | + fontFamily = FontFamily.Default, |
| 36 | + fontWeight = FontWeight.SemiBold, |
| 37 | + fontSize = 18.sp, |
| 38 | + lineHeight = 24.sp, |
| 39 | + ) |
| 40 | + |
| 41 | + val bodyMedium = TextStyle( |
| 42 | + fontFamily = FontFamily.Default, |
| 43 | + fontWeight = FontWeight.Medium, |
| 44 | + fontSize = 16.sp, |
| 45 | + lineHeight = 20.sp, |
| 46 | + ) |
| 47 | + |
| 48 | + val bodyRegular = TextStyle( |
| 49 | + fontFamily = FontFamily.Default, |
| 50 | + fontWeight = FontWeight.Normal, |
| 51 | + fontSize = 16.sp, |
| 52 | + lineHeight = 20.sp, |
| 53 | + ) |
| 54 | + |
| 55 | + val bodySmallMedium = TextStyle( |
| 56 | + fontFamily = FontFamily.Default, |
| 57 | + fontWeight = FontWeight.Medium, |
| 58 | + fontSize = 14.sp, |
| 59 | + lineHeight = 20.sp, |
| 60 | + ) |
| 61 | + |
| 62 | + val bodySmallRegular = TextStyle( |
| 63 | + fontFamily = FontFamily.Default, |
| 64 | + fontWeight = FontWeight.Normal, |
| 65 | + fontSize = 14.sp, |
| 66 | + lineHeight = 20.sp, |
| 67 | + ) |
| 68 | + |
| 69 | + val labelMedium = TextStyle( |
| 70 | + fontFamily = FontFamily.Default, |
| 71 | + fontWeight = FontWeight.Medium, |
| 72 | + fontSize = 12.sp, |
| 73 | + lineHeight = 18.sp, |
| 74 | + ) |
| 75 | + |
| 76 | + val labelRegular = TextStyle( |
| 77 | + fontFamily = FontFamily.Default, |
| 78 | + fontWeight = FontWeight.Normal, |
| 79 | + fontSize = 12.sp, |
| 80 | + lineHeight = 18.sp, |
| 81 | + ) |
| 82 | +} |
0 commit comments