Skip to content

Commit

Permalink
Add tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
Kadrian committed Apr 15, 2024
1 parent 6072133 commit d7d8cee
Show file tree
Hide file tree
Showing 16 changed files with 596 additions and 145 deletions.
5 changes: 4 additions & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ Depending on the use-case, we're still calling the same concepts differently som

### Styles

- Emotion is used for theming and styles. The plan is to migrate (back) to styled-components or to another css-in-js solution, because emotion's "styled" is less TypeScript compatible in some edge cases like generic component props (see usage of Dropzone).
- Currently, we're mostly using Emotion for theming and styles.
- The plan is to slowly migrate to [Tailwind CSS](https://tailwindcss.com/) and [tailwind-styled-components](https://github.com/MathiasGilson/Tailwind-Styled-Component).
- New styles should be written using tailwind.
- Reasoning: Theming with Emotion is verbose, Emotion's "styled" is less TypeScript compatible in some edge cases like generic component props (see usage of Dropzone). But the main reason for migrating to tailwind, of course, is that tailwind means a lot less boilerplate code. It also allows for more consistent styling and offers a great dev UX.

### State

Expand Down
Loading

0 comments on commit d7d8cee

Please sign in to comment.