jetpack-compose / jetpack-compose-awesome

📝 A curated list of awesome Jetpack Compose libraries, projects, articles and resources
2.03k stars 180 forks source link

Add Compose Dynamic Theme Library #54

Closed seyoungcho2 closed 1 year ago

seyoungcho2 commented 1 year ago

Title-2

License API

What's Dynamic Theme

Dynamic Theme is a Material Design-based Theme Management System for Android Jetpack Compose. Up until now, changing the theme on Android has been a very difficult task. Dynamic Theme was created to make Android's theme management easy. Theming can be applied by simply adding 'ProvidesTheme' to the top-level declaration in Jetpack Compose.

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            DynamicThemeService.get().ProvidesTheme {
                // Add Compose Functions
            }
        }
    }
}


Since this theme management system is based on Material2, knowledge of the Material2 Color System is required to use this library.

Preview



animated