StreamColorTheme.light constructor

StreamColorTheme.light({
  1. Color textHighEmphasis = const Color(0xff000000),
  2. Color textLowEmphasis = const Color(0xff7a7a7a),
  3. Color disabled = const Color(0xffdbdbdb),
  4. Color borders = const Color(0xffecebeb),
  5. Color inputBg = const Color(0xfff2f2f2),
  6. Color appBg = const Color(0xfff7f7f8),
  7. Color barsBg = const Color(0xffffffff),
  8. Color linkBg = const Color(0xffe9f2ff),
  9. Color accentPrimary = const Color(0xff005FFF),
  10. Color accentError = const Color(0xffFF3842),
  11. Color accentInfo = const Color(0xff20E070),
  12. Color highlight = const Color(0xfffbf4dd),
  13. Color overlay = const Color.fromRGBO(0, 0, 0, 0.2),
  14. Color overlayDark = const Color.fromRGBO(0, 0, 0, 0.6),
  15. Gradient bgGradient = const LinearGradient(begin: Alignment.topCenter, end: Alignment.bottomCenter, colors: [Color(0xfff7f7f7), Color(0xfffcfcfc)], stops: [0, 1]),
  16. Effect borderTop = const Effect(sigmaX: 0, sigmaY: -1, color: Color(0xff000000), blur: 0, alpha: 0.08),
  17. Effect borderBottom = const Effect(sigmaX: 0, sigmaY: 1, color: Color(0xff000000), blur: 0, alpha: 0.08),
  18. Effect shadowIconButton = const Effect(sigmaX: 0, sigmaY: 2, color: Color(0xff000000), alpha: 0.5, blur: 4),
  19. Effect modalShadow = const Effect(sigmaX: 0, sigmaY: 0, color: Color(0xff000000), alpha: 1, blur: 8),
})

Initialise with light theme

Implementation

StreamColorTheme.light({
  this.textHighEmphasis = const Color(0xff000000),
  this.textLowEmphasis = const Color(0xff7a7a7a),
  this.disabled = const Color(0xffdbdbdb),
  this.borders = const Color(0xffecebeb),
  this.inputBg = const Color(0xfff2f2f2),
  this.appBg = const Color(0xfff7f7f8),
  this.barsBg = const Color(0xffffffff),
  this.linkBg = const Color(0xffe9f2ff),
  this.accentPrimary = const Color(0xff005FFF),
  this.accentError = const Color(0xffFF3842),
  this.accentInfo = const Color(0xff20E070),
  this.highlight = const Color(0xfffbf4dd),
  this.overlay = const Color.fromRGBO(0, 0, 0, 0.2),
  this.overlayDark = const Color.fromRGBO(0, 0, 0, 0.6),
  this.bgGradient = const LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [Color(0xfff7f7f7), Color(0xfffcfcfc)],
    stops: [0, 1],
  ),
  this.borderTop = const Effect(
    sigmaX: 0,
    sigmaY: -1,
    color: Color(0xff000000),
    blur: 0,
    alpha: 0.08,
  ),
  this.borderBottom = const Effect(
    sigmaX: 0,
    sigmaY: 1,
    color: Color(0xff000000),
    blur: 0,
    alpha: 0.08,
  ),
  this.shadowIconButton = const Effect(
    sigmaX: 0,
    sigmaY: 2,
    color: Color(0xff000000),
    alpha: 0.5,
    blur: 4,
  ),
  this.modalShadow = const Effect(
    sigmaX: 0,
    sigmaY: 0,
    color: Color(0xff000000),
    alpha: 1,
    blur: 8,
  ),
}) : brightness = Brightness.light;