index.community/frontend/src/constants.tsx

58 lines
1.1 KiB
TypeScript
Raw Normal View History

2018-09-04 20:56:49 +00:00
/* Screen widths less than this will be treated as mobile */
2019-07-23 16:32:43 +00:00
export const DESKTOP_WIDTH_THRESHOLD = 1000;
2019-07-14 11:47:06 +00:00
export const DEFAULT_NODE_COLOR = "#CED9E0";
export const SELECTED_NODE_COLOR = "#48AFF0";
2019-07-26 22:30:11 +00:00
export const SEARCH_RESULT_COLOR = "#AD99FF";
export const HOVERED_NODE_COLOR = SEARCH_RESULT_COLOR;
2019-07-26 22:30:11 +00:00
// From https://blueprintjs.com/docs/#core/colors.qualitative-color-schemes, but brightened
2019-07-24 15:51:44 +00:00
export const QUALITATIVE_COLOR_SCHEME = [
2019-07-26 22:30:11 +00:00
"#669EFF",
"#FFC940",
"#FF6E4A",
"#62D96B",
2019-07-26 22:30:11 +00:00
"#C274C2",
"#2EE6D6",
"#FF66A1",
"#D1F26D",
"#C99765",
"#AD99FF",
"#0E5A8A",
"#0A6640",
"#A66321",
"#A82A2A"
2019-07-24 15:51:44 +00:00
];
2019-07-27 17:58:40 +00:00
// From https://blueprintjs.com/docs/#core/colors.sequential-color-schemes
export const QUANTITATIVE_COLOR_SCHEME = [
"#FFB7A5",
"#F5A793",
"#EB9882",
"#E18970",
"#D77A60",
"#CC6A4F",
"#C15B3F",
"#B64C2F",
"#AA3C1F",
"#9E2B0E"
];
export const INSTANCE_DOMAIN_PATH = "/instance/:domain";
export interface IInstanceDomainPath {
domain: string;
}
2019-08-04 11:39:29 +00:00
2019-08-18 13:27:50 +00:00
export const INSTANCE_TYPES = [
"mastodon",
"pleroma",
"misskey",
"gab",
2019-08-18 13:27:50 +00:00
"gnusocial",
"writefreely",
"peertube",
2019-08-18 14:43:06 +00:00
"friendica",
2019-08-18 14:51:21 +00:00
"hubzilla",
"plume"
2019-08-18 13:27:50 +00:00
];