2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2015 Signal Messenger, LLC
|
2020-10-30 20:34:04 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-12-08 22:23:05 +00:00
|
|
|
$inter: Inter, 'Helvetica Neue', 'Source Sans Pro', 'Source Han Sans SC',
|
|
|
|
'Source Han Sans CN', 'Hiragino Sans GB', 'Hiragino Kaku Gothic',
|
|
|
|
'Microsoft Yahei UI', Helvetica, Arial, sans-serif;
|
2015-01-30 04:53:49 +00:00
|
|
|
|
2023-04-18 01:16:41 +00:00
|
|
|
$monospace: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo,
|
|
|
|
Consolas, monospace;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
// -- V3 Colors
|
2015-11-09 20:07:40 +00:00
|
|
|
|
2020-03-05 21:24:51 +00:00
|
|
|
$color-accent-blue: #2c6bed;
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-accent-green: #4caf50;
|
|
|
|
$color-accent-red: #f44336;
|
|
|
|
$color-accent-yellow: #ffd624;
|
2018-08-14 00:06:50 +00:00
|
|
|
|
2018-07-09 21:29:13 +00:00
|
|
|
$color-white: #ffffff;
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-gray-02: #f6f6f6;
|
2022-10-18 17:12:02 +00:00
|
|
|
$color-gray-04: #f0f0f0;
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-gray-05: #e9e9e9;
|
|
|
|
$color-gray-15: #dedede;
|
2020-09-16 22:42:48 +00:00
|
|
|
$color-gray-20: #c6c6c6;
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-gray-25: #b9b9b9;
|
|
|
|
$color-gray-45: #848484;
|
|
|
|
$color-gray-60: #5e5e5e;
|
2022-05-11 20:59:58 +00:00
|
|
|
$color-gray-62: #545454;
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-gray-65: #4a4a4a;
|
|
|
|
$color-gray-75: #3b3b3b;
|
|
|
|
$color-gray-80: #2e2e2e;
|
|
|
|
$color-gray-90: #1b1b1b;
|
|
|
|
$color-gray-95: #121212;
|
2018-09-26 00:26:06 +00:00
|
|
|
$color-black: #000000;
|
|
|
|
|
2021-10-12 23:59:08 +00:00
|
|
|
$color-white-alpha-06: rgba($color-white, 0.06);
|
2022-08-31 20:42:09 +00:00
|
|
|
$color-white-alpha-08: rgba($color-white, 0.08);
|
2021-10-12 23:59:08 +00:00
|
|
|
$color-white-alpha-12: rgba($color-white, 0.12);
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-white-alpha-20: rgba($color-white, 0.2);
|
2020-12-01 16:25:29 +00:00
|
|
|
$color-white-alpha-40: rgba($color-white, 0.4);
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-white-alpha-60: rgba($color-white, 0.6);
|
2021-03-10 20:36:58 +00:00
|
|
|
$color-white-alpha-70: rgba($color-white, 0.7);
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-white-alpha-80: rgba($color-white, 0.8);
|
|
|
|
$color-white-alpha-90: rgba($color-white, 0.9);
|
|
|
|
|
|
|
|
$color-black-alpha-05: rgba($color-black, 0.05);
|
2021-10-12 23:59:08 +00:00
|
|
|
$color-black-alpha-06: rgba($color-black, 0.06);
|
2021-11-12 01:17:29 +00:00
|
|
|
$color-black-alpha-08: rgba($color-black, 0.08);
|
2021-10-12 23:59:08 +00:00
|
|
|
$color-black-alpha-12: rgba($color-black, 0.12);
|
2022-05-03 23:50:44 +00:00
|
|
|
$color-black-alpha-16: rgba($color-black, 0.16);
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-black-alpha-20: rgba($color-black, 0.2);
|
2022-06-13 23:37:29 +00:00
|
|
|
$color-black-alpha-24: rgba($color-black, 0.24);
|
2021-09-21 01:23:55 +00:00
|
|
|
$color-black-alpha-30: rgba($color-black, 0.3);
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-black-alpha-40: rgba($color-black, 0.4);
|
2021-03-10 20:36:58 +00:00
|
|
|
$color-black-alpha-50: rgba($color-black, 0.5);
|
2019-10-04 18:06:17 +00:00
|
|
|
$color-black-alpha-60: rgba($color-black, 0.6);
|
2021-04-27 22:11:59 +00:00
|
|
|
$color-black-alpha-70: rgba($color-black, 0.7);
|
2021-03-10 20:36:58 +00:00
|
|
|
$color-black-alpha-80: rgba($color-black, 0.8);
|
2021-08-24 21:47:14 +00:00
|
|
|
$color-black-alpha-90: rgba($color-black, 0.9);
|
2022-05-03 23:50:44 +00:00
|
|
|
|
|
|
|
$color-transparent: rgba(0, 0, 0, 0);
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
$color-ultramarine-dark: #1851b4;
|
|
|
|
$color-ultramarine-icon: #3a76f0;
|
|
|
|
$color-ultramarine-light: #6191f3;
|
2021-10-25 22:02:13 +00:00
|
|
|
$color-ultramarine-dawn: #406ec9;
|
2021-05-28 16:15:17 +00:00
|
|
|
$color-ultramarine: #2c6bed;
|
2018-09-26 00:26:06 +00:00
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
// Flat colors
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
$color-crimson: #cf163e;
|
|
|
|
$color-vermilion: #c73f0a;
|
|
|
|
$color-burlap: #6f6a58;
|
|
|
|
$color-forest: #3b7845;
|
|
|
|
$color-wintergreen: #1d8663;
|
|
|
|
$color-teal: #077d92;
|
|
|
|
$color-blue: #336ba3;
|
|
|
|
$color-indigo: #6058ca;
|
|
|
|
$color-violet: #9932c8;
|
|
|
|
$color-plum: #aa377a;
|
|
|
|
$color-taupe: #8f616a;
|
|
|
|
$color-steel: #71717f;
|
|
|
|
|
|
|
|
// Gradient colors
|
|
|
|
|
|
|
|
$color-ultramarine-gradient: (
|
|
|
|
deg: 180deg,
|
|
|
|
start: #0552f0,
|
|
|
|
end: $color-ultramarine,
|
|
|
|
);
|
|
|
|
$color-basil: (
|
|
|
|
deg: 180deg,
|
|
|
|
start: #2f9373,
|
|
|
|
end: #077343,
|
|
|
|
);
|
|
|
|
$color-ember: (
|
|
|
|
deg: 168deg,
|
|
|
|
start: #e57c00,
|
|
|
|
end: #5e0000,
|
|
|
|
);
|
|
|
|
$color-fluorescent: (
|
|
|
|
deg: 192deg,
|
|
|
|
start: #ec13dd,
|
|
|
|
end: #1b36c6,
|
|
|
|
);
|
|
|
|
$color-infrared: (
|
|
|
|
deg: 192deg,
|
|
|
|
start: #f65560,
|
|
|
|
end: #442ced,
|
|
|
|
);
|
|
|
|
$color-lagoon: (
|
|
|
|
deg: 180deg,
|
|
|
|
start: #004066,
|
|
|
|
end: #32867d,
|
|
|
|
);
|
|
|
|
$color-midnight: (
|
|
|
|
deg: 180deg,
|
|
|
|
start: #2c2c3a,
|
|
|
|
end: #787891,
|
|
|
|
);
|
|
|
|
$color-sea: (
|
|
|
|
deg: 180deg,
|
|
|
|
start: #498fd4,
|
|
|
|
end: #2c66a0,
|
|
|
|
);
|
|
|
|
$color-sublime: (
|
|
|
|
deg: 180deg,
|
|
|
|
start: #6281d5,
|
|
|
|
end: #974460,
|
|
|
|
);
|
|
|
|
$color-tangerine: (
|
|
|
|
deg: 192deg,
|
|
|
|
start: #db7133,
|
|
|
|
end: #911231,
|
|
|
|
);
|
2019-10-04 18:06:17 +00:00
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
// Avatars
|
|
|
|
|
2021-08-06 00:17:05 +00:00
|
|
|
$avatar-color-A100: (
|
|
|
|
bg: #e3e3fe,
|
|
|
|
fg: #3838f5,
|
|
|
|
);
|
|
|
|
$avatar-color-A110: (
|
|
|
|
bg: #dde7fc,
|
|
|
|
fg: #1251d3,
|
|
|
|
);
|
|
|
|
$avatar-color-A120: (
|
|
|
|
bg: #d8e8f0,
|
|
|
|
fg: #086da0,
|
|
|
|
);
|
|
|
|
$avatar-color-A130: (
|
|
|
|
bg: #cde4cd,
|
|
|
|
fg: #067906,
|
|
|
|
);
|
|
|
|
$avatar-color-A140: (
|
|
|
|
bg: #eae0fd,
|
|
|
|
fg: #661aff,
|
|
|
|
);
|
|
|
|
$avatar-color-A150: (
|
|
|
|
bg: #f5e3fe,
|
|
|
|
fg: #9f00f0,
|
|
|
|
);
|
|
|
|
$avatar-color-A160: (
|
|
|
|
bg: #f6d8ec,
|
|
|
|
fg: #b8057c,
|
|
|
|
);
|
|
|
|
$avatar-color-A170: (
|
|
|
|
bg: #f5d7d7,
|
|
|
|
fg: #be0404,
|
|
|
|
);
|
|
|
|
$avatar-color-A180: (
|
|
|
|
bg: #fef5d0,
|
|
|
|
fg: #836b01,
|
|
|
|
);
|
|
|
|
$avatar-color-A190: (
|
|
|
|
bg: #eae6d5,
|
|
|
|
fg: #7d6f40,
|
|
|
|
);
|
|
|
|
$avatar-color-A200: (
|
|
|
|
bg: #d2d2dc,
|
|
|
|
fg: #4f4f6d,
|
|
|
|
);
|
|
|
|
$avatar-color-A210: (
|
|
|
|
bg: #d7d7d9,
|
|
|
|
fg: #5c5c5c,
|
|
|
|
);
|
2016-08-24 22:15:55 +00:00
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
// Maps for easy manipulation
|
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
$avatar-colors: (
|
2021-08-06 00:17:05 +00:00
|
|
|
A100: $avatar-color-A100,
|
|
|
|
A110: $avatar-color-A110,
|
|
|
|
A120: $avatar-color-A120,
|
|
|
|
A130: $avatar-color-A130,
|
|
|
|
A140: $avatar-color-A140,
|
|
|
|
A150: $avatar-color-A150,
|
|
|
|
A160: $avatar-color-A160,
|
|
|
|
A170: $avatar-color-A170,
|
|
|
|
A180: $avatar-color-A180,
|
|
|
|
A190: $avatar-color-A190,
|
|
|
|
A200: $avatar-color-A200,
|
|
|
|
A210: $avatar-color-A210,
|
2019-10-04 18:06:17 +00:00
|
|
|
);
|
2021-05-28 16:15:17 +00:00
|
|
|
|
|
|
|
$conversation-colors: (
|
2022-02-11 16:59:24 +00:00
|
|
|
'blue': $color-blue,
|
|
|
|
'burlap': $color-burlap,
|
|
|
|
'crimson': $color-crimson,
|
|
|
|
'forest': $color-forest,
|
|
|
|
'indigo': $color-indigo,
|
|
|
|
'plum': $color-plum,
|
|
|
|
'steel': $color-steel,
|
|
|
|
'taupe': $color-taupe,
|
|
|
|
'teal': $color-teal,
|
|
|
|
'vermilion': $color-vermilion,
|
|
|
|
'violet': $color-violet,
|
|
|
|
'wintergreen': $color-wintergreen,
|
2019-10-04 18:06:17 +00:00
|
|
|
);
|
2021-05-28 16:15:17 +00:00
|
|
|
|
|
|
|
$conversation-colors-gradient: (
|
2022-02-11 16:59:24 +00:00
|
|
|
'ultramarine': $color-ultramarine-gradient,
|
|
|
|
'basil': $color-basil,
|
|
|
|
'ember': $color-ember,
|
|
|
|
'fluorescent': $color-fluorescent,
|
|
|
|
'infrared': $color-infrared,
|
|
|
|
'lagoon': $color-lagoon,
|
|
|
|
'midnight': $color-midnight,
|
|
|
|
'sea': $color-sea,
|
|
|
|
'sublime': $color-sublime,
|
|
|
|
'tangerine': $color-tangerine,
|
2019-10-04 18:06:17 +00:00
|
|
|
);
|
|
|
|
|
2021-05-28 16:15:17 +00:00
|
|
|
// Used for the safety number change warning banner
|
|
|
|
$color-ios-blue-tint: #b0c8f9;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
// -- Non-V3 colors
|
|
|
|
|
|
|
|
// Used in spinners
|
|
|
|
$color-white-alpha-40: rgba($color-white, 0.4);
|
|
|
|
|
|
|
|
// Used in tap-to-view error states
|
|
|
|
$color-deep-red: #ff261f;
|
2016-08-29 06:57:33 +00:00
|
|
|
|
2022-03-08 14:32:42 +00:00
|
|
|
$color-selected-message-background-light: rgba(44, 107, 237, 0.24);
|
|
|
|
$color-selected-message-background-dark: $color-gray-65;
|
|
|
|
|
2019-10-04 18:06:17 +00:00
|
|
|
// -- A few layout variables used cross-file
|
2018-07-09 21:29:13 +00:00
|
|
|
|
2020-12-12 00:45:14 +00:00
|
|
|
$header-height: 52px;
|
2020-01-23 23:57:37 +00:00
|
|
|
|
|
|
|
$ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
|
2021-01-08 18:58:28 +00:00
|
|
|
|
|
|
|
$calling-background-color: $color-gray-95;
|
2021-12-01 23:13:09 +00:00
|
|
|
|
|
|
|
// General
|
|
|
|
|
|
|
|
$z-index-negative: -1;
|
|
|
|
$z-index-base: 1;
|
|
|
|
$z-index-above-base: 2;
|
|
|
|
$z-index-above-above-base: 3;
|
|
|
|
$z-index-popup-overlay: 99;
|
|
|
|
$z-index-popup: 100;
|
|
|
|
$z-index-context-menu: 125;
|
|
|
|
$z-index-tooltip: 150;
|
|
|
|
$z-index-toast: 200;
|
|
|
|
$z-index-on-top-of-everything: 9000;
|
2022-06-08 22:00:32 +00:00
|
|
|
$z-index-window-controls: 10000;
|
2021-12-01 23:13:09 +00:00
|
|
|
|
|
|
|
// Component specific
|
|
|
|
// The scroll down button should be above everything in the timeline but
|
|
|
|
// popups, tooltips, toasts, and other items should stack above it.
|
2022-07-22 01:38:27 +00:00
|
|
|
$z-index-story-meta: 3;
|
2021-12-01 23:13:09 +00:00
|
|
|
$z-index-scroll-down-button: 10;
|
2022-08-05 01:07:46 +00:00
|
|
|
$z-index-stories: 98;
|
|
|
|
$z-index-calling: 100;
|
|
|
|
$z-index-modal-host: 101;
|
2022-04-08 18:50:26 +00:00
|
|
|
$z-index-above-popup: 101;
|
2022-04-07 23:27:20 +00:00
|
|
|
$z-index-calling-pip: 103;
|
2021-12-01 23:13:09 +00:00
|
|
|
$z-index-above-context-menu: 126;
|