Microapp home page
Search...
⌘K
Support
Workspace
Workspace
Search...
Navigation
Theming
Overview
Documentation
API Reference
Knowledge Base
Getting Started
Microapp Marketplace
Quickstart
Supported Frameworks
Core Concepts
Overview
Distribution
Identity
Monetization
Localization
Theming
Overview
React SDK
TypeScript SDK
UI
Tutorials
Overview
Create New Microapp
Integrate Existing App
Integrate with Supabase
Resources
Creator Policy
Examples
SDKs
Security
On this page
Getting Started
Key Features
Best Practices for Theming
Theming
Overview
Apply light and dark themes to your microapp.
The Theming SDK enables you to respond to user theme preferences, providing a consistent experience across light and dark modes.
Getting Started
To get started with theming in your microapp, choose the SDK that matches your frontend framework:
React SDK
Implement theming in React microapps.
TypeScript SDK
Implement theming in any web framework.
Key Features
The Theming SDK provides:
Automatic theme detection
: Automatically detects the user’s system theme preference
Theme overrides
: Allows users to override their system preference specifically for your microapp
Theme change listeners
: Notifies your app when the theme changes
Sandbox mode
: Makes it easy to test different themes during development
Best Practices for Theming
When implementing theming in your microapp, follow these best practices:
Use semantic color variables
rather than hard-coded colors
Ensure sufficient contrast
in both light and dark modes
Test interactive elements
in both themes
Consider transition animations
when the theme changes
Initialize with the correct theme
immediately to avoid flashing of incorrect styles
Was this page helpful?
Yes
No
TypeScript SDK
React SDK
Assistant
Responses are generated using AI and may contain mistakes.