Syntax - Tasty Web Development Treats

Writing Good CSS


Listen Later

In this episode of Syntax, Scott and Wes talk about writing good CSS.

LogRocket - Sponsor

LogRocket 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 - Sponsor

Netlify 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 Notes

02:11 - Frameworks

  • Utility: Tailwind, TayconsBulma
  • Frameworks: FoundationBootstrap
  • Classless base starters: https://github.com/dbohdan/classless-css
    • HTML5 UP / A template
  • 13:37 - Preprocessors

    • Sass
  • Stylus
  • Less
  • Regular CSS
    • Variables
    • Color functions - not yet
  • 19:42 - Tools

    • PostCSS is like Babel for CSS. Some good plugins:
      • https://github.com/postcss/postcss#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

    • PurgeCSS - Tailwind uses this
    • PurifyCSS

    41:17 - Writing maintainable CSS / scoping solutions

    • Component-based
      • CSS Modules
    • Naming Convention Based
      • BEM
  • SMACSS
  • CSS Variables
    • Powerful when utilized with things like calc() to avoid out of sync values
  • Know which browsers you need to support
  • Links
    • Syntax 197: Hasty Treat - Tips For Writing Good CSS
  • Compass
  • Susy
  • Grunt
  • Gulp
  • Linaria
  • Astroturf
  • Houdini
  • Svelte
  • Syntax Highlight
    • Dhanish Gajjar - https://www.instagram.com/dhanishgajjar/
    ××× SIIIIICK ××× PIIIICKS ×××
    • Scott: Rustlings
  • Wes: Class Action Park Documentary
  • Shameless Plugs
    • 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!
    Tweet us your tasty treats!
    • Scott’s Instagram
  • LevelUpTutorials Instagram
  • Wes’ Instagram
  • Wes’ Twitter
  • Wes’ Facebook
  • Scott’s Twitter
  • Make sure to include @SyntaxFM in your tweets
  • ...more
    View all episodesView all episodes
    Download on the App Store

    Syntax - Tasty Web Development TreatsBy Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

    • 4.9
    • 4.9
    • 4.9
    • 4.9
    • 4.9

    4.9

    977 ratings


    More shows like Syntax - Tasty Web Development Treats

    View all
    Software Engineering Radio by se-radio@computer.org

    Software Engineering Radio

    271 Listeners

    Hanselminutes with Scott Hanselman by Scott Hanselman

    Hanselminutes with Scott Hanselman

    383 Listeners

    The Changelog: Software Development, Open Source by Changelog Media

    The Changelog: Software Development, Open Source

    289 Listeners

    Software Engineering Daily by Software Engineering Daily

    Software Engineering Daily

    624 Listeners

    Talk Python To Me by Michael Kennedy

    Talk Python To Me

    585 Listeners

    Soft Skills Engineering by Jamison Dance and Dave Smith

    Soft Skills Engineering

    288 Listeners

    Thoughtworks Technology Podcast by Thoughtworks

    Thoughtworks Technology Podcast

    43 Listeners

    Python Bytes by Michael Kennedy and Brian Okken

    Python Bytes

    215 Listeners

    The freeCodeCamp Podcast by freeCodeCamp.org

    The freeCodeCamp Podcast

    486 Listeners

    CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

    CoRecursive: Coding Stories

    190 Listeners

    Practical AI by Practical AI LLC

    Practical AI

    210 Listeners

    The Stack Overflow Podcast by The Stack Overflow Podcast

    The Stack Overflow Podcast

    64 Listeners

    The Real Python Podcast by Real Python

    The Real Python Podcast

    142 Listeners

    PodRocket by LogRocket

    PodRocket

    60 Listeners

    Oxide and Friends by Oxide Computer Company

    Oxide and Friends

    62 Listeners