SchemeBuilder
Decorators: |
|
Implements: |
|
Implementation of
that generates hex color tokens for all Material Design color roles.
Notes
Examples of generated tokens include "surface", "on-surface", "surface-container", "on-surface-container", "primary", "on-primary", etc.
A non-empty name must be assigned to this builder. The name assigned to this builder will be used as the prefix to the generated tokens. When the name is "scheme", the generated tokens will be "scheme-primary", "scheme-on-primary", etc.
See Also
https://m3.material.io/styles/color/roles for all color roles
Properties
Name | Type | Description |
---|---|---|
hctFormatter p |
|
Methods
build()implements
| ||||||
---|---|---|---|---|---|---|
No documentation has been provided. | ||||||
Presentation
| ||||||
Parameters
Returns |
protected getScheme() | ||||||
---|---|---|---|---|---|---|
No documentation has been provided. | ||||||
Presentation
| ||||||
Parameters
ReturnsDynamicScheme |
Example usage
provideTheme (
withThemeBuilder ("scheme", SchemeBuilder , {
type: SchemeTonalSpot,
source: Hct.fromInt(0x33bdff),
mode: SchemeMode .Light,
contrast: SchemeContrastLevel .Standard,
}),
),