2020-08-22 05:18:36 +03:00
|
|
|
export const values = {
|
2020-09-06 01:05:04 +03:00
|
|
|
version: "1.0.0",
|
2020-11-26 02:19:02 +03:00
|
|
|
sds: "0.2.0",
|
2020-08-22 05:18:36 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
export const sizes = {
|
|
|
|
mobile: 768,
|
|
|
|
navigation: 288,
|
|
|
|
sidebar: 416,
|
|
|
|
header: 72,
|
2020-09-05 09:33:46 +03:00
|
|
|
tablet: 960,
|
2020-09-27 23:11:04 +03:00
|
|
|
desktop: 1024,
|
2020-12-09 07:22:17 +03:00
|
|
|
topOffset: 0, //NOTE(martina): Pushes UI down. 16 when there is a persistent announcement banner, 0 otherwise
|
2020-08-22 05:18:36 +03:00
|
|
|
};
|
|
|
|
|
2020-08-22 05:31:43 +03:00
|
|
|
export const system = {
|
2020-09-11 23:07:01 +03:00
|
|
|
foreground: "#f8f8f8",
|
2020-10-05 00:30:28 +03:00
|
|
|
gray: "#e5e5e5",
|
2020-09-27 00:15:37 +03:00
|
|
|
lightBorder: "#ececec",
|
2020-08-22 05:31:43 +03:00
|
|
|
border: "#d8d8d8",
|
|
|
|
darkGray: "#b2b2b2",
|
2020-09-27 07:43:25 +03:00
|
|
|
grayBlack: "#666666",
|
2020-08-22 05:31:43 +03:00
|
|
|
pitchBlack: "#0c0c0c",
|
2021-06-11 08:12:24 +03:00
|
|
|
brand: "#0084FF", //0666bb
|
2020-08-22 05:31:43 +03:00
|
|
|
link: "#2935ff",
|
2020-09-02 07:30:00 +03:00
|
|
|
slate: "#27292e",
|
|
|
|
moonstone: "#807d78",
|
|
|
|
wall: "#cfced3",
|
2020-09-27 03:57:29 +03:00
|
|
|
wallLight: "#F1F0F2",
|
|
|
|
newBlue: "#043D96",
|
|
|
|
newGreen: "#377749",
|
|
|
|
newYellow: "#F2B256",
|
2020-09-29 08:32:53 +03:00
|
|
|
newRed: "#BE5234",
|
2020-09-23 23:52:00 +03:00
|
|
|
shadow: "rgba(15, 14, 18, 0.03)",
|
2021-06-09 01:53:30 +03:00
|
|
|
blue: "#0084FF",
|
|
|
|
green: "#34D159",
|
2020-11-10 00:20:38 +03:00
|
|
|
yellow: "#FAB413",
|
2021-06-09 01:53:30 +03:00
|
|
|
red: "#FF4530",
|
2020-11-10 00:20:38 +03:00
|
|
|
black: "#0F0E12",
|
2021-03-12 03:23:43 +03:00
|
|
|
newBlack: "#000000",
|
2021-06-09 01:53:30 +03:00
|
|
|
bgGrayLight: "#E5E5EA",
|
2020-11-10 00:20:38 +03:00
|
|
|
bgGray: "#F2F2F2",
|
|
|
|
bgBlue: "#C0D8EE",
|
|
|
|
bgGreen: "#C0DACD",
|
|
|
|
bgYellow: "#FEEDC4",
|
|
|
|
bgRed: "#F1C4C4",
|
2021-06-09 01:53:30 +03:00
|
|
|
textGray: "#8E8E93",
|
2020-11-10 00:20:38 +03:00
|
|
|
textGrayLight: "#C3C3C4",
|
2021-06-09 01:53:30 +03:00
|
|
|
textGrayDark: "#48484A",
|
2020-11-10 00:20:38 +03:00
|
|
|
textBlack: "#0F0E12",
|
|
|
|
gray80: "#4B4A4D",
|
|
|
|
gray70: "#868688",
|
|
|
|
gray50: "#C3C3C4",
|
|
|
|
gray40: "#E5E5E5",
|
|
|
|
gray30: "#EBEBEB",
|
|
|
|
gray20: "#F2F2F2",
|
|
|
|
gray10: "#F8F8F8",
|
|
|
|
white: "#FFFFFF",
|
|
|
|
bgBlurGrayBlack: "rgba(15, 14, 18, 0.8)",
|
|
|
|
bgBlurBlack: "rgba(15, 14, 18, 0.9)",
|
2021-02-04 22:16:24 +03:00
|
|
|
active: "#00BB00",
|
2021-03-18 16:16:37 +03:00
|
|
|
blurBlack: "#262626",
|
|
|
|
bgBlurGray: "#403F42",
|
2021-06-09 01:53:30 +03:00
|
|
|
bgBlurWhiteTRN: "rgba(255,255,255,0.3)",
|
2021-05-06 03:08:14 +03:00
|
|
|
grayLight2: "#AEAEB2",
|
2021-06-15 23:01:01 +03:00
|
|
|
grayLight5: "#E5E5EA",
|
2020-08-22 05:31:43 +03:00
|
|
|
};
|
|
|
|
|
2020-11-11 04:44:21 +03:00
|
|
|
export const shadow = {
|
|
|
|
light: "0 3px 6px 0 rgba(178, 178, 178, 0.15)",
|
|
|
|
medium: "0 8px 24px 0 rgba(178, 178, 178, 0.2)",
|
|
|
|
large: "0 12px 48px 0 rgba(178, 178, 178, 0.3)",
|
|
|
|
subtle: "0 1px 0 0 rgba(15, 14, 18, 0.04)",
|
|
|
|
};
|
|
|
|
|
2020-08-22 05:32:34 +03:00
|
|
|
export const zindex = {
|
|
|
|
navigation: 1,
|
2020-10-05 00:30:28 +03:00
|
|
|
body: 2,
|
2020-09-13 01:08:36 +03:00
|
|
|
sidebar: 5,
|
2020-09-29 08:47:27 +03:00
|
|
|
alert: 3,
|
|
|
|
header: 4,
|
2020-09-13 01:08:36 +03:00
|
|
|
modal: 6,
|
|
|
|
tooltip: 7,
|
2021-05-06 03:08:14 +03:00
|
|
|
cta: 8,
|
2020-08-22 05:32:34 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
export const font = {
|
|
|
|
text: `'inter-regular', -apple-system, BlinkMacSystemFont, arial, sans-serif`,
|
|
|
|
semiBold: `'inter-semi-bold', -apple-system, BlinkMacSystemFont, arial, sans-serif`,
|
|
|
|
medium: `'inter-medium', -apple-system, BlinkMacSystemFont, arial, sans-serif`,
|
|
|
|
mono: `'mono', monaco, monospace`,
|
|
|
|
monoBold: `'mono-bold', monaco, monospace`,
|
|
|
|
monoCode: `'fira-code-regular', mono, monospace`,
|
|
|
|
monoCodeBold: `'fira-code-bold', mono-bold, monospace`,
|
|
|
|
code: `'jet-brains-regular', mono, monospace`,
|
|
|
|
codeBold: `'jet-brains-bold', mono, monospace`,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const typescale = {
|
2020-11-01 21:40:03 +03:00
|
|
|
lvlN1: `0.75rem`,
|
|
|
|
lvl0: `0.875rem`,
|
2020-08-22 05:32:34 +03:00
|
|
|
lvl1: `1rem`,
|
|
|
|
lvl2: `1.25rem`,
|
|
|
|
lvl3: `1.563rem`,
|
|
|
|
lvl4: `1.953rem`,
|
2020-09-09 02:37:11 +03:00
|
|
|
lvl5: `2.441rem`,
|
|
|
|
lvl6: `3.052rem`,
|
|
|
|
lvl7: `3.815rem`,
|
|
|
|
lvl8: `4.768rem`,
|
|
|
|
lvl9: `5.96rem`,
|
|
|
|
lvl10: `7.451rem`,
|
|
|
|
lvl11: `9.313rem`,
|
2020-08-22 05:32:34 +03:00
|
|
|
};
|
|
|
|
|
2020-08-22 05:18:36 +03:00
|
|
|
export const theme = {
|
|
|
|
foreground: system.white,
|
|
|
|
ctaBackground: system.brand,
|
|
|
|
pageBackground: system.foreground,
|
|
|
|
pageText: system.black,
|
|
|
|
};
|
2020-08-25 20:46:41 +03:00
|
|
|
|
|
|
|
export const gateways = {
|
2020-09-12 06:43:28 +03:00
|
|
|
ipfs: "https://slate.textile.io/ipfs",
|
2020-08-26 07:13:02 +03:00
|
|
|
};
|
2021-02-06 03:09:45 +03:00
|
|
|
|
2021-05-17 06:23:46 +03:00
|
|
|
export const hostname = "https://slate.host";
|
|
|
|
|
2021-02-17 03:28:57 +03:00
|
|
|
// more important filetypes to consider:
|
|
|
|
// midi
|
|
|
|
// txt, rtf, docx
|
|
|
|
// html, css, js, other code-related extensions
|
|
|
|
// json, csv, other script/data extensions
|
2021-02-06 03:09:45 +03:00
|
|
|
export const filetypes = {
|
2021-02-17 03:28:57 +03:00
|
|
|
images: ["image/jpeg", "image/png", "image/webp", "image/gif"],
|
|
|
|
audio: ["audio/mpeg", "audio/aac", "audio/flac", "audio/wav", "audio/webm"],
|
|
|
|
assets: ["font/ttf", "font/otf", "image/svg+xml"],
|
|
|
|
videos: ["video/mpeg", "video/webm", "video/quicktime"],
|
|
|
|
books: ["application/pdf", "application/epub+zip", "application/vnd.amazon.ebook"],
|
2021-02-06 03:09:45 +03:00
|
|
|
};
|
2021-05-06 03:08:14 +03:00
|
|
|
|
|
|
|
export const linkPreviewSizeLimit = 5000000; //NOTE(martina): 5mb limit for twitter preview images
|