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

[G2 5.0] Theme token 增加组件相关 token #4202

Closed
visiky opened this issue Oct 12, 2022 · 1 comment
Closed

[G2 5.0] Theme token 增加组件相关 token #4202

visiky opened this issue Oct 12, 2022 · 1 comment
Labels

Comments

@visiky
Copy link
Member

visiky commented Oct 12, 2022

  • 详细设计见: https://www.yuque.com/antv/g2-docs/srdi2u
  • 组件部分的 token 使用扁平的形式,component 使用的时候,先使用一个 util 处理为 GUI 需要的,等后续 GUI 相关的组件 API 更新之后,更新升级下 util 即可

Axis

主题 token 大致如下:

{
   axis?: {
       // 轴标题
      titleFill?: string;
       titleFontSize?: number;
      // 轴标签
      labelFill?: string;
      // ...
    },
    topAxis?: {};
    leftAxis?: {};
    rightAxis?: {};
    bottomAxis?: {};
}

Legend

{
   categoryLegend?: {
    // ...
  };
  continuousLegend?: {
    // ...
  };
}
@visiky visiky added the V5 label Oct 13, 2022
@visiky
Copy link
Member Author

visiky commented Nov 16, 2022

related by: #3515

@visiky visiky closed this as completed Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant