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

[Token] 希望能增加多一点的token #2133

Open
xmsz-stu opened this issue Mar 19, 2024 · 2 comments
Open

[Token] 希望能增加多一点的token #2133

xmsz-stu opened this issue Mar 19, 2024 · 2 comments
Labels
feature request Request new feature

Comments

@xmsz-stu
Copy link

Which Component Need Enhancement 期望新增功能的组件

  • Token

What does the proposed API look like 期望支持的API

多一些token

Feature Description 功能描述

比如input框,我希望背景是白色,我现在的办法

  1. 使用DSM工具,然后给Input背景选择白色,然后保存发布使用
  2. 使用css覆盖,.semi-input-wrapper{background:#fff}

第一种方式呢,不够快捷,每次调整就得走一遍流程,不太适合前期开发的时候
第二种方式呢,会遇到很多组合的情况,比如hover模式下,就得各种覆盖,写起来简直是噩梦

所以,希望更简单的解决办法就是,多一些token
比如这个输入框的背景就是,$input-bg-color。这样css覆盖就轻松了

Additional information 补充说明

@xmsz-stu xmsz-stu added the feature request Request new feature label Mar 19, 2024
@DaiQiangReal
Copy link
Collaborator

DSM 上有显示 token 的,你可以直接用
image

@xmsz-stu
Copy link
Author

DSM 上有显示 token 的,你可以直接用 image

居然有这个 可以
但是为什么打包出来的没有
image

我想要

  • 不使用第三方主题
  • 在本地开发自己用css var覆盖主题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request new feature
Projects
None yet
Development

No branches or pull requests

2 participants