mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
using a [babel plugin](https://gist.github.com/pengx17/49e24ae8a5a609bdaff122ee8c679d1c) to transform all var(--affine-xxx) to cssVar Some issues: - tried ast-grep but it seems to be not easy to add imports conditionally - current work does not work well with ts with types because babel will strip them out
14 lines
291 B
TypeScript
14 lines
291 B
TypeScript
import { style } from '@vanilla-extract/css';
|
|
export const fallbackStyle = style({
|
|
margin: '12px 16px',
|
|
height: '100%',
|
|
});
|
|
export const fallbackHeaderStyle = style({
|
|
height: '56px',
|
|
width: '100%',
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
flexDirection: 'row',
|
|
gap: '8px',
|
|
});
|