Skip to content

Commit

Permalink
Merge pull request #639 from oceanbase/dengfuping-dev
Browse files Browse the repository at this point in the history
feat(codemod): Add more color map for token
  • Loading branch information
dengfuping authored Jul 18, 2024
2 parents fc77839 + 025b699 commit f5a9516
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions packages/codemod/transforms/utils/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const TOKEN_MAP = {
'#ffffff': 'colorBgContainer',
'#fff': 'colorBgContainer',
'rgb(255 255 255 / 100%)': 'colorBgContainer',
'rgba(0,0,0,0.88)': 'colorText',
'rgba(0,0,0,0.85)': 'colorText',
'rgba(0,0,0,0.65)': 'colorTextSecondary',
'rgba(0,0,0,0.45)': 'colorTextTertiary',
Expand All @@ -75,10 +76,21 @@ const TOKEN_MAP = {
'rgb(0 0 0 / 65%)': 'colorTextSecondary',
'rgb(0 0 0 / 45%)': 'colorTextTertiary',
'rgb(0 0 0 / 25%)': 'colorTextQuaternary',
'#00000073': 'colorTextDescription',
'#000': 'colorText',
'#000000': 'colorText',
'#000000E0': 'colorText',
'#000000d9': 'colorText',
'#000000a6': 'colorTextSecondary',
'#00000073': 'colorTextTertiary',
'#00000040': 'colorTextQuaternary',
'#0000000f': 'colorFillSecondary',
'#00000009': 'colorFillTertiary',
'#00000008': 'colorFillQuaternary',
'#00000005': 'colorFillQuaternary',
'#f5f5f5': 'colorFillQuaternary',
'rgba(0,0,0,0.02)': 'colorBgLayout',
'rgba(0,0,0,0.04)': 'colorBgLayout',
'rgba(0,0,0,0.06)': 'colorFillSecondary',
'rgba(0,0,0,0.04)': 'colorFillTertiary',
'rgba(0,0,0,0.02)': 'colorFillQuaternary',
'#f5f6fa': 'colorBgLayout',
'#edeff2': 'colorBgLayout',
// obui legacy style => token
Expand Down

0 comments on commit f5a9516

Please sign in to comment.