TLDR Dev · OPINIONS & ADVICE

SHOULD CSS BE CONSTRAINTS?

pavpanchekha.com10 min read

Summary from the TLDR Dev newsletter

CSS layout rules are complex and hard to pick up just from examples. One commonly-proposed replacement for CSS is a constraint system. Rule-based systems can be complex and hard to predict, but it is almost impossible to create a layout that is not under- or over-determined. A better way to improve CSS would be to provide more intuitive rule systems with more predictable, less esoteric rules.