40 lines
1.0 KiB
Kotlin
40 lines
1.0 KiB
Kotlin
package cash.z.ecc.ui.theme
|
|
|
|
import androidx.compose.material.Typography
|
|
import androidx.compose.ui.text.TextStyle
|
|
import androidx.compose.ui.text.font.Font
|
|
import androidx.compose.ui.text.font.FontFamily
|
|
import androidx.compose.ui.text.font.FontWeight
|
|
import androidx.compose.ui.unit.ExperimentalUnitApi
|
|
import androidx.compose.ui.unit.sp
|
|
import cash.z.ecc.ui.R
|
|
|
|
private val Rubik = FontFamily(
|
|
Font(R.font.rubik_regular, FontWeight.W400),
|
|
Font(R.font.rubik_medium, FontWeight.W500)
|
|
)
|
|
|
|
@OptIn(ExperimentalUnitApi::class)
|
|
val Typography = Typography(
|
|
h1 = TextStyle(
|
|
fontFamily = Rubik,
|
|
fontWeight = FontWeight.W600,
|
|
fontSize = 30.sp,
|
|
),
|
|
body1 = TextStyle(
|
|
fontFamily = Rubik,
|
|
fontWeight = FontWeight.Normal,
|
|
fontSize = 16.sp
|
|
),
|
|
caption = TextStyle(
|
|
fontFamily = Rubik,
|
|
fontWeight = FontWeight.Medium,
|
|
fontSize = 16.sp
|
|
),
|
|
button = TextStyle(
|
|
fontFamily = Rubik,
|
|
fontWeight = FontWeight.Normal,
|
|
fontSize = 16.sp
|
|
),
|
|
)
|