Home

Awesome

actual

Determine actual @media breakpoints for CSS <b>range</b> features

API

actual(feature, unit="", guess=1, step=*)

actual('width', 'em') // => 87.40625
actual('device-width', 'px') // => 1440
actual('resolution', 'dpi') // => 96
actual('color') // => 10

actual.is(query)

actual.is('tv')
actual.is('(width:30em)')

actual.as(unit)

['width', 'height', 'device-width', 'device-height'].map(actual.as('px'))

Compatibility

npm

npm install actual --save

Contribute

npm install
npm test
npm start