mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
15 lines
464 B
JavaScript
15 lines
464 B
JavaScript
const { nameClass } = require('../pluginUtils')
|
|
const transformThemeValue = require('tailwindcss/lib/util/transformThemeValue').default
|
|
|
|
module.exports = function ({ matchUtilities, jit: { theme } }) {
|
|
matchUtilities({
|
|
col: (modifier, { theme }) => {
|
|
if (modifier === '' || theme.gridColumn[modifier] === undefined) {
|
|
return []
|
|
}
|
|
|
|
return { [nameClass('col', modifier)]: { 'grid-column': theme.gridColumn[modifier] } }
|
|
},
|
|
})
|
|
}
|