Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Switched to Styled Components #52

Merged
merged 47 commits into from
Aug 3, 2018
Merged

Switched to Styled Components #52

merged 47 commits into from
Aug 3, 2018

Conversation

0xcaff
Copy link
Member

@0xcaff 0xcaff commented Aug 2, 2018

Switched to Styled Components. I think they are a better way to write css for the reasons outlined in #50. Also added the bootstrap container. It allows us to remove CSS Modules and postcss which bring us a step closer to un-ejecting (#14).

Closes #50
Closes #29

0xcaff added 30 commits July 28, 2018 14:37
Changed a minimal part of the application to see how it works.
They're nicer to read and write than the interpolated functions.
Unfortunately it seems that composition with `css` doesn't work that
well with typescript. These are things which make sense to be composed
or extended. Composition will be used carefully because of this.
It now uses a few new things.
It doesn't seem to help the typescript errors.
It was already encapsulated properly so this was an easy change.
Styled components are delightful. Also changed to use a named export and
renamed the backgroundInteraction prop.
SliderInput was a bit hairy because typings doesn't work correctly when
extending an input range.

Bars is hevily intertwined in many places making refactoring hard.
It previously wasn't working with interpolated values. It also makes
sense as a mixin.
0xcaff added 16 commits July 30, 2018 23:27
Slider wasn't necessary. SliderInput doesn't use a container element.
Before this pranch is merged, the theme situtation should be figured
out. I've wasted too much time trying to figure out why my stories are
broken when the theme provider is missing.
They're not used right now. They can be added back when needed later.
I don't really think it is needed anymore.
It was being used for very little so just inlined the parts which were
being used.
@0xcaff 0xcaff requested a review from AzureMarker August 2, 2018 02:43
@0xcaff 0xcaff self-assigned this Aug 2, 2018
@0xcaff 0xcaff added this to In Progress in Release Aug 2, 2018
@0xcaff 0xcaff moved this from In Progress to Testing in Release Aug 2, 2018
@0xcaff 0xcaff mentioned this pull request Aug 2, 2018
@0xcaff 0xcaff merged commit 9f76d57 into master Aug 3, 2018
@0xcaff 0xcaff deleted the refactor/styled branch August 3, 2018 00:20
@0xcaff 0xcaff moved this from Testing to Done in Release Aug 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Release
  
Done
Development

Successfully merging this pull request may close these issues.

Consider Different CSS-in-JS Solution Use Better Grid
2 participants