VicoTheme

Overview

VicoThemearrow-up-right houses default chart colors. Functions like rememberColumnCartesianLayerarrow-up-right and rememberLineCartesianLayerarrow-up-right use these for their default arguments. You can use ProvideVicoThemearrow-up-right to provide a custom instance. Use vicoThemearrow-up-right to access the provided value (for example, vicoTheme.textColor).

ProvideVicoTheme(remember(/* ... */) { VicoTheme(/* ... */) }) { /* ... */ }

Material theming

You can use rememberM2VicoThemearrow-up-right or rememberM3VicoThemearrow-up-right to create a VicoTheme with the colors from your app’s Material Theme. These functions come from the compose-m2 and compose-m3 modules.

ProvideVicoTheme(rememberM2VicoTheme()) { /* ... */ }
ProvideVicoTheme(rememberM3VicoTheme()) { /* ... */ }

Last updated