Banner

CI version License Crowdin Codecov Context7 DeepWiki Documentation

An opinionated design system for Compose Multiplatform.

Installation

Published on Maven Central:

implementation("glass.yasan.kepko:component:<version>")
implementation("glass.yasan.kepko:foundation:<version>")

Usage

Wrap your app content with KepkoTheme:

Code Preview
KepkoTheme {
    Text("Hello, Kepko!")
    TextPill(
        text = "Yasan Glass",
        containerColor = KepkoTheme.colors.information,
    )
}
Usage

Components

Light Dark
ButtonText Light ButtonText Dark
OutlinedTextField Light OutlinedTextField Dark
PreferenceCheckbox Light PreferenceCheckbox Dark
PreferenceRadioButton Light PreferenceRadioButton Dark
PreferenceRadioGroup Light PreferenceRadioGroup Dark
PreferenceSlider Light PreferenceSlider Dark
PreferenceSwitch Light PreferenceSwitch Dark

See the full list of components here.

Color Palettes

Name Color Palette
Light Light
Dark Dark
Black (AMOLED) Black (AMOLED)
Solarized Light Solarized Light
Solarized Dark Solarized Dark
Catppuccin Latte Catppuccin Latte
Catppuccin Frappé Catppuccin Frappé
Catppuccin Macchiato Catppuccin Macchiato
Catppuccin Mocha Catppuccin Mocha
Gruvbox Light Gruvbox Light
Gruvbox Dark Gruvbox Dark

Persistence

An optional module that automatically persists and restores theme preferences across the app launches.

implementation("glass.yasan.kepko:persistence:<version>")

Use PersistentKepkoTheme instead of KepkoTheme to automatically persist and restore theme preferences:

@OptIn(ExperimentalKepkoApi::class)
PersistentKepkoTheme {
// your app content
}

To let users change the persisted theme setting, use PersistentPreferenceThemeScreen:

PersistentPreferenceThemeScreen(
onBackClick = { /* navigate back */ },
)

PersistentPreferenceThemeScreen lets users pick between system-based or manual theme selection. In system mode, separate light and dark style pickers are shown:

PersistentPreferenceThemeScreen

PersistentKepkoTheme provides the following CompositionLocal values inside its content:

Sample Project

Explore Kepko in a real project with the included sample project.

Sample

All modules:

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard