chore: merge blocksuite source code (#9213)

This commit is contained in:
Mirone
2024-12-20 15:38:06 +08:00
committed by GitHub
parent 2c9ef916f4
commit 30200ff86d
2031 changed files with 238888 additions and 229 deletions
@@ -0,0 +1,29 @@
import {
type AffineCssVariables,
combinedDarkCssVariables,
combinedLightCssVariables,
} from '@toeverything/theme';
import { unsafeCSS } from 'lit';
const toolbarColorKeys: Array<keyof AffineCssVariables> = [
'--affine-background-overlay-panel-color',
'--affine-v2-layer-background-overlayPanel' as never,
'--affine-background-error-color',
'--affine-background-primary-color',
'--affine-background-tertiary-color',
'--affine-icon-color',
'--affine-icon-secondary',
'--affine-border-color',
'--affine-divider-color',
'--affine-text-primary-color',
'--affine-hover-color',
'--affine-hover-color-filled',
];
export const lightToolbarStyles = toolbarColorKeys.map(
key => `${key}: ${unsafeCSS(combinedLightCssVariables[key])};`
);
export const darkToolbarStyles = toolbarColorKeys.map(
key => `${key}: ${unsafeCSS(combinedDarkCssVariables[key])};`
);