feat(core): bump theme (#7587)

close AF-1108
This commit is contained in:
CatsJuice
2024-07-25 08:00:54 +00:00
parent 662a3d4b76
commit 11a2dc7d7f
5 changed files with 15 additions and 15 deletions

View File

@@ -47,7 +47,7 @@
"@radix-ui/react-toolbar": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"@radix-ui/react-visually-hidden": "^1.1.0",
"@toeverything/theme": "^0.7.35",
"@toeverything/theme": "^1.0.0",
"@vanilla-extract/dynamic": "^2.1.0",
"bytes": "^3.1.2",
"check-password-strength": "^2.0.10",

View File

@@ -1,4 +1,5 @@
@import './fonts.css';
@import '@toeverything/theme/style.css';
* {
-webkit-overflow-scrolling: touch;

View File

@@ -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',

View File

@@ -48,7 +48,7 @@
"@sentry/integrations": "^7.109.0",
"@sentry/react": "^8.0.0",
"@sgtpooki/file-type": "^1.0.1",
"@toeverything/theme": "^0.7.35",
"@toeverything/theme": "^1.0.0",
"@vanilla-extract/dynamic": "^2.1.0",
"animejs": "^3.2.2",
"async-call-rpc": "^6.4.2",