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

Support Custome ConnectModal design token #1339

Merged
merged 7 commits into from
Feb 10, 2025
Merged

Conversation

yutingzhao1991
Copy link
Collaborator

支持更多自定义 DesignToken,通过类似下面这样的方式来自定义更多样式:

  return (
    <Web3ConfigProvider
      theme={{
        web3Components: {
          ConnectModal: {
            walletGroupTextColor: 'red',
            descriptionColor: 'blue',
          },
        },
      }}
    >
      <ConnectModal />
  </Web3ConfigProvider>

Copy link

changeset-bot bot commented Feb 7, 2025

🦋 Changeset detected

Latest commit: 78ec32b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@ant-design/web3-common Minor
@ant-design/web3 Minor
@ant-design/web3-assets Patch
@ant-design/web3-bitcoin Patch
@ant-design/web3-eth-web3js Patch
@ant-design/web3-ethers-v5 Patch
@ant-design/web3-ethers Patch
@ant-design/web3-solana Patch
@ant-design/web3-sui Patch
@ant-design/web3-ton Patch
@ant-design/web3-wagmi Patch
@example/eth-web3js Patch
@example/ethers-v5 Patch
@example/ethers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Feb 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ant-design-web3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 9:19am

@yutingzhao1991 yutingzhao1991 requested a review from LCJove February 7, 2025 10:04
Copy link

github-actions bot commented Feb 7, 2025

Preview is ready

@yutingzhao1991 yutingzhao1991 changed the title [WIP] Support Custome ConnectModal design token Support Custome ConnectModal design token Feb 8, 2025
@thinkasany
Copy link
Collaborator

ci failed
image

@thinkasany
Copy link
Collaborator

也许主题变量应该像antd一样提供默认值会更好
image
image

Copy link

codecov bot commented Feb 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.99%. Comparing base (14f780e) to head (78ec32b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1339   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files         860      861    +1     
  Lines       14831    14850   +19     
  Branches     1619     1622    +3     
=======================================
+ Hits        14830    14849   +19     
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yutingzhao1991
Copy link
Collaborator Author

也许主题变量应该像antd一样提供默认值会更好 image image

补充了

@yutingzhao1991 yutingzhao1991 merged commit f896044 into main Feb 10, 2025
14 checks passed
@yutingzhao1991 yutingzhao1991 deleted the feat/customweb3style branch February 10, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants