# less-hidpi **Repository Path**: mirrors_gregberge/less-hidpi ## Basic Information - **Project Name**: less-hidpi - **Description**: Simple Less mixin that automatically serves high resolution graphics to high density (Retina-like) displays. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-10-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Less hidpi mixin `hidpi()` is a Less mixin that automatically serves high resolution graphics to high density (Retina-like) displays. ## How to use First you must import the mixin : ```css @import "hidpi" ``` Then you can use the mixin : ```css .logo { .hidpi('logo.png', 100px, 100px); } ``` Automatically, it will use `logo@2x.png` on high density devices. ## Configuration You can configure the mixins using some variables : ```css @hidpi_min_ratio: 1.5; @hidpi_suffix: "@2x"; ``` ## Credits This mixin is inspired by [Retina JS](https://github.com/imulus/retinajs). ## License MIT