-
Notifications
You must be signed in to change notification settings - Fork 38
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: allow design token v2 in tailwind config #650
Conversation
750b304
to
9a61729
Compare
9a61729
to
9dd7852
Compare
Visit the preview URL for this PR (updated for commit 8ba0447): https://pixiv-charcoal-web--pr650-feat-allow-design-to-8acot016.web.app (expires Mon, 23 Dec 2024 01:18:40 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 314b26d3adca98a761c7e4d9922ebb206ff024a0 |
Size Change: +5.88 kB (+1.09%) Total Size: 546 kB
ℹ️ View Unchanged
|
9dd7852
to
ab01bf3
Compare
ab01bf3
to
a6f9ca9
Compare
a6f9ca9
to
02260f6
Compare
02260f6
to
d106c78
Compare
@@ -63,17 +63,13 @@ module.exports = { | |||
if (configType === 'PRODUCTION') { | |||
return config | |||
} | |||
// 事前ビルドが不要になるようにマッピング |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今までaliasでなんとか動いたが、ビルド時生成されたものが増えたり、package.jsonのexportsと相性悪いので、考え直す必要があります。
今でもビルドしないと動かないので一旦外します
@@ -6,6 +6,7 @@ import { TokenInjector, themeSelector, themeSetter } from '@charcoal-ui/styled' | |||
|
|||
import '../packages/theme/src/css/_variables_dark.css' | |||
import '../packages/theme/src/css/_variables_light.css' | |||
import '../packages/react/dist/index.css' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dist依存するのがよくないですがこうするしかなさそう
...(unstableTokenV2 | ||
? { | ||
borderWidth: borderWidthV2, | ||
fontSize: fontSizeV2, | ||
fontWeight: fontWeightV2, | ||
} | ||
: {}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
borderWidth: undefinedがあるとデフォルトのclassが消えるのでkey自体を避ける必要があります
merging as beta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
やったこと
動作確認環境
チェックリスト
不要なチェック項目は消して構いません