Theme
It is a color palette definition, typically used to customize the overall look and feel of the app.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| primary | String | Primary color of the theme. | |
| onPrimary | String | Color for content on top of the primary color. | |
| primaryContainer | String | Background container using the primary color. | |
| onPrimaryContainer | String | Content color on top of the primary container. | |
| secondary | String | Secondary color used for less prominent components. | |
| onSecondary | String | Color for content on top of the secondary color. | |
| secondaryContainer | String | Background container using the secondary color. | |
| onSecondaryContainer | String | Content color on top of the secondary container. | |
| tertiary | String | Tertiary color used for accents and highlights. | |
| onTertiary | String | Color for content on top of the tertiary color. | |
| tertiaryContainer | String | Background container using the tertiary color. | |
| onTertiaryContainer | String | Content color on top of the tertiary container. | |
| error | String | Error color used to indicate problems. | |
| errorContainer | String | Background container for error states. | |
| onError | String | Color for content on top of the error color. | |
| onErrorContainer | String | Content color on top of the error container. | |
| background | String | App background color. | |
| onBackground | String | Color for content on top of the background. | |
| surface | String | Color for surfaces such as cards and sheets. | |
| onSurface | String | Color for content on top of the surface. | |
| surfaceVariant | String | Variant of the surface color for differentiation. | |
| onSurfaceVariant | String | Color for content on top of the surface variant. | |
| outline | String | Color for outlines and borders. | |
| inverseOnSurface | String | Content color on inverse surfaces. | |
| inverseSurface | String | Inverse background surface color. | |
| inversePrimary | String | Inverse of the primary color, used in dark themes. | |
| surfaceTint | String | Tint color applied to elevated surfaces. | |
| outlineVariant | String | A variant color used for subtle outlines. | |
| scrim | String | Scrim color used behind modals and dialogs. |
