refactor(app): lägg till designsystem #230
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Appen har spretig styling i vissa delar, t.ex. margin-värden som bara används på ett ställe. Vi har också styling för färger och typografi som återanvänds på flera ställen som kan samlas i ett designsystem. Den här PR:n lägger till ett system som är inspirerat av Thoughbots React Native styling och storlekar från Tailwind (som vi använder i
site
). Tanken är att bygga en atomic styling som enkelt kan pusslas ihop till exporterade komponenter när vi ser att något återanvänds.På sikt tänker jag att detta helt kan ersätta vår användning av
ui-kitten
vilket ger oss större kontroll över hur vi vill att appen ska se ut.Designsystemet har bara påbörjats och alla filer har inte migrerats till det, men jag tänker att det får bli ett löpande arbete att byta ut och uppgradera.