Skip to main content

ThemeData

Overview

ThemeData represents the configuration for theming in the application. It includes options for colors, fonts, typography, and layout to ensure a consistent design system.

Attributes

id

type: string

A unique identifier for the theme.

darkModeColors

type: Colors (optional)

Defines the color palette for dark mode.

lightModeColors

type: Colors (optional)

Defines the color palette for light mode.

fonts

type: object (optional)

Specifies the fonts used in the theme, with the following structure:

  • fontHeading: Font (optional)
  • fontMono: Font (optional)
  • fontBody: Font (optional)

layout

type: Layout (optional)

Defines layout-specific configurations such as button radius and padding.

typography

type: Typography (optional)

Specifies typography settings, including font sizes and weights for headings and body text.