mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 21:48:48 +08:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
@@ -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])};`
|
||||
);
|
||||
Reference in New Issue
Block a user