-
public class StreamDesign.ColorScale.CompanionFactories for the default brand scales and for a scale derived from one color.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StreamDesign.ColorScale.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final StreamDesign.ColorScaledefaultLight()The default brand scale for light themes. final StreamDesign.ColorScaledefaultDark()The default brand scale for dark themes. final StreamDesign.ColorScalefrom(Color brandColor)Generates a brand scale from a single brandColor, placed at s500. -
-
Method Detail
-
defaultLight
final StreamDesign.ColorScale defaultLight()
The default brand scale for light themes.
-
defaultDark
final StreamDesign.ColorScale defaultDark()
The default brand scale for dark themes.
-
from
final StreamDesign.ColorScale from(Color brandColor)
Generates a brand scale from a single brandColor, placed at s500. Lighter stops are interpolated toward white and darker stops toward black. Use inverted for the dark theme counterpart. For exact branding provide an explicit ColorScale.
-
-
-
-