kmp-theming
Compose MaterialTheme patterns: Color.kt, Typography, darkColorScheme, and TV-specific theming for KMP apps
Skill by giolaq
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/giolaq-kmp-theming
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/kmp-theming
What's inside
- Skill name
kmp-theming- Description
- Compose MaterialTheme patterns: Color.kt, Typography, darkColorScheme, and TV-specific theming for KMP apps
- License
- MIT-0
- Instructions
- 150 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# KMP Theming
> Theme lives in `androidtv-app/src/main/java/com/kmptv/androidtv/theme/`. A brand kit becomes a theme via darkColorScheme() customization plus a parallel KmptvColors object for TV-specific surfaces.
## File structure
```
androidtv-app/src/main/java/com/kmptv/androidtv/theme/
├── Color.kt # KmptvColors object — TV-specific palette outside MaterialTheme
├── Theme.kt # KMPTVTheme composable wrapping darkColorScheme()
└── Type.kt # Typography definitions
```
## Two-layer color system
The template uses two complementary color approaches:
### Layer 1: MaterialTheme darkColorScheme (Material 3)
```kotlin
private val DarkColorScheme = darkColorScheme(
primary = Color(0xFF90CAF9), // CTAs, active states
secondary = Color(0xFF81C784), // Secondary actions
tertiary = Color(0xFFFFB74D), // Accents, highlights
background = Color(0xFF0D0D0D), // App background
surface = Color(0xFF1E1E1E), // Card surfaces
onPrimary = Color(0xFF000000), // Text on primary
onSecondary = Color(0xFF000000),
onTertiary = Color(0xFF000000),
onBackground = Color(0xFFFFFFFF), // Body text
onSurface = Color(0xFFFFFFFF), // Text on cards
)
```
Access via `MaterialTheme.colorScheme.primary`, etc.
### Layer 2: KmptvColors object (TV-specific)
```kotlin
object KmptvColors {
val Background = Color(0xFF0D0D0D) // Near-black, avoids LCD haloing
val SurfaceElevated = Color(0xFF1A1A1A) // Panels above background
val SurfaceFocus = Color(0xFF2A2A2A) // Unfocused controls
val Accent = Color(0xFFE50914) // Seek-bar, progress (brand red)
}
```
Direct reference: `KmptvColors.Background`. Used where MaterialTheme semantics don't map well to TV patterns (hero gradients, player controls, surface hierarchy).
## Applying brand colors
To rebrand the app:
1. **Edit `Color.kt`** — change `KmptvColors` values to match the brand palette.
2. **Edit `Theme.kt`** — update `darkColorScheme()` parameters.
3. **Keep them in sync** — `KmptvColors.Background` should match `background` in the scheme.
### Mapping brand.json to KMP theme
| Brand field | Goes to | Notes |
|--------------------|----------------------------------|------------------------------------|
| `primary_color` | `darkColorScheme(primary = ...)` | CTAs, active states |
| `accent_color` | `KmptvColors.Accent` + `tertiary` | Focus highlights, progress bars |
| `background_color` | Both `background` and `KmptvColors.Background` | Must be identical |
| `font_family` | `Type.kt` font family | Use Google Fonts or system |
## Typography
```kotlin
val Typography = Typography(
headlineLarge = TextStyle(
fontWeight = FontWeight.Bold,
fontSize = 48.sp,
lineHeight = 56.sp,
),
titleMedium = TextStyle(
fontWeight = FontWeight.SemiBold,
fontSize = 20.sp,
),
bodyLarge = TextStyle(
fontSize = 24.sp,
lineHeight = 32.sp,
),
bodyMedium = TextStyle(
fontSize = 18.sp,
lineHeight = 24.sp,
),
labelSmall = TextStyle(
fontSize = 12.sp,
),
)
```
### TV-specific typography rules
- **Body minimum: 18sp**, but prefer 24sp for primary content. Anything smaller is unreadable from couch distance.
- **Headlines: 48-64sp.** The hero banner uses `headlineLarge`.
- **Font weight:** Bold for headings, SemiBold for row titles, Regular for body. Avoid Light/Thin — they disappear on TVs.
- **Line height: 1.3-1.4x font size.** Tight spacing hurts at 10-foot distance.
## TV-specific design decisions
### Always dark theme
TV apps default dark. The template only defines `darkColorScheme()` — no light variant. Rationale:
- TVs are viewed in dim rooms
- Bright backgrounds cause eye strain and LCD bloom
- All major streaming apps (Netflix, Prime Video, Disney+) are dark
If a brand requires light mode, you would need to add a `lightColorScheme()` and a mode toggle. This is rare for TV.
### High contrast for focus states
Focus visibility is critical at 10 feet. The template uses:
- **White border** (2dp) on focused cards via `.border(2.dp, Color.White, shape)`
- **Scale animation** (1.0 -> 1.08) on focus
- **Shadow elevation** (16dp) on focused items
- **Surface tonal elevation** change (2dp unfocused -> 8dp focused)From giolaq/tv-build-harness, MIT-0.
More from giolaq/tv-build-harness
- 0.563score
meta
giolaq
Meta skill loaded for all phases: project conventions, file modification rules, code quality standards
SkillBFreshness: B★ 4Claude Code +9 - 0.516score
kmp-data-layer
giolaq
Kotlin data layer patterns: data classes in shared-core, repository pattern, StateFlow, CatalogService, and content wiring
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
kmp-navigation
giolaq
Compose Navigation for TV: state-based screen switching, BackHandler, focus-aware transitions, and drawer/sidebar patterns
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
kmp-template-anatomy
giolaq
KMP TV template repo structure: shared-core, androidtv-app, appletv-app modules and where screens, theme, data, and navigation live
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
creative-tv-ui
giolaq
Creative visual design patterns for TV apps: typography, color depth, focus states, animations, per-content-type personalities
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
kmp-compose-tv
giolaq
Compose for TV patterns: TvLazyRow/Column, focusable cards, FocusRequester, D-pad navigation, and 10-foot UI composables
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
firetv-leanback
giolaq
Fire TV leanback manifest configuration: banner icons, LEANBACK_LAUNCHER intent filter, TV-specific Android settings
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
kmp-build-commands
giolaq
Gradle build commands: assembleDebug, assembleRelease, APK output paths, and emulator installation
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
kmp-verify-patterns
giolaq
How to verify KMP builds: compile checks, lint, common Compose compiler errors, Gradle dependency resolution issues
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
rn-manifest-wiring
giolaq
Content manifest wiring: how to connect content.json data to React Native data hooks and screen components
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
rn-shared-ui-catalog
giolaq
Catalog of available shared-ui components: what exists in the template, how to reuse vs create new
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
10ft-ui
giolaq
10-foot UI design guidelines: safe zones, font sizes, contrast, focus indicators for TV viewing distance
SkillCFreshness: C★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 3
- Last commit (this folder)
- Jun 24, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT-0
- Repository
- github.com/giolaq/tv-build-harness
- Website
- tv-build-harness.vercel.app
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from giolaq
- 0.563score
meta
giolaq
Meta skill loaded for all phases: project conventions, file modification rules, code quality standards
SkillBFreshness: B★ 4Claude Code +9 - 0.516score
creative-tv-ui
giolaq
Creative visual design patterns for TV apps: typography, color depth, focus states, animations, per-content-type personalities
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
kmp-data-layer
giolaq
Kotlin data layer patterns: data classes in shared-core, repository pattern, StateFlow, CatalogService, and content wiring
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
kmp-navigation
giolaq
Compose Navigation for TV: state-based screen switching, BackHandler, focus-aware transitions, and drawer/sidebar patterns
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
kmp-compose-tv
giolaq
Compose for TV patterns: TvLazyRow/Column, focusable cards, FocusRequester, D-pad navigation, and 10-foot UI composables
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
kmp-template-anatomy
giolaq
KMP TV template repo structure: shared-core, androidtv-app, appletv-app modules and where screens, theme, data, and navigation live
SkillCFreshness: C★ 4Claude Code +9
Cite this page
kmp-theming skill. Agent Mart. https://agentmart.dev/skills/giolaq-kmp-theming (last updated 2026-10-24)