diff --git a/blocksuite/affine/blocks/bookmark/src/styles.ts b/blocksuite/affine/blocks/bookmark/src/styles.ts index 76bb5fed8..03b5e3f12 100644 --- a/blocksuite/affine/blocks/bookmark/src/styles.ts +++ b/blocksuite/affine/blocks/bookmark/src/styles.ts @@ -17,9 +17,9 @@ export const styles = css` width: 100%; border-radius: 8px; - border: 1px solid var(--affine-background-tertiary-color); + border: 1px solid ${unsafeCSSVarV2('layer/background/tertiary')}; - background: var(--affine-background-primary-color); + background: ${unsafeCSSVarV2('layer/background/primary')}; user-select: none; } diff --git a/blocksuite/affine/blocks/embed-doc/src/embed-linked-doc-block/styles.ts b/blocksuite/affine/blocks/embed-doc/src/embed-linked-doc-block/styles.ts index 31c1e4746..f40dab5f0 100644 --- a/blocksuite/affine/blocks/embed-doc/src/embed-linked-doc-block/styles.ts +++ b/blocksuite/affine/blocks/embed-doc/src/embed-linked-doc-block/styles.ts @@ -9,7 +9,7 @@ export const styles = css` width: 100%; height: 100%; border-radius: 8px; - border: 1px solid var(--affine-background-tertiary-color); + border: 1px solid ${unsafeCSSVarV2('layer/background/tertiary')}; background: ${unsafeCSSVarV2('layer/background/primary')}; user-select: none; position: relative; diff --git a/blocksuite/affine/blocks/embed-doc/src/embed-synced-doc-block/styles.ts b/blocksuite/affine/blocks/embed-doc/src/embed-synced-doc-block/styles.ts index 14b1fb937..b870d712e 100644 --- a/blocksuite/affine/blocks/embed-doc/src/embed-synced-doc-block/styles.ts +++ b/blocksuite/affine/blocks/embed-doc/src/embed-synced-doc-block/styles.ts @@ -197,8 +197,8 @@ export const cardStyles = css` width: 100%; height: ${EMBED_CARD_HEIGHT.horizontal}px; border-radius: 8px; - border: 1px solid var(--affine-background-tertiary-color); - background: var(--affine-background-primary-color); + border: 1px solid ${unsafeCSSVarV2('layer/background/tertiary')}; + background: ${unsafeCSSVarV2('layer/background/primary')}; user-select: none; } diff --git a/blocksuite/affine/blocks/embed/src/embed-figma-block/styles.ts b/blocksuite/affine/blocks/embed/src/embed-figma-block/styles.ts index da06a5124..3c02ac431 100644 --- a/blocksuite/affine/blocks/embed/src/embed-figma-block/styles.ts +++ b/blocksuite/affine/blocks/embed/src/embed-figma-block/styles.ts @@ -11,9 +11,9 @@ export const styles = css` height: 100%; border-radius: 8px; - border: 1px solid var(--affine-background-tertiary-color); + border: 1px solid ${unsafeCSSVarV2('layer/background/tertiary')}; - background: var(--affine-background-primary-color); + background: ${unsafeCSSVarV2('layer/background/primary')}; user-select: none; } diff --git a/blocksuite/affine/blocks/embed/src/embed-github-block/styles.ts b/blocksuite/affine/blocks/embed/src/embed-github-block/styles.ts index 10934ac1d..f1ed15d1b 100644 --- a/blocksuite/affine/blocks/embed/src/embed-github-block/styles.ts +++ b/blocksuite/affine/blocks/embed/src/embed-github-block/styles.ts @@ -1,3 +1,4 @@ +import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme'; import { css, html } from 'lit'; export const styles = css` @@ -9,9 +10,9 @@ export const styles = css` height: 100%; border-radius: 8px; - border: 1px solid var(--affine-background-tertiary-color); + border: 1px solid ${unsafeCSSVarV2('layer/background/tertiary')}; - background: var(--affine-background-primary-color); + background: ${unsafeCSSVarV2('layer/background/primary')}; user-select: none; overflow: hidden; } diff --git a/blocksuite/affine/blocks/embed/src/embed-html-block/styles.ts b/blocksuite/affine/blocks/embed/src/embed-html-block/styles.ts index 70a296ef0..323cbb572 100644 --- a/blocksuite/affine/blocks/embed/src/embed-html-block/styles.ts +++ b/blocksuite/affine/blocks/embed/src/embed-html-block/styles.ts @@ -1,3 +1,4 @@ +import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme'; import { css, html } from 'lit'; export const EMBED_HTML_MIN_WIDTH = 370; @@ -15,9 +16,9 @@ export const styles = css` gap: 20px; border-radius: 12px; - border: 1px solid var(--affine-background-tertiary-color); + border: 1px solid ${unsafeCSSVarV2('layer/background/tertiary')}; - background: var(--affine-background-primary-color); + background: ${unsafeCSSVarV2('layer/background/primary')}; user-select: none; } diff --git a/blocksuite/affine/blocks/embed/src/embed-loom-block/styles.ts b/blocksuite/affine/blocks/embed/src/embed-loom-block/styles.ts index 5e4e209b0..5c556a2e1 100644 --- a/blocksuite/affine/blocks/embed/src/embed-loom-block/styles.ts +++ b/blocksuite/affine/blocks/embed/src/embed-loom-block/styles.ts @@ -1,3 +1,4 @@ +import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme'; import { css, html } from 'lit'; export const styles = css` @@ -12,9 +13,9 @@ export const styles = css` height: 100%; border-radius: 8px; - border: 1px solid var(--affine-background-tertiary-color); + border: 1px solid ${unsafeCSSVarV2('layer/background/tertiary')}; - background: var(--affine-background-primary-color); + background: ${unsafeCSSVarV2('layer/background/primary')}; user-select: none; } diff --git a/blocksuite/affine/blocks/embed/src/embed-youtube-block/styles.ts b/blocksuite/affine/blocks/embed/src/embed-youtube-block/styles.ts index 56cdbf59e..012299fd7 100644 --- a/blocksuite/affine/blocks/embed/src/embed-youtube-block/styles.ts +++ b/blocksuite/affine/blocks/embed/src/embed-youtube-block/styles.ts @@ -13,9 +13,9 @@ export const styles = css` padding: 12px; border-radius: 8px; - border: 1px solid var(--affine-background-tertiary-color); + border: 1px solid ${unsafeCSSVarV2('layer/background/tertiary')}; - background: var(--affine-background-primary-color); + background: ${unsafeCSSVarV2('layer/background/primary')}; user-select: none; } diff --git a/blocksuite/affine/blocks/image/src/preview-image/edgeless.ts b/blocksuite/affine/blocks/image/src/preview-image/edgeless.ts index 32a01fe15..86a514c3c 100644 --- a/blocksuite/affine/blocks/image/src/preview-image/edgeless.ts +++ b/blocksuite/affine/blocks/image/src/preview-image/edgeless.ts @@ -1,3 +1,4 @@ +import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme'; import { toGfxBlockComponent } from '@blocksuite/std'; import { css } from 'lit'; @@ -9,7 +10,7 @@ export class ImageEdgelessPlaceholderBlockComponent extends toGfxBlockComponent( static override styles = css` affine-edgeless-placeholder-preview-image .affine-placeholder-preview-container { - border: 1px solid var(--affine-background-tertiary-color); + border: 1px solid ${unsafeCSSVarV2('layer/background/tertiary')}; } `;