Add-Emotion-To-Your-Web-Apps-With-CSS-in-JS-1

Add Emotion to Your Web Apps With CSS-in-JS

01/13/2022

January is National Creativity Month, and what better way to showcase your creativity than by giving your web apps some style? Want to learn how? We’ll show you in our new course: Learn CSS-in-JS.

In this course, you’ll learn how to add CSS styles to your web app using JavaScript syntax. If you already have a strong background in web development and you’re looking to pick up some new tricks — now’s the time! Jiwon Shin, one of the Curriculum Developers behind our new course, explains that the benefits of using CSS-in-JSS include:

  • No more switching between JavaScript and CSS to write styling
  • Automatic inlining of critical-path CSS
  • No class names and IDs collisions — every class name and ID is guaranteed to be unique
  • Automatic vendor prefixing
  • Reducing code and file size since compiled CSS only includes necessary declarations

Plus, as you discover a new way of implementing CSS, you’ll also learn how to use the Emotion library, which has been gaining traction in the tech industry and is currently used by companies like Reddit and Patreon.

Who is the course right for?

Learn CSS-in-JS is well-suited for learners who’ve mastered the basics of web development (including HTML, CSS, and JavaScript), along with React, and want to expand on their web design skills. Plus, if you’re looking for work as a Front-End or Full-Stack Developer, getting hands-on experience with CSS-in-JS and Emotion can help give you an edge in your job search.

What will you learn from the new course?

In Learn CSS-in-JSS, you’ll use the styling technique to build a React web application, following a tutorial as you go along. By the end of the course, you’ll be able to:

  • Explain the pros and cons of using CSS-in-JSS.
  • Identify different CSS-in-JSS libraries.
  • Use Emotion in an existing React app.
  • Apply styles to a React app using the CSS-in-JSS syntax.

Ready to learn a new way to use CSS? Check out Learn CSS-in-JS!


Web Development Courses & Tutorials | Codecademy
Web Development is the practice of developing websites and web apps that live on the internet. Whether you’re interested in front-end, back-end, or going full-stack, the content in our Web Development domain will help you get there.

Related articles

7 articles
What-Is-PHP-Used-For--1.png?w=1024

What Is PHP Used For?

02/04/2025
By Michael Shashoua

PHP is a programming language that allows websites to function interactively and dynamically. Read on to learn more about what PHP is used for.

Featured-Thumbnails_1200x558-1-1.png?w=1024

12 Java Code Challenges for Beginners

01/21/2025
5 minutes
By Codecademy Team

Are you learning Java and looking for exercises to test your new skills? Try these 12 Java code challenges for beginners and put your Java knowledge to use.

Group-2862.png?w=1024

What Is XML Used For?

08/28/2024
7 minutes
By Stephan Miller

XML stands for eXtensible Markup Language. You may run into it being used in a variety of programming languages. This article will show you what it is used for.