-
@Immutable() public final class StreamDesign.ChromeScaleA 13-stop neutral ramp representing the chrome (structural gray) palette.
Chrome defines the visual canvas: text, backgrounds, borders, surfaces. Light themes map to the slate foundation (cool grays); dark themes switch to neutral (warm grays) and invert the direction, so that s0 is always the base surface and s900 is always the strongest foreground.
s0 and s1000 are the absolute endpoints (white/black in light, black/white in dark). They absorb the light↔dark polarity, allowing all downstream tokens to reference chrome stops with identical expressions regardless of theme.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStreamDesign.ChromeScale.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Colors0private final Colors50private final Colors100private final Colors150private final Colors200private final Colors300private final Colors400private final Colors500private final Colors600private final Colors700private final Colors800private final Colors900private final Colors1000
-
Constructor Summary
Constructors Constructor Description StreamDesign.ChromeScale(Color s0, Color s50, Color s100, Color s150, Color s200, Color s300, Color s400, Color s500, Color s600, Color s700, Color s800, Color s900, Color s1000)
-
Method Summary
Modifier and Type Method Description final ColorgetS0()final ColorgetS50()final ColorgetS100()final ColorgetS150()final ColorgetS200()final ColorgetS300()final ColorgetS400()final ColorgetS500()final ColorgetS600()final ColorgetS700()final ColorgetS800()final ColorgetS900()final ColorgetS1000()-
-
Constructor Detail
-
StreamDesign.ChromeScale
StreamDesign.ChromeScale(Color s0, Color s50, Color s100, Color s150, Color s200, Color s300, Color s400, Color s500, Color s600, Color s700, Color s800, Color s900, Color s1000)
- Parameters:
s0- Base surface — white in light, black in dark.s50- Faintest tint — subtle surfaces, elevation-1 (dark).s100- Light — standard surface, disabled states.s150- Light-mid — surface-strong, default border, avatar placeholder bg.s200- Mid-light — elevation-3 border (dark), border default (dark).s300- Mid — border strong, disabled text, elevation-4 (dark).s400- Mid-neutral — neutral accent.s500- Core neutral — tertiary text, accent neutral.s600- Strong — secondary metadata (not used in default themes).s700- Darker — secondary text.s800- Deep — not used in default themes.s900- Deepest foreground — primary text, inverse background.s1000- Absolute endpoint — black in light, white in dark.
-
-
Method Detail
-
getS0
final Color getS0()
-
getS50
final Color getS50()
-
getS100
final Color getS100()
-
getS150
final Color getS150()
-
getS200
final Color getS200()
-
getS300
final Color getS300()
-
getS400
final Color getS400()
-
getS500
final Color getS500()
-
getS600
final Color getS600()
-
getS700
final Color getS700()
-
getS800
final Color getS800()
-
getS900
final Color getS900()
-
getS1000
final Color getS1000()
-
-
-
-