Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): bump theme #7587

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/frontend/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/component/src/theme/global.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import './fonts.css';
@import '@toeverything/theme/style.css';

* {
-webkit-overflow-scrolling: touch;
Expand Down
14 changes: 3 additions & 11 deletions packages/frontend/component/src/theme/theme.css.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 9 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ __metadata:
"@storybook/test-runner": "npm:^0.19.0"
"@storybook/testing-library": "npm:^0.2.2"
"@testing-library/react": "npm:^16.0.0"
"@toeverything/theme": "npm:^0.7.35"
"@toeverything/theme": "npm:^1.0.0"
"@types/bytes": "npm:^3.1.4"
"@types/react": "npm:^18.2.75"
"@types/react-dnd": "npm:^3.0.2"
Expand Down Expand Up @@ -419,7 +419,7 @@ __metadata:
"@sgtpooki/file-type": "npm:^1.0.1"
"@swc/core": "npm:^1.4.13"
"@testing-library/react": "npm:^16.0.0"
"@toeverything/theme": "npm:^0.7.35"
"@toeverything/theme": "npm:^1.0.0"
"@types/animejs": "npm:^3.1.12"
"@types/bytes": "npm:^3.1.4"
"@types/image-blob-reduce": "npm:^4.1.4"
Expand Down Expand Up @@ -14928,6 +14928,13 @@ __metadata:
languageName: node
linkType: hard

"@toeverything/theme@npm:^1.0.0":
version: 1.0.0
resolution: "@toeverything/theme@npm:1.0.0"
checksum: 10/9fe34e778bce0eec99163a45525d4547e5b4765600c74d4143d37a5683afeb3821fb7a44cbd84e0bd75f40f1e0b3b0bf19d76faaac91d3e29c75d812b81ef3ee
languageName: node
linkType: hard

"@tokenizer/token@npm:^0.3.0":
version: 0.3.0
resolution: "@tokenizer/token@npm:0.3.0"
Expand Down
Loading