ente/mobile/lib/theme/colors.dart

295 lines
9 KiB
Dart
Raw Normal View History

import 'dart:ui';
import 'package:flutter/material.dart';
2022-09-23 09:04:15 +00:00
class EnteColorScheme {
// Background Colors
final Color backgroundBase;
final Color backgroundElevated;
final Color backgroundElevated2;
// Backdrop Colors
final Color backdropBase;
2022-12-17 05:18:33 +00:00
final Color backdropMuted;
final Color backdropFaint;
2022-09-23 09:04:15 +00:00
// Text Colors
final Color textBase;
final Color textMuted;
final Color textFaint;
2022-11-02 06:33:46 +00:00
final Color blurTextBase;
2022-09-23 09:04:15 +00:00
// Fill Colors
final Color fillBase;
final Color fillBasePressed;
final Color fillStrong;
2022-09-23 09:04:15 +00:00
final Color fillMuted;
final Color fillFaint;
2022-11-28 12:59:33 +00:00
final Color fillFaintPressed;
2022-09-23 09:04:15 +00:00
// Stroke Colors
final Color strokeBase;
final Color strokeMuted;
final Color strokeFaint;
2022-10-14 10:14:19 +00:00
final Color strokeFainter;
2022-11-02 06:33:46 +00:00
final Color blurStrokeBase;
final Color blurStrokeFaint;
final Color blurStrokePressed;
2022-09-23 09:04:15 +00:00
// Fixed Colors
final Color primary700;
final Color primary500;
final Color primary400;
final Color primary300;
2022-10-15 11:37:24 +00:00
//warning colors
2022-09-23 09:04:15 +00:00
final Color warning700;
final Color warning500;
final Color warning400;
final Color warning800;
2022-09-23 09:04:15 +00:00
final Color caution500;
//golden colors
final Color golden700;
final Color golden500;
2022-10-15 11:37:24 +00:00
//other colors
final Color tabIcon;
2022-11-21 02:31:46 +00:00
final List<Color> avatarColors;
2022-10-15 11:37:24 +00:00
2022-09-23 09:04:15 +00:00
const EnteColorScheme(
this.backgroundBase,
this.backgroundElevated,
this.backgroundElevated2,
this.backdropBase,
2022-12-17 05:18:33 +00:00
this.backdropMuted,
this.backdropFaint,
2022-09-23 09:04:15 +00:00
this.textBase,
this.textMuted,
this.textFaint,
2022-11-02 06:33:46 +00:00
this.blurTextBase,
2022-09-23 09:04:15 +00:00
this.fillBase,
this.fillBasePressed,
this.fillStrong,
2022-09-23 09:04:15 +00:00
this.fillMuted,
this.fillFaint,
2022-11-28 12:59:33 +00:00
this.fillFaintPressed,
2022-09-23 09:04:15 +00:00
this.strokeBase,
this.strokeMuted,
2022-10-14 10:14:19 +00:00
this.strokeFaint,
2022-10-15 11:37:24 +00:00
this.strokeFainter,
2022-11-02 06:33:46 +00:00
this.blurStrokeBase,
this.blurStrokeFaint,
this.blurStrokePressed,
2022-11-21 02:31:46 +00:00
this.tabIcon,
this.avatarColors, {
2022-09-23 09:04:15 +00:00
this.primary700 = _primary700,
this.primary500 = _primary500,
this.primary400 = _primary400,
this.primary300 = _primary300,
this.warning800 = _warning800,
2022-09-23 09:04:15 +00:00
this.warning700 = _warning700,
this.warning500 = _warning500,
2023-01-17 08:55:37 +00:00
this.warning400 = _warning400,
2022-09-23 09:04:15 +00:00
this.caution500 = _caution500,
this.golden700 = _golden700,
2023-02-22 12:50:42 +00:00
this.golden500 = _golden500,
2022-09-23 09:04:15 +00:00
});
}
const EnteColorScheme lightScheme = EnteColorScheme(
backgroundBaseLight,
backgroundElevatedLight,
backgroundElevated2Light,
backdropBaseLight,
2022-11-03 08:05:23 +00:00
backdropMutedLight,
backdropFaintLight,
2022-09-23 09:04:15 +00:00
textBaseLight,
textMutedLight,
textFaintLight,
2022-11-02 06:33:46 +00:00
blurTextBaseLight,
2022-09-23 09:04:15 +00:00
fillBaseLight,
fillBasePressedLight,
fillStrongLight,
2022-09-23 09:04:15 +00:00
fillMutedLight,
fillFaintLight,
2022-11-28 12:59:33 +00:00
fillFaintPressedLight,
2022-09-23 09:04:15 +00:00
strokeBaseLight,
strokeMutedLight,
strokeFaintLight,
2022-10-14 10:14:19 +00:00
strokeFainterLight,
2022-11-02 06:33:46 +00:00
blurStrokeBaseLight,
blurStrokeFaintLight,
blurStrokePressedLight,
2022-10-15 11:37:24 +00:00
tabIconLight,
avatarLight,
2022-09-23 09:04:15 +00:00
);
const EnteColorScheme darkScheme = EnteColorScheme(
backgroundBaseDark,
backgroundElevatedDark,
backgroundElevated2Dark,
backdropBaseDark,
2022-11-03 08:05:23 +00:00
backdropMutedDark,
backdropFaintDark,
2022-09-23 09:04:15 +00:00
textBaseDark,
textMutedDark,
textFaintDark,
2022-11-02 06:33:46 +00:00
blurTextBaseDark,
2022-09-23 09:04:15 +00:00
fillBaseDark,
fillBasePressedDark,
fillStrongDark,
2022-09-23 09:04:15 +00:00
fillMutedDark,
fillFaintDark,
2022-11-28 12:59:33 +00:00
fillFaintPressedDark,
2022-09-23 09:04:15 +00:00
strokeBaseDark,
strokeMutedDark,
strokeFaintDark,
2022-10-14 10:14:19 +00:00
strokeFainterDark,
2022-11-02 06:33:46 +00:00
blurStrokeBaseDark,
blurStrokeFaintDark,
blurStrokePressedDark,
2022-10-15 11:37:24 +00:00
tabIconDark,
2022-11-21 02:31:46 +00:00
avatarDark,
2022-09-23 09:04:15 +00:00
);
// Background Colors
const Color backgroundBaseLight = Color.fromRGBO(255, 255, 255, 1);
const Color backgroundElevatedLight = Color.fromRGBO(255, 255, 255, 1);
const Color backgroundElevated2Light = Color.fromRGBO(251, 251, 251, 1);
const Color backgroundBaseDark = Color.fromRGBO(0, 0, 0, 1);
const Color backgroundElevatedDark = Color.fromRGBO(27, 27, 27, 1);
const Color backgroundElevated2Dark = Color.fromRGBO(37, 37, 37, 1);
// Backdrop Colors
2022-12-17 05:18:33 +00:00
const Color backdropBaseLight = Color.fromRGBO(255, 255, 255, 0.92);
const Color backdropMutedLight = Color.fromRGBO(255, 255, 255, 0.75);
const Color backdropFaintLight = Color.fromRGBO(255, 255, 255, 0.30);
2022-12-17 05:18:33 +00:00
const Color backdropBaseDark = Color.fromRGBO(0, 0, 0, 0.90);
const Color backdropMutedDark = Color.fromRGBO(0, 0, 0, 0.65);
const Color backdropFaintDark = Color.fromRGBO(0, 0, 0, 0.20);
// Text Colors
const Color textBaseLight = Color.fromRGBO(0, 0, 0, 1);
const Color textMutedLight = Color.fromRGBO(0, 0, 0, 0.6);
const Color textFaintLight = Color.fromRGBO(0, 0, 0, 0.5);
2022-11-02 06:33:46 +00:00
const Color blurTextBaseLight = Color.fromRGBO(0, 0, 0, 0.65);
const Color textBaseDark = Color.fromRGBO(255, 255, 255, 1);
const Color textMutedDark = Color.fromRGBO(255, 255, 255, 0.7);
const Color textFaintDark = Color.fromRGBO(255, 255, 255, 0.5);
2022-11-02 06:33:46 +00:00
const Color blurTextBaseDark = Color.fromRGBO(255, 255, 255, 0.95);
// Fill Colors
const Color fillBaseLight = Color.fromRGBO(0, 0, 0, 1);
const Color fillBasePressedLight = Color.fromRGBO(0, 0, 0, 0.87);
2023-09-26 11:45:42 +00:00
const Color fillStrongLight = Color.fromRGBO(0, 0, 0, 0.24);
const Color fillMutedLight = Color.fromRGBO(0, 0, 0, 0.12);
const Color fillFaintLight = Color.fromRGBO(0, 0, 0, 0.04);
2022-11-28 12:59:33 +00:00
const Color fillFaintPressedLight = Color.fromRGBO(0, 0, 0, 0.08);
const Color fillBaseDark = Color.fromRGBO(255, 255, 255, 1);
const Color fillBasePressedDark = Color.fromRGBO(255, 255, 255, 0.9);
2023-09-26 11:45:42 +00:00
const Color fillStrongDark = Color.fromRGBO(255, 255, 255, 0.32);
const Color fillMutedDark = Color.fromRGBO(255, 255, 255, 0.16);
const Color fillFaintDark = Color.fromRGBO(255, 255, 255, 0.12);
2022-11-28 12:59:33 +00:00
const Color fillFaintPressedDark = Color.fromRGBO(255, 255, 255, 0.06);
// Stroke Colors
const Color strokeBaseLight = Color.fromRGBO(0, 0, 0, 1);
const Color strokeMutedLight = Color.fromRGBO(0, 0, 0, 0.24);
2022-10-14 10:14:19 +00:00
const Color strokeFaintLight = Color.fromRGBO(0, 0, 0, 0.12);
const Color strokeFainterLight = Color.fromRGBO(0, 0, 0, 0.06);
2022-11-02 06:33:46 +00:00
const Color blurStrokeBaseLight = Color.fromRGBO(0, 0, 0, 0.65);
const Color blurStrokeFaintLight = Color.fromRGBO(0, 0, 0, 0.08);
const Color blurStrokePressedLight = Color.fromRGBO(0, 0, 0, 0.50);
const Color strokeBaseDark = Color.fromRGBO(255, 255, 255, 1);
const Color strokeMutedDark = Color.fromRGBO(255, 255, 255, 0.24);
const Color strokeFaintDark = Color.fromRGBO(255, 255, 255, 0.16);
2022-10-14 10:14:19 +00:00
const Color strokeFainterDark = Color.fromRGBO(255, 255, 255, 0.08);
2022-11-08 09:20:30 +00:00
const Color blurStrokeBaseDark = Color.fromRGBO(255, 255, 255, 0.90);
2022-12-16 08:28:54 +00:00
const Color blurStrokeFaintDark = Color.fromRGBO(255, 255, 255, 0.06);
2022-11-08 09:20:30 +00:00
const Color blurStrokePressedDark = Color.fromRGBO(255, 255, 255, 0.50);
2022-10-15 11:37:24 +00:00
// Other colors
const Color tabIconLight = Color.fromRGBO(0, 0, 0, 0.85);
const Color tabIconDark = Color.fromRGBO(255, 255, 255, 0.80);
// Fixed Colors
2022-11-17 11:53:32 +00:00
const Color fixedStrokeMutedWhite = Color.fromRGBO(255, 255, 255, 0.50);
const Color strokeSolidMutedLight = Color.fromRGBO(147, 147, 147, 1);
const Color strokeSolidFaintLight = Color.fromRGBO(221, 221, 221, 1);
2022-11-17 11:53:32 +00:00
2022-09-23 09:04:15 +00:00
const Color _primary700 = Color.fromRGBO(0, 179, 60, 1);
const Color _primary500 = Color.fromRGBO(29, 185, 84, 1);
const Color _primary400 = Color.fromRGBO(38, 203, 95, 1);
const Color _primary300 = Color.fromRGBO(1, 222, 77, 1);
2022-09-23 09:04:15 +00:00
const Color _warning700 = Color.fromRGBO(234, 63, 63, 1);
const Color _warning500 = Color.fromRGBO(255, 101, 101, 1);
const Color warning500 = Color.fromRGBO(255, 101, 101, 1);
2022-09-23 09:04:15 +00:00
const Color _warning400 = Color.fromRGBO(255, 111, 111, 1);
const Color _warning800 = Color(0xFFF53434);
2022-09-23 09:04:15 +00:00
const Color _caution500 = Color.fromRGBO(255, 194, 71, 1);
2022-11-21 02:31:46 +00:00
const Color _golden700 = Color(0xFFFDB816);
const Color _golden500 = Color(0xFFFFC336);
2023-02-22 12:50:42 +00:00
2022-11-21 02:31:46 +00:00
const List<Color> avatarLight = [
Color.fromRGBO(118, 84, 154, 1),
Color.fromRGBO(223, 120, 97, 1),
Color.fromRGBO(148, 180, 159, 1),
Color.fromRGBO(135, 162, 251, 1),
Color.fromRGBO(198, 137, 198, 1),
Color.fromRGBO(198, 137, 198, 1),
Color.fromRGBO(50, 82, 136, 1),
Color.fromRGBO(133, 180, 224, 1),
Color.fromRGBO(193, 163, 163, 1),
Color.fromRGBO(193, 163, 163, 1),
Color.fromRGBO(66, 97, 101, 1),
Color.fromRGBO(66, 97, 101, 1),
2022-12-18 05:26:44 +00:00
Color.fromRGBO(66, 97, 101, 1),
Color.fromRGBO(221, 157, 226, 1),
Color.fromRGBO(130, 171, 139, 1),
Color.fromRGBO(155, 187, 232, 1),
Color.fromRGBO(143, 190, 190, 1),
Color.fromRGBO(138, 195, 161, 1),
Color.fromRGBO(168, 176, 242, 1),
Color.fromRGBO(176, 198, 149, 1),
Color.fromRGBO(233, 154, 173, 1),
Color.fromRGBO(209, 132, 132, 1),
2023-08-19 11:39:56 +00:00
Color.fromRGBO(120, 181, 167, 1),
2022-11-21 02:31:46 +00:00
];
const List<Color> avatarDark = [
Color.fromRGBO(118, 84, 154, 1),
Color.fromRGBO(223, 120, 97, 1),
Color.fromRGBO(148, 180, 159, 1),
Color.fromRGBO(135, 162, 251, 1),
Color.fromRGBO(198, 137, 198, 1),
Color.fromRGBO(147, 125, 194, 1),
Color.fromRGBO(50, 82, 136, 1),
Color.fromRGBO(133, 180, 224, 1),
Color.fromRGBO(193, 163, 163, 1),
Color.fromRGBO(225, 160, 89, 1),
Color.fromRGBO(66, 97, 101, 1),
Color.fromRGBO(107, 119, 178, 1),
Color.fromRGBO(149, 127, 239, 1),
2022-12-18 05:26:44 +00:00
Color.fromRGBO(221, 157, 226, 1),
Color.fromRGBO(130, 171, 139, 1),
Color.fromRGBO(155, 187, 232, 1),
Color.fromRGBO(143, 190, 190, 1),
Color.fromRGBO(138, 195, 161, 1),
Color.fromRGBO(168, 176, 242, 1),
Color.fromRGBO(176, 198, 149, 1),
Color.fromRGBO(233, 154, 173, 1),
Color.fromRGBO(209, 132, 132, 1),
2023-08-19 11:39:56 +00:00
Color.fromRGBO(120, 181, 167, 1),
2022-11-21 02:31:46 +00:00
];