Package-level declarations

Types

Link copied to clipboard

The user-selectable accent hue. One sharp colour carries primary (and the rest of the primary family) in both the light and dark schemes, paired with the content colour drawn on top of it — onAccent is ink for light accents, white for saturated ones, picked to clear WCAG AA on the fill. The neutral ramps in Color.kt are fixed; only this hue changes.

Link copied to clipboard
Link copied to clipboard
class SettingsAccentColorStore(settings: Settings) : AccentColorStore

Backed by multiplatform-settings, mirroring SettingsThemeModeStore — the same cross-platform persistence the app's wasmJs target requires.

Link copied to clipboard
class SettingsThemeModeStore(settings: Settings) : ThemeModeStore

Backed by multiplatform-settings rather than androidx.datastore: DataStore's non-Android/web targets are not yet shipped, while this library has full wasmJs support (Web Storage-backed), which this app's target list requires.

Link copied to clipboard

The single source of truth for every icon the app and the designsheet draw. UI code never references Icons.* directly — it names the purpose (Back, BookmarkFilled, ReadingTime) and this object decides which glyph that purpose gets, so swapping an icon set or a single glyph is a one-file change.

Link copied to clipboard

Shape tokens that have no slot in Material 3's Shapes, so they cannot live in SkimbyteShapes.

Link copied to clipboard
Link copied to clipboard
interface ThemeModeStore
Link copied to clipboard
fun interface WindowChromeListener

Receives the theme SkimbyteTheme actually resolved (after ThemeMode.System is decided), so hosts that paint native chrome outside the Compose canvas — the macOS title bar on desktop — can keep it in step with the app's surface color.

Properties

Link copied to clipboard

Palette primitives: two neutral ramps and one sharp accent.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val Ink: Color
Link copied to clipboard
Link copied to clipboard

The accent, tuned to stay legible as text on the card surface.

Link copied to clipboard

Only the outermost SkimbyteTheme reports to this: the theme consumes the listener by re-providing the no-op to its content, so the nested light/dark sections that previews and the designsheet catalog render can't repaint the host window.

Link copied to clipboard
val Mist: Color
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val themeModule: Module

Functions

Link copied to clipboard
fun accentTextOn(accent: Color, surface: Color): Color

accent lightened (on a dark surface) or darkened (on a light one) just enough to clear WCAG AA against surface. Returned unchanged when it already passes; blends toward white/black in small steps otherwise, which preserves the hue for the small shifts most accents need.

Link copied to clipboard
fun EyebrowText(text: String, modifier: Modifier = Modifier)
Link copied to clipboard
fun SkimbyteTheme(themeMode: ThemeMode, accent: AccentColor = AccentColor.Default, content: @Composable () -> Unit)

fun SkimbyteTheme(darkTheme: Boolean = true, accent: AccentColor = AccentColor.Default, content: @Composable () -> Unit)

M3 Expressive theme: MaterialExpressiveTheme with MotionScheme.expressive gives every Material component spring-based motion physics (per the Compose-first Expressive rollout); both schemes are Skimbyte's own, specified role-by-role in SkimbyteDarkColors and SkimbyteLightColors, re-tinted with the user's accent.

Link copied to clipboard

Keeps the macOS title bar on the theme's surface color instead of the stock white strip.