Closed hi-ogawa closed 1 year ago
Since antd version 5 migrated to complete css-in-js theme architecture, we can construct css variables based on their theme API directly (see src/styles/antd-preset.ts). Note that my prior art was to extract less variables in a hacky manner https://github.com/hi-ogawa/youtube-dl-web-v2/blob/ca7c08ca6b144c235bdc4c7e307a0468052aa6fa/packages/app/src/styles/theme.css#L30
src/styles/antd-preset.ts
Since antd version 5 migrated to complete css-in-js theme architecture, we can construct css variables based on their theme API directly (see
src/styles/antd-preset.ts
). Note that my prior art was to extract less variables in a hacky manner https://github.com/hi-ogawa/youtube-dl-web-v2/blob/ca7c08ca6b144c235bdc4c7e307a0468052aa6fa/packages/app/src/styles/theme.css#L30screenshot