LightTheme

open class LightTheme : Colors

The default light color set used in PolyUI.

Since

0.17.0

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val brand: Colors.Brand
Link copied to clipboard
open override val component: Colors.Component
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val onBrand: Colors.OnBrand
Link copied to clipboard
open override val page: Colors.Page
Link copied to clipboard
open override val state: Colors.State
Link copied to clipboard
open override val text: Colors.Text

Functions

Link copied to clipboard
open fun getNewColor(currentColor: Color, current: Colors): Color?

Calculate and return the new Color for the given currentColor based on the current and new Colors. This is useful for theming, where you want to change the color of a component based on the current theme. If the currentColor is not found in the current Colors, it will return null.

Link copied to clipboard
open fun getNewPalette(currentPalette: Colors.Palette?, current: Colors): Colors.Palette?

Calculate and return the new Palette for the given currentPalette based on the current and new Colors. This is useful for theming, where you want to change the palette of a component based on the current theme. If the currentPalette is not found in the current Colors, it will return null.