osmapp icon indicating copy to clipboard operation
osmapp copied to clipboard

Major Re-factor - Unstyled Components & TailwindCSS

Open Flohhhhh opened this issue 2 years ago • 2 comments

Tailwind/Un-styled Compoments Conversion

Creating this as a "home" issue for the conversion.

We are planning to re-factor the app to use Un-styled Functional Components such as those from Headless UI, along with TailwindCSS rather than MUI and Styled Components.

Related Project

Pull requests will be created for each component that needs a major re-write one-by-one to avoid merge conflicts.

Preparation related issues:

  • #157
  • #159

Game Plan

  1. First step I think will be to look into the dark-mode/light-mode method, since Tailwind needs a different method than MUI. This will make it easier to do both versions on each component going forward.
  • #166
  1. After that next as a proof-of-concept I will be converting the auto-complete search box using Headless UI.
  • ~~#164~~
  • #167
  1. Once PR is created with rework of SearchBox we will review and make further plans.

I think it would be best if we made branches seperate from tailwind-refactor branch, and then merged those into tailwind-refactor and delete them. This will keep the commits cleaner!

Flohhhhh avatar Jun 17 '23 15:06 Flohhhhh

Installed and configured on tailwind-refactor branch:

  • Tailwind
  • HeadlessUI
  • HeroIcons

Setup some global stuff and added light/dark theme

  • #166
  • https://github.com/zbycz/osmapp/compare/master...tailwind-refactor

Flohhhhh avatar Jun 17 '23 19:06 Flohhhhh

SearchBox conversion

  • https://github.com/zbycz/osmapp/pull/167

Flohhhhh avatar Jun 18 '23 06:06 Flohhhhh