TypeScale
object TypeScale
Skapa type sets, with long and short line height text. Represented by SkapaFont class
See also
Samples
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.*
import androidx.compose.material3.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.semantics.heading
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.sp
import net.ikea.skapa.foundation.typography2.SkapaTypeScale
import net.skapa.ikea.fonts.latin.NotoIkeaLatin
fun main() {
//sampleStart
SkapaTheme2(darkTheme = isSystemInDarkTheme()) {
Column {
Text(
text = "Font size 18.sp",
fontSize = SkapaTypography.Sizes.fontSize200
)
Text(
text = "Skapa type scale 200, with short line high 26.sp",
style = SkapaTypography.TypeScale.font200.short
)
Text(
text = "Skapa type scale 200, with long line high 28.sp",
style = SkapaTypography.TypeScale.font200.long
)
}
}
//sampleEnd
}