| Desktop | Tablet | Mobile |
|---|---|---|
![]() |
![]() |
![]() |
-
Naming CSS Color Variables
Two approaches:
- Semantic naming based on design role
Name colors according to their purpose in the UI. - Descriptive naming via color picker tools
If the design role isn't clear, use tools like Coolors and assign a name based on appearance (e.g.,--color-indigo).
- Semantic naming based on design role
-
Responsive Images with
srcset, Media Queries, and Format OptimizationHow to Combine:
srcsetfor multiple resolutions.media queriesto adapt images to screen size.- Different formats (WebP, JPEG) and pixel densities for performance.
-
Gradients in CSS
- Gradients are treated as images, not solid colors.
- Use the
backgroundorbackground-imageproperty—notbackground-color.
- CSS Preprocessors (e.g., SCSS)
- Tailwind CSS
I may choose to use them in future projects.
- Github - @AminForouzan
- Frontend Mentor - @AminForouzan


