Skip to content

Commit

Permalink
fix: remove global styles for body tag
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunvegda committed Apr 18, 2024
1 parent 1849018 commit e2a6b0d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"postcss": "^8.4.38",
"postcss-loader": "^8.1.1",
"postcss-preset-mantine": "^1.14.4",
"postcss-remove-declaration": "^1.1.0",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
21 changes: 21 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
plugins: {
'postcss-preset-mantine': {},
'postcss-remove-declaration': {
remove: {
body: '*',
},
},
},
};
11 changes: 11 additions & 0 deletions src/DevTools/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,15 @@
color: light-dark(var(--mantine-color-black), var(--mantine-color-white));
--webkit-font-smoothing: antialiased;
font-size: var(--mantine-font-size-md);
font-family: var(--mantine-font-family);
line-height: var(--mantine-line-height);
background-color: var(--mantine-color-body);
color: var(--mantine-color-text);

-webkit-font-smoothing: var(--mantine-webkit-font-smoothing);
-moz-osx-font-smoothing: var(--mantine-moz-font-smoothing);

@media screen and (max-device-width: em(500px)) {
-webkit-text-size-adjust: 100%;
}
}

0 comments on commit e2a6b0d

Please sign in to comment.