Mischback / colorizer

A simple web-based colorscheme builder which focuses on contrast values.
https://mischback.github.io/colorizer/
MIT License
1 stars 0 forks source link

Re-implement ``<form>`` to add colors #20

Open Mischback opened 1 year ago

Mischback commented 1 year ago

Milestone v2 includes the restructuring of the codebase. This might mean making some code obsolete by introducing another library as dependency or re-implementing existing code in TypeScript (to leverage the benefits of type safety and syntactic sugar).

Features

Why is the <form> logic the first refactoring subject?

This comment includes an experimental, VanillaJS re-implementation of the <form> logic. It is sufficiently complex to verify that the TS setup (#16) is working and the implementation will be one place, where the (external) color libraries (see #10) can be evaluated.

[repo_root]
├── src/
│   ├── script/
│   |   ├── colorizer/
|   │   |   ├── interface/
|   |   │   |   ├── color_form/
|   |   |   │   |   ├── input_methods.ts
|   |   |   │   |   ├── form.ts
|   |   |   |   │   └── index.ts
|   |   │   |   ├── grid_view.ts
|   |   │   |   ├── palette.ts
|   |   |   │   └── index.ts
|   │   |   ├── engine.ts
|   |   │   └── index.ts
│   |   ├── utility/
|   |   │   └── index.ts
|   │   └── index.ts
│   └── style/   <-- details in #18 
└── tsconfig.json