Why not use something like Glam or Emotion to handle className generation?
With absolute positioning on <Box />... is there a reason why the top, bottom, left, right props are limited to static values of and not like top={48} or left=“12px”
Also curious on api that dictates Text component: color = css property color and Box component: color = css property background-color
Does Pinterest not use textShadow? Curious why that’s not a part of the Text component. Text styling seems to be the most difficult part of a component based design system.
Anyway this is great work! Hopefully I didn’t ask any stupid questions with obvious answers. Ha
QQ- why declare typing in both flow and proptypes? Thanks!
One of the benefits of Gestalt is that all styling is statically resolvable. This means that all it's CSS can be built to one small file or inline styles. We get a bunch of perf. & portability for free. (Unconstrained) theming requires runtime style resolution which would negate those benefits. There are also things that we'd like to be able to change and tweak globally and those get difficult if everybody is running separate themes. We recently switched to using system fonts and we're planning on bumping the color contrast.
However, we're generally _really_ open to constrained theming (i.e. more button colors).