Css-grid responsive layout
Goals:
- Responsive grid layout using named columns and rows for readability;
- Use css variables;
- Add multiple color themes;
- Test cross-browser support;
Things I've learned:
- Css-variables are cool, but should not be used excessively (more than one occurance);
- It's ok to store other things but color values;
- Css grid is cool, but should be used separately in containers (don't use one giant wrapper (unless layout is simplistic));
- Auto-fit, auto, min- and max-content are super cool. Use them instead of fr when possible;
- grid-template-areas are good alternative to named columns, but decided to not use them;
- Rems are good. Rems > px;
- There can be multiple shadows on one element? Unbelievable!