fix(core): avoid side effects (#8245)

This commit is contained in:
forehalo
2024-09-18 03:45:20 +00:00
parent 22e1f9c66b
commit 315c20f8e5
49 changed files with 169 additions and 148 deletions

View File

@@ -4,7 +4,7 @@
"main": "./src/index.ts",
"exports": {
".": "./src/index.ts",
"./theme/*": "./src/theme/*",
"./theme": "./src/theme/index.ts",
"./ui/*": "./src/ui/*/index.ts",
"./*": "./src/components/*/index.tsx"
},

View File

@@ -1,6 +1,3 @@
@import './fonts.css';
@import '@toeverything/theme/style.css';
* {
-webkit-overflow-scrolling: touch;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);

View File

@@ -0,0 +1,4 @@
import '@toeverything/theme/style.css';
import './fonts.css';
import './global.css';
import './theme.css';

View File

@@ -6,9 +6,3 @@ globalStyle('body', {
fontFamily: cssVar('fontFamily'),
fontSize: cssVar('fontBase'),
});
if (process.env.NODE_ENV === 'development') {
globalStyle('.undefined', {
border: '5px solid red !important',
});
}