mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
@@ -1,4 +1,5 @@
|
||||
@import './fonts.css';
|
||||
@import '@toeverything/theme/style.css';
|
||||
|
||||
* {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
@@ -1,20 +1,12 @@
|
||||
import {
|
||||
cssVar,
|
||||
darkCssVariables,
|
||||
lightCssVariables,
|
||||
} from '@toeverything/theme';
|
||||
import { cssVar } from '@toeverything/theme';
|
||||
import { globalStyle } from '@vanilla-extract/css';
|
||||
|
||||
globalStyle('body', {
|
||||
color: cssVar('textPrimaryColor'),
|
||||
fontFamily: cssVar('fontFamily'),
|
||||
fontSize: cssVar('fontBase'),
|
||||
});
|
||||
globalStyle('html', {
|
||||
vars: lightCssVariables,
|
||||
});
|
||||
globalStyle('html[data-theme="dark"]', {
|
||||
vars: darkCssVariables,
|
||||
});
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
globalStyle('.undefined', {
|
||||
border: '5px solid red !important',
|
||||
|
||||
Reference in New Issue
Block a user