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-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",
|
|
|
|
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",
|
2020-09-23 23:52:00 +03:00
|
|
|
shadow: "rgba(15, 14, 18, 0.03)",
|
2021-07-07 21:43:19 +03:00
|
|
|
|
2020-11-10 00:20:38 +03:00
|
|
|
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-23 13:08:51 +03:00
|
|
|
bgBlurWhiteTRN: "rgba(255,255,255,0.7)",
|
2021-07-07 21:43:19 +03:00
|
|
|
|
|
|
|
//system color
|
|
|
|
white: "#FFFFFF",
|
|
|
|
grayLight6: "#F2F5F7",
|
|
|
|
grayLight5: "#E5E8EA",
|
|
|
|
grayLight4: "#D1D4D6",
|
|
|
|
grayLight3: "#C7CACC",
|
|
|
|
grayLight2: "#AEB0B2",
|
|
|
|
gray: "#8E9093",
|
|
|
|
grayDark2: "#636566",
|
|
|
|
grayDark3: "#48494A",
|
|
|
|
grayDark4: "#3A3B3C",
|
|
|
|
grayDark5: "#2C2D2E",
|
|
|
|
grayDark6: "#1C1D1E",
|
|
|
|
black: "#00050A",
|
|
|
|
|
|
|
|
blue: "#0084FF",
|
|
|
|
green: "34D159",
|
|
|
|
yellow: "#FFD600",
|
|
|
|
red: "#FF4530",
|
|
|
|
purple: "#585CE6",
|
|
|
|
teal: "#64C8FA",
|
|
|
|
pink: "#FF375F",
|
|
|
|
orange: "#FF9F00",
|
|
|
|
|
|
|
|
blueLight6: "#D5EBFF",
|
|
|
|
blueLight5: "#AAD7FF",
|
|
|
|
blueLight4: "#80C3FF",
|
|
|
|
blueLight3: "#55AEFF",
|
|
|
|
bluelight2: "#2B99FF",
|
|
|
|
blueDark2: "#006FD5",
|
|
|
|
blueDark3: "#0059AA",
|
|
|
|
blueDark4: "#004380",
|
|
|
|
blueDark5: "#002D55",
|
|
|
|
blueDark6: "#00172B",
|
|
|
|
|
|
|
|
greenLight6: "#D5FFDE",
|
|
|
|
greenLight5: "#AAFFBE",
|
|
|
|
greenLight4: "#86FCA2",
|
|
|
|
greenLight3: "#66F287",
|
|
|
|
greenLight2: "#4BE46F",
|
|
|
|
greenDark2: "#20B944",
|
|
|
|
greenDark3: "#119D32",
|
|
|
|
greenDark4: "#067C22",
|
|
|
|
greenDark5: "#005514",
|
|
|
|
greenDark6: "#002B09",
|
|
|
|
|
|
|
|
yellowLight6: "#FFFFD5",
|
|
|
|
yellowLight5: "#FFFBAA",
|
|
|
|
yellowLight4: "#FFF280",
|
|
|
|
yellowLight3: "#FFE655",
|
|
|
|
yellowLight2: "#FFD62B",
|
|
|
|
yellowDark2: "#D5AC00",
|
|
|
|
yellowDark3: "#AA9100",
|
|
|
|
yellowDark4: "#807300",
|
|
|
|
yellowDark5: "#555100",
|
|
|
|
yellowDark6: "#2B2A00",
|
|
|
|
|
|
|
|
redLight6: "#FFD5D5",
|
|
|
|
redLight5: "#FFAFAA",
|
|
|
|
redLight4: "#FF8D80",
|
|
|
|
redlight3: "#FF715E",
|
|
|
|
redLight2: "#FF5944",
|
|
|
|
redDark2: "#D52E1A",
|
|
|
|
redDark3: "#AA1C09",
|
|
|
|
redDark4: "#800E00",
|
|
|
|
redDark5: "#550500",
|
|
|
|
redDark6: "#2B0000",
|
|
|
|
};
|
|
|
|
|
|
|
|
export const semantic = {
|
|
|
|
//semantic color
|
|
|
|
textWhite: system.white,
|
|
|
|
textGrayLight: system.grayLight3,
|
|
|
|
textGray: system.gray,
|
|
|
|
textGrayDark: system.grayDark3,
|
|
|
|
textBlack: system.black,
|
|
|
|
|
|
|
|
bgLight: system.grayLight6,
|
|
|
|
bgGrayLight: system.grayLight5,
|
|
|
|
bgBlurWhite: "rgba(system.white, 0.7)",
|
|
|
|
bgBlurWhiteOP: "rgba(system.white, 0.85)",
|
|
|
|
bgBlurWhiteTRN: "rgba(system.white, 0.3)",
|
|
|
|
bgBlurlight6: "rgba(system.grayLight6, 0.7)",
|
|
|
|
bgBlurLight6OP: "rgba(system.grayLight6, 0.85)",
|
|
|
|
bgBlurLightTRN: "rgba(system.grayLight6, 0.3)",
|
|
|
|
|
|
|
|
bgDark: system.grayDark6,
|
|
|
|
bgLightDark: system.grayDark5,
|
|
|
|
bgBlurBlack: "rgba(system.black, 0.5)",
|
|
|
|
bgBlurBlackOP: "rgba(system.black, 0.85)",
|
|
|
|
bgBlurBlackTRN: "rgba(system.black, 0.3)",
|
|
|
|
bgBlurDark6: "rgba(system.black, 0.5)",
|
|
|
|
bgBlurDark6OP: "rgba(system.black, 0.85)",
|
|
|
|
bgBlurDark6TRN: "rgba(system.black, 0.3)",
|
|
|
|
|
|
|
|
bgBlue: system.blueLight6,
|
|
|
|
bgGreen: system.greenLight6,
|
|
|
|
bgYellow: system.yellowLight6,
|
|
|
|
bgRed: system.redLight6,
|
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,
|
2021-07-07 22:14:51 +03:00
|
|
|
ctaBackground: system.blue,
|
2020-08-22 05:18:36 +03:00
|
|
|
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
|