Skip to content

Themed Attributes

It also supports theme attributes. If you are using theme color attributes, like ?attr/colorPrimary or ?attr/colorSecondary, they can be converted to Compose MaterialTheme tokens, which means that you can update illustration colors based on the token values. It is also compatible with Material3 dynamic colors.

    <path
        android:pathData="..."
        android:fillColor="?attr/colorPrimary"/>
Screenshot_20240310_145842 Screenshot_20240310_145842-2 Screenshot_20240310_145842-1

Info

It requires use Compose Material 3 dependency.