About
Refactor the current UI elements, such as buttons, boxes, input fields, to web components.
I want to avoid using larger libraries/frameworks for this, to avoid bloat. Currently considering Alpine.js or pure js/native web components.
Why
Refactoring to web components would allow for reusing each element while only having one source of truth, making it easy to update and maintain.
Currently, all the UI elements are hardcoded in pure HTML/CSS as it was fast to implement, and at the beginning, the project didn't have a clear goal of feature expansion.
As there are now plans to provide post-processing options, many UI elements will be reused. It will also make it easier to maintain i18n when utilizing component attributes.
I.e.:
About
Refactor the current UI elements, such as buttons, boxes, input fields, to web components.
I want to avoid using larger libraries/frameworks for this, to avoid bloat. Currently considering Alpine.js or pure js/native web components.
Why
Refactoring to web components would allow for reusing each element while only having one source of truth, making it easy to update and maintain.
Currently, all the UI elements are hardcoded in pure HTML/CSS as it was fast to implement, and at the beginning, the project didn't have a clear goal of feature expansion.
As there are now plans to provide post-processing options, many UI elements will be reused. It will also make it easier to maintain i18n when utilizing component attributes.
I.e.: