Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

merge pathfinder into feat/modify

QiShaoXuan404edececa92
diff --cc packages/app/src/styles/theme.ts
index 0ce8d02764,8ebafce72e..e54ba4a4fd
--- a/packages/app/src/styles/theme.ts
+++ b/packages/app/src/styles/theme.ts
@@@ -17,9 -17,8 +17,9 @@@ export const getLightTheme =
pageBackground: '#fff',
hoverBackground: '#F1F3FF',
popoverBackground: '#fff',
- toolTipBackground: '#6880FF',
+ tooltipBackground: '#6880FF',
codeBackground: '#f2f5f9',
+ warningBackground: '#FFF9C7',
textColor: '#3A4C5C',
edgelessTextColor: '#3A4C5C',
@@@ -82,8 -82,6 +84,7 @@@ export const getDarkTheme =
editorMode === 'edgeless'
? lightTheme.colors.codeBackground
: '#505662',
- toolTipBackground: '#1F2021',
+ warningBackground: '#FFF9C7',
textColor: '#fff',
edgelessTextColor: '#3A4C5C',
@@@ -125,7 -123,6 +127,7 @@@ export const globalThemeVariables:
'--affine-popover-background': theme.colors.popoverBackground,
'--affine-hover-background': theme.colors.hoverBackground,
'--affine-code-background': theme.colors.codeBackground,
- '--affine-tooltip-background': theme.colors.toolTipBackground,
++ '--affine-tooltip-background': theme.colors.tooltipBackground,
'--affine-text-color': theme.colors.textColor,
'--affine-edgeless-text-color': theme.colors.edgelessTextColor,
@@@ -141,6 -138,6 +143,7 @@@
'--affine-placeholder-color': theme.colors.placeHolderColor,
'--affine-border-color': theme.colors.borderColor,
'--affine-disable-color': theme.colors.disableColor,
++ '--affine-tooltip-color': theme.colors.tooltipColor,
'--affine-modal-shadow': theme.shadow.modal,
'--affine-popover-shadow': theme.shadow.popover,
diff --cc packages/app/src/styles/types.ts
index dc14599114,af4c1f8661..155842eebc
--- a/packages/app/src/styles/types.ts
+++ b/packages/app/src/styles/types.ts
@@@ -21,10 -21,10 +21,10 @@@ export interface AffineTheme
pageBackground: string;
popoverBackground: string;
+ tooltipBackground: string;
hoverBackground: string;
codeBackground: string;
- toolTipBackground: string;
-
+ warningBackground: string;
// Use for the page`s text
textColor: string;
// Use for the editor`s text, because in edgeless mode text is different form other
@@@ -79,7 -79,6 +80,7 @@@ export interface AffineThemeCSSVariable
'--affine-popover-background': AffineTheme['colors']['popoverBackground'];
'--affine-hover-background': AffineTheme['colors']['hoverBackground'];
'--affine-code-background': AffineTheme['colors']['codeBackground'];
- '--affine-tooltip-background': AffineTheme['colors']['toolTipBackground'];
++ '--affine-tooltip-background': AffineTheme['colors']['tooltipBackground'];
'--affine-text-color': AffineTheme['colors']['textColor'];
'--affine-edgeless-text-color': AffineTheme['colors']['edgelessTextColor'];
@@@ -95,6 -94,6 +96,7 @@@
'--affine-selected-color': AffineTheme['colors']['selectedColor'];
'--affine-border-color': AffineTheme['colors']['borderColor'];
'--affine-disable-color': AffineTheme['colors']['disableColor'];
++ '--affine-tooltip-color': AffineTheme['colors']['tooltipColor'];
'--affine-modal-shadow': AffineTheme['shadow']['modal'];
'--affine-popover-shadow': AffineTheme['shadow']['popover'];