parseAsset

fun parseAsset(context: Context, cssAssetPath: String): Map<String, SpanStyle>

Parses a CSS theme file from assets into a color map. Unlike parse, this overload throws if the file cannot be opened, so callers can distinguish a missing file from a successfully-parsed (but empty) theme.

Throws

if the asset file cannot be opened.