This is a solution to the REST Countries API with color theme switcher challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- See all countries from the API on the homepage
- Search for a country using an
inputfield - Filter countries by region
- Click on a country to see more detailed information on a separate page
- Click through to the border countries on the detail page
- Toggle the color scheme between light and dark mode (optional)
- Country Filter:
| Dark Mode | Light Mode |
|---|---|
![]() |
![]() |
- Country Details:
| Dark Mode | Light Mode |
|---|---|
![]() |
![]() |
- Semantic HTML5 markup
- Flexbox
- CSS Grid
- Mobile-first workflow
- Tailwind - CSS framework
- React - JS library
- Put React.js knowledge to practice
- Basic ESLint and PostCSS configuration
- Tailwind CSS
- Deployment to Vercel
- Fetching data from an API
- Routing with React Router
- Manual pagination and infinite scrolling
- Custom hooks
- Tailwind Docs - Served as a nice reference to search for specific classes and how to switch between dark and light mode correctly.
- Frontend Mentor - @GPMS



