Package-level declarations

Types

Link copied to clipboard
data class StylishChartColors(val categorical: List<Color>)

Categorical color palette for chart and data-visualization components.

Link copied to clipboard
data class StylishComponentColors(val groupedContainer: Color, val card: Color, val cardContent: Color, val button: Color, val buttonContent: Color, val chip: Color, val chipContent: Color, val textField: Color, val textFieldContent: Color)

Derived component-level colors that are computed from the active ColorScheme rather than stored as static palette values.

Link copied to clipboard
data class StylishStrings(val previousPage: String = "Previous page", val nextPage: String = "Next page", val selectedPage: String = "Selected page", val selectAllRows: String = "Select all rows", val selectRow: (Int) -> String = { index -> "Select row ${index + 1}" }, val increase: String = "Increase", val decrease: String = "Decrease", val close: String = "Close", val cancel: String = "Cancel", val confirm: String = "Confirm", val edit: String = "Edit", val delete: String = "Delete", val loading: String = "Loading", val error: String = "Error", val empty: String = "No results", val filter: String = "Filter", val export: String = "Export", val expandRow: String = "Expand row", val collapseRow: String = "Collapse row", val available: String = "Available", val selected: String = "Selected", val chooseFiles: String = "Choose files", val qrCode: String = "QR code", val colorRed: String = "Red", val colorGreen: String = "Green", val colorBlue: String = "Blue", val colorAlpha: String = "Alpha", val remove: String = "Remove", val pageOf: (Int, Int) -> String = { page, count -> "Page $page of $count" }, val sortAscending: String = "Sorted ascending", val sortDescending: String = "Sorted descending", val moveColumnLeft: (String) -> String = { title -> "Move $title left" }, val moveColumnRight: (String) -> String = { title -> "Move $title right" }, val resizeColumn: (String) -> String = { title -> "Resize $title" }, val pinnedColumn: String = "Pinned column", val frozenColumn: String = "Frozen column", val fileSizeBytes: (Long) -> String = { bytes -> "$bytes bytes" }, val rowPosition: (Int) -> String = { index -> "Row ${index + 1}" }, val columnPosition: (String, Int) -> String = { title, index -> "$title, row ${index + 1}" }, val formatInteger: (Long) -> String = { it.toString() }, val formatDecimal: (Double) -> String = { it.toString() }, val formatCurrency: (Double, String) -> String = { value, currency -> "$currency${value}" }, val formatDate: (Int, Int, Int) -> String = { year, month, day -> "$year/${month.toString().padStart(2, '0')}/${day.toString().padStart(2, '0')}" }, val plural: (Int, String) -> String = { count, noun -> "$count $noun" })

Text labels used by Stylish components when no component-specific label is supplied.

Link copied to clipboard

Accessor object for the current StylishTheme composition-local values.

Properties

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

Dark-mode ColorScheme for the Stylish UI design system.

Link copied to clipboard

High-contrast dark semantic roles for users who need stronger separation.

Link copied to clipboard

High-contrast light semantic roles for users who need stronger separation.

Link copied to clipboard

Japanese defaults for applications that use Japanese UI copy.

Link copied to clipboard

Light-mode ColorScheme for the Stylish UI design system.

Link copied to clipboard

The default Typography scale for the Stylish UI design system.

Functions

Link copied to clipboard

Darkens this color by interpolating it toward Color.Black.

Link copied to clipboard

Harmonizes this color with a primary color so that both share a compatible hue while remaining distinguishable.

Link copied to clipboard

Lightens this color by interpolating it toward Color.White.

Link copied to clipboard
fun StylishTheme(darkTheme: Boolean, dynamicColor: Boolean = false, seedColor: Color? = null, colorScheme: ColorScheme = if (darkTheme) StylishDarkColorScheme else StylishLightColorScheme, highContrast: Boolean = false, highContrastColorScheme: ColorScheme? = null, typography: Typography = StylishTypography, materialShapes: Shapes = Shapes(), dimensions: StylishDimensions = DefaultStylishDimensions, shapes: StylishShapes = DefaultStylishShapes, animation: StylishAnimationTokens = DefaultStylishAnimationTokens, componentColors: StylishComponentColors? = null, strings: StylishStrings = StylishStrings(), content: @Composable () -> Unit)

Root theme composable that applies the Stylish UI design language to all descendant content.

Link copied to clipboard
Link copied to clipboard

Returns the Okabe–Ito categorical palette for charts.

Link copied to clipboard

Returns this typography scale with one explicit font family applied to every Material 3 text role. Hosts can use this for a brand font or a bundled cross-platform fallback while preserving Stylish UI's size, weight, line-height, and tracking contract.