Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit 0ca82a1

Browse files
committed
Documents my reasons for glamor.
1 parent 2bf0a35 commit 0ca82a1

File tree

1 file changed

+40
-3
lines changed

1 file changed

+40
-3
lines changed

docs/stack.md

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,48 @@ Some automation so I stop checking in crap-looking code.
2727
2828
Can't imagine doing web differently to be honest. I'm sure we will soon, but for mid-2017, this is dominating.
2929

30-
> **vanilla react**
30+
I like `preact` as well. I feel like the switching over will be pretty simple and I probably will.
3131

32-
There are lot of great libraries out there for UI. This intentionally uses none of them. Don't hestitate to bring one in and use it if that's how you roll.
3332

34-
I'm keep it straight-up react here because some types of apps I'd will be using webgl, pixi, or are pure svg interfaces.
33+
## Component Styling ##
34+
35+
> **glamor**
36+
37+
The winner is:
38+
39+
* ~vanilla css~
40+
* ~sass~
41+
* ~css modules~
42+
* ~diy~
43+
* ~radium~
44+
* ~aphrodite~
45+
* ~styletron~
46+
* ~styled-components~
47+
* ~typestyle~
48+
* ~emotion~
49+
* ~glam~
50+
* ~glamorous~
51+
* `glamor`!
52+
53+
I've flip-flopped on this quite a bit. We're spoiled by awesome options.
54+
55+
`glamor` nails what I'm looking for:
56+
57+
* ✅ pojo objects are first class
58+
* ✅ strong on composibility
59+
* ✅ performant out of the box (without configuration)
60+
* ✅ works well with global styles and things like keyframes
61+
* ✅ friendly devs at them helm
62+
* ✅ DSL is true to css (especially with child selectors)
63+
* ✅ built with escape hatches in mind
64+
* ✅ clear docs with examples & patterns
65+
* ✅ stable-ish API
66+
* ✅ TypeScript-friendly
67+
* ✅ testability without flushing caches or buffers
68+
69+
My advice? **Don't listen to my advice**. Explore & pick your own. Much, if not most, of your app is UI. Begin buildling your app only when your gut says, "You'll fuck this up long before your styling lib gives out."
70+
71+
`glamor` gives me that vibe. 💃
3572

3673

3774
## State Management

0 commit comments

Comments
 (0)