Show Notes
In this episode of Syntax, Scott and Wes talk about writing good CSS.
LogRocket - SponsorLogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. Itβs an exception tracker, a session re-player and a performance monitor. Get 14 days free atΒ logrocket.com/syntax.
Netlify - SponsorNetlify is the best way to deploy and host a front-end website. All the features developers need right out of the box: Global CDN, Continuous Deployment, one click HTTPS and more. Hit upΒ netlify.com/syntaxΒ for more info.
Show Notes02:11 - Frameworks
- Utility:Β Tailwind, Taycons,Β Bulma
- Frameworks:Β Foundation,Β Bootstrap
- Classless base starters:Β https://github.com/dbohdan/classless-css
- HTML5 UPΒ / A template
13:37 - Preprocessors
19:42 - Tools
- PostCSSΒ is like Babel for CSS. Some good plugins:
- CSS min/max for clamp
- Autoprefixer
- AutoresetΒ - reset a component
- Gap instead of grid-gap
- Simple-vars
- Postcss-modules
- SugarSS
- Preset env
34:19 - Stylint
- Stylint
- More than just a basic linter
- Capable of complex rules in your CI process - i.e. if you are using a color, make sure itβs a CSS variable
36:37 - Removing unwanted CSS
41:17 - Writing maintainable CSS / scoping solutions
- Component-based
- CSS Modules
- Naming Convention Based
- CSS Variables
- Powerful when utilized with things like calc() to avoid out of sync values
- Know which browsers you need to support
- Syntax 197: Hasty Treat - Tips For Writing Good CSS
- Compass
- Susy
- Grunt
- Gulp
- Linaria
- Astroturf
- Houdini
- Svelte
- Dhanish Gajjar -Β https://www.instagram.com/dhanishgajjar/
- Scott:Β Rustlings
- Wes:Β Class Action Park Documentary
- Scott:Β Advanced Animating React with Framer MotionΒ - Sign up for the year and save 25%!
- Wes:Β Master GatsbyΒ - Use the coupon code βSyntaxβ for $10 off!
- Scottβs Instagram
- LevelUpTutorials Instagram
- Wesβ Instagram
- Wesβ Twitter
- Wesβ Facebook
- Scottβs Twitter
- Make sure to includeΒ @SyntaxFMΒ in your tweets
