...

/

Defining and Using Theme Props

Defining and Using Theme Props

In this lesson we'll discuss how to define our themes and how to use a theme's props in a simple example.

Having CSS variables change values between different themes is the main way by which our theming platform will work. This lesson includes a simple example that toggles between a light and a dark theme of an app. This example will also show what we mean by defining a theme and how we’ll use the theme props in our app.

Example: Toggling between dark and light mode #

Let’s assume ...

Access this course and 1400+ top-rated courses and projects.