Hello, my name is gavrillamahdi and this is my solution to the 3-column preview card component challenge on Frontend Mentor. Frontend Mentor challenges help me improve my coding skills by building realistic projects.
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover states for interactive elements
In this challenge, I did a little bit improvization by changing the background if the user's prefers color scheme is dark.
- Live Site URL: 3-column-preview-card-component-main
Note: you can change the theme to dark by changing your device theme to dark mode
- Semantic HTML5 markup
- Flexbox
- CSS Grid
- Mobile-first workflow
- Tailwind CSS - CSS framework
In this challenge I learn how to use prefers-color-scheme
CSS media feature to style the website to dark mode when the user's indicate dark preference through an operating system setting. Tailwind CSS handle this behaviour through dark:
class utility. This approach pretty easy to use and implement when building a website I think
- Frontend Mentor - @gavrillamahdi
- Instagram - @gavrillamahdi