Skip to main content

AppearanceThemeCard

Theme selection card for switching between light and dark appearance modes.

Import​

import { AppearanceThemeCard } from '@scaffald/ui';

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Row gap={12}>
  <AppearanceThemeCard variant="light" />
  <AppearanceThemeCard variant="dark" />
</Row>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Common Props​

All AppearanceThemeCard components accept standard React Native View props.

Examples​

Live Preview
<ThemeProvider initialTheme="light">
<Row gap={12} style={{flexWrap: 'wrap'}}>
  <AppearanceThemeCard variant="light" selected />
  <AppearanceThemeCard variant="dark" />
  <AppearanceThemeCard variant="system" />
</Row>
</ThemeProvider>

Accessibility​

  • Keyboard navigation support
  • Screen reader compatible
  • ARIA attributes included
  • Focus management

Design Tokens​

This component uses the following design tokens:

  • Colors: colors.{semantic}.{theme}.{variant}
  • Spacing: spacing.*
  • Typography: typography.*

See Design Tokens for more information.

No related components.

Changelog​

See GitHub Releases for version history.