The locations starter repo (github.com/yext/pages-starter-react-locations) uses Tailwind for styling. Pages is highly configurable in terms of styling, and you can also use many other CSS frameworks. We like Tailwind, though, so would recommend you give it a try!
Under the hood, Pages uses Vite for building. You can learn more about CSS on Vite in their documentation.
In the starter repo, you can see the default Tailwind configurations:
-
tailwind.config.cjs— Tailwind configuration file. -
postcss.config.cjs— PostCSS is used to process Tailwind; configuration lives here. -
index.css— Be sure to import this file into your templates in order to import these styles.