Question · JavaScript and React course · Module 14: Advanced Styling

Vanilla-extract -- File Extension

In what file format do you define styles in vanilla-extract?

Answer options

  • .css.ts files -- TypeScript with exported styles
  • .styled.js files -- JavaScript with tagged template literals
  • .module.css files -- CSS Modules
  • .style.json files -- JSON configuration

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