Skip to content

Commit

Permalink
fix(blocks): remove lit dependency from theme service (#9025)
Browse files Browse the repository at this point in the history
continue #9023
  • Loading branch information
L-Sun committed Dec 19, 2024
1 parent 89225d3 commit 4d1534c
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions packages/affine/shared/src/services/theme-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
combinedDarkCssVariables,
combinedLightCssVariables,
} from '@toeverything/theme';
import { unsafeCSS } from 'lit';

import { isInsideEdgelessEditor } from '../utils/index.js';

Expand Down Expand Up @@ -206,26 +205,3 @@ export const getThemeObserver = (function () {
return observer;
};
})();

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])};`
);

0 comments on commit 4d1534c

Please sign in to comment.