Package 

Class StreamDesign.ColorScale


  • @Immutable() 
    public final class StreamDesign.ColorScale
    
                        

    An 11-stop color ramp for the brand (accent) palette.

    Light themes use the natural order (s50 lightest, s900 darkest); dark themes invert the mapping so perceived intensity stays consistent on dark backgrounds.

    Re-brand the whole UI from one color:

    val purple = StreamDesign.ColorScale.from(brandColor = Color(0xFF6200EE))
    VideoTheme(colors = StreamDesign.Colors.default(brand = purple))
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class StreamDesign.ColorScale.Companion

      Factories for the default brand scales and for a scale derived from one color.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      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
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamDesign.ColorScale(Color s50, Color s100, Color s150, Color s200, Color s300, Color s400, Color s500, Color s600, Color s700, Color s800, Color s900)
    • Method Summary

      Modifier and Type Method Description
      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 StreamDesign.ColorScale inverted() Returns a new scale with the stops mirrored around the center (s50 with s900, s100 with s800, and so on).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamDesign.ColorScale

        StreamDesign.ColorScale(Color s50, Color s100, Color s150, Color s200, Color s300, Color s400, Color s500, Color s600, Color s700, Color s800, Color s900)
        Parameters:
        s50 - The lightest stop in the natural order.
        s100 - The 100 stop.
        s150 - The 150 stop.
        s200 - The 200 stop.
        s300 - The 300 stop.
        s400 - The 400 stop.
        s500 - The base stop.
        s600 - The 600 stop.
        s700 - The 700 stop.
        s800 - The 800 stop.
        s900 - The darkest stop in the natural order.