slate/common/constants.js

89 lines
2.0 KiB
JavaScript
Raw Normal View History

2020-08-22 05:18:36 +03:00
export const values = {
2020-09-06 01:05:04 +03:00
version: "1.0.0",
2020-08-22 05:18:36 +03:00
sds: "0.1.0",
};
export const sizes = {
mobile: 768,
navigation: 288,
sidebar: 416,
2020-09-27 23:11:04 +03:00
mobileSidebar: 60,
2020-08-22 05:18:36 +03:00
header: 72,
tablet: 960,
2020-09-27 23:11:04 +03:00
desktop: 1024,
2020-09-29 01:38:35 +03:00
topOffset: 16, //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 = {
white: "#ffffff",
2020-09-11 23:07:01 +03:00
foreground: "#f8f8f8",
2020-08-22 05:31:43 +03:00
gray: "#e0e0e0",
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
black: "#1b1f23",
pitchBlack: "#0c0c0c",
brand: "#0666bb",
blue: "#0061BB",
2020-08-22 05:31:43 +03:00
link: "#2935ff",
green: "#28a745",
2020-09-27 03:57:29 +03:00
yellow: "#FFC940",
2020-09-11 06:57:17 +03:00
red: "#E05435",
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-23 23:52:00 +03:00
shadow: "rgba(15, 14, 18, 0.03)",
2020-08-22 05:31:43 +03:00
};
2020-08-22 05:32:34 +03:00
export const zindex = {
navigation: 1,
sidebar: 5,
alert: 4,
2020-08-22 05:32:34 +03:00
header: 3,
modal: 6,
tooltip: 7,
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 = {
lvl0: `0.8rem`,
2020-08-22 05:32:34 +03:00
lvl1: `1rem`,
lvl2: `1.25rem`,
lvl3: `1.563rem`,
lvl4: `1.953rem`,
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,
};
export const gateways = {
ipfs: "https://slate.textile.io/ipfs",
2020-08-26 07:13:02 +03:00
};