Package 

Class StreamDesign.ChromeScale


  • @Immutable() 
    public final class StreamDesign.ChromeScale
    
                        

    A 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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Color s0
      private final Color s50
      private final Color s100
      private final Color s150
      private final Color s200
      private final Color s300
      private final Color s400
      private final Color s500
      private final Color s600
      private final Color s700
      private final Color s800
      private final Color s900
      private final Color s1000
    • 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 Color getS0()
      final Color getS50()
      final Color getS100()
      final Color getS150()
      final Color getS200()
      final Color getS300()
      final Color getS400()
      final Color getS500()
      final Color getS600()
      final Color getS700()
      final Color getS800()
      final Color getS900()
      final Color getS1000()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.