1.0.0 • Published 2 years ago

unocss-preset-rem-transform v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

unocss-preset-rem-transform

Transform rem unit as you want by multiplication.

Due to the hardcode, base rem unit is always 0.25 .

If you'd like the base rem unit to be 1 which means p-1 => { padding : 1rem }, this preset can help you.

installation

pnpm i unocss-preset-rem-transform -D

config

// unocss.config.ts
import presetRemTransform from "unocss-preset-rem-transform"

export default defineConfig({
  // base rem unit would be 0.25 * 4 = 1
  presets: [presetRemTransform(4)],
})

Thanks :heart:

License

MIT

1.0.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago