Search…
Vanilla Extract Utils
Contains utils that depend on @vanilla-extract/css and can thus only be imported from *.css.ts files.

responsiveStyleMap

Wraps Vanilla Extract's style function where each style can contain breakpoints:
1
import { responsiveStyleMap } from '@island.is/island-ui/vanilla-extract-utils'
2
3
export const container = responsiveStyleMap({
4
display: 'flex',
5
height: { xs: 80, md: 112 },
6
})
Copied!

Running unit tests

Run nx test island-ui-vanilla-extract-utils to execute the unit tests via Jest.
Last modified 2mo ago