Click in order · JavaScript and React course · Module 14: Advanced Styling

Accessing the Theme in styled-components

Arrange the syntax for accessing the primary color from the theme in a styled-component:

Items to click

  • theme.colors.primary
  • ${
  • =>
  • }
  • ({ theme })

You can check the correct answer by solving this task in the CodeWorlds game.