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.
We'll cover the following...
We'll cover the following...
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 our themes have 2 props, --background
(background color) and ...