Skip to content
Snippets Groups Projects
Commit 5aa4fdd9 authored by Maxime Girardet's avatar Maxime Girardet
Browse files

merge: Documentation for dynamic theming

See merge request !83
parents af2ca32b 511a91f2
No related branches found
No related tags found
1 merge request!83Documentation for dynamic theming
Pipeline #1516818091 passed
# Module Material You dynamic colors for Kotlin JS
Use the Material You color picker algorithm in your Compose HTML project.
<a href="https://search.maven.org/search?q=dev.opensavvy.material3.html.theme-dynamic"><img src="https://img.shields.io/maven-central/v/dev.opensavvy.material3.html/theme-dynamic.svg?label=Maven%20Central"></a>
## Material You
This module provides the [`InstallDynamicScheme`](opensavvy.material3.theme.InstallDynamicScheme) function to initialize the Material3 implementation using its colors.
The implementation of the algorithm itself leaves in the [Material You Algorithm](https://gitlab.com/opensavvy/ui/material-you-algorithm) repository, and is available for most Kotlin platforms.
......@@ -29,7 +29,7 @@ fun InstallDynamicScheme(
}
}
val commonTones = listOf(0, 10, 20, 30, 40, 50, 60, 70, 80, 95, 99, 100)
val commonTones = listOf(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 99, 100)
tonesOf("--mdk-ref-primary", palette.primaryPalette, commonTones)
tonesOf("--mdk-ref-secondary", palette.secondaryPalette, commonTones)
tonesOf("--mdk-ref-tertiary", palette.tertiaryPalette, commonTones)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment