saurabhdaware/DEV-widget

Refactor the themes part

開放

#16 建立於 2019年11月27日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (11 個分叉)github user discovery
Needs Discussionenhancementhelp wantedrefactorit

倉庫指標

星標
 (99 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

So currently if someone wants to create a theme they have to go to the card.style.mjs and add a class with name of the theme and set the css variables.

This is super useful and makes things extremely easy to create themes but as we go adding themes we go on increasing the numbers of lines in the JavaScript string (the css is just javascript string). It would be helpful if there is any other way to handle this since I don't want to go on making the response size larger and larger.

貢獻者指南