taskcafe/frontend/src/shared/utils/editorTheme.ts

94 lines
2.4 KiB
TypeScript
Raw Normal View History

2020-09-03 03:25:28 +02:00
import theme from 'App/ThemeStyles';
const colors = {
2021-05-03 00:31:24 +02:00
almostBlack: 'rgb(38, 44, 73)',
lightBlack: 'rgb(16, 22, 58)',
bgPrimary: 'rgb(16, 22, 58)',
almostWhite: 'rgb(194, 198, 220)',
2020-09-03 03:25:28 +02:00
white: '#FFF',
2021-05-03 00:31:24 +02:00
white10: 'rgb(194, 198, 220)',
2020-09-03 03:25:28 +02:00
black: '#000',
black10: 'rgba(0, 0, 0, 0.1)',
2021-05-03 00:31:24 +02:00
primary: 'rgb(115, 103, 240)',
2020-09-03 03:25:28 +02:00
greyLight: '#F4F7FA',
grey: '#E8EBED',
greyMid: '#C5CCD3',
greyDark: '#DAE1E9',
};
export const base = {
...colors,
2021-05-03 00:31:24 +02:00
fontFamily: 'Open Sans',
2020-09-03 03:25:28 +02:00
fontFamilyMono: "'SFMono-Regular',Consolas,'Liberation Mono', Menlo, Courier,monospace",
fontWeight: 400,
2021-05-03 00:31:24 +02:00
zIndex: 1000000,
2020-09-03 03:25:28 +02:00
link: colors.primary,
placeholder: '#B1BECC',
2021-05-03 00:31:24 +02:00
textSecondary: '#fff',
2020-09-03 03:25:28 +02:00
textLight: colors.white,
textHighlight: '#b3e7ff',
2021-05-03 00:31:24 +02:00
textHighlightForeground: colors.white,
2020-09-03 03:25:28 +02:00
selected: colors.primary,
codeComment: '#6a737d',
codePunctuation: '#5e6687',
codeNumber: '#d73a49',
codeProperty: '#c08b30',
codeTag: '#3d8fd1',
codeString: '#032f62',
codeSelector: '#6679cc',
codeAttr: '#c76b29',
codeEntity: '#22a2c9',
codeKeyword: '#d73a49',
codeFunction: '#6f42c1',
codeStatement: '#22a2c9',
codePlaceholder: '#3d8fd1',
codeInserted: '#202746',
codeImportant: '#c94922',
2021-05-03 00:31:24 +02:00
blockToolbarBackground: colors.bgPrimary,
blockToolbarTrigger: colors.white,
2020-09-03 03:25:28 +02:00
blockToolbarTriggerIcon: colors.white,
2021-05-03 00:31:24 +02:00
blockToolbarItem: colors.white,
blockToolbarText: colors.white,
blockToolbarHoverBackground: colors.primary,
blockToolbarDivider: colors.almostWhite,
2020-09-03 03:25:28 +02:00
noticeInfoBackground: '#F5BE31',
noticeInfoText: colors.almostBlack,
noticeTipBackground: '#9E5CF7',
noticeTipText: colors.white,
noticeWarningBackground: '#FF5C80',
noticeWarningText: colors.white,
};
2021-05-03 00:31:24 +02:00
2020-09-03 03:25:28 +02:00
export const dark = {
...base,
2021-05-03 00:31:24 +02:00
background: colors.almostBlack,
text: colors.almostWhite,
code: colors.almostWhite,
cursor: colors.white,
2020-09-03 03:25:28 +02:00
divider: '#4E5C6E',
placeholder: '#52657A',
2021-05-03 00:31:24 +02:00
toolbarBackground: colors.bgPrimary,
toolbarHoverBackground: colors.primary,
toolbarInput: colors.almostWhite,
toolbarItem: colors.white,
2020-09-03 03:25:28 +02:00
tableDivider: colors.lightBlack,
tableSelected: colors.primary,
tableSelectedBackground: '#002333',
quote: colors.greyDark,
codeBackground: colors.black,
codeBorder: colors.lightBlack,
codeString: '#3d8fd1',
horizontalRule: colors.lightBlack,
imageErrorBackground: 'rgba(0, 0, 0, 0.5)',
2021-05-03 00:31:24 +02:00
scrollbarBackground: colors.black,
scrollbarThumb: colors.lightBlack,
2020-09-03 03:25:28 +02:00
};
export default dark;