UNPKG

tailwindcss-size-plugin

Version:

A Tailwind CSS plugin that lets you set the width and height at the same time.

16 lines (14 loc) 272 B
const plugin = require("tailwindcss/plugin"); module.exports = plugin(function ({ matchUtilities, theme }) { matchUtilities( { s: (value) => ({ width: value, height: value, }), }, { values: theme("spacing"), } ); });