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.

贡献者指南