Skip to main content
Version: 0.6

Responsive Sizing

Responsive Width

Utilities for responsive width based on Window Dimensions Width.

import { apply } from 'osmicsx'

apply('w/50') // Return 50% width of Window Width

Responsive Height

Utilities for responsive height based on Window Dimensions Height.

import { apply } from 'osmicsx'

apply('h/50') // Return 50% height of Window Height