hi-ogawa / toy-metronome

https://metronome-hiro18181.vercel.app
0 stars 0 forks source link

feat: add dark theme #3

Closed hi-ogawa closed 1 year ago

hi-ogawa commented 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

screenshot

image