Skip to content

Instantly share code, notes, and snippets.

View yainspan's full-sized avatar
🏠
Working from home

Yaakov yainspan

🏠
Working from home
View GitHub Profile
@yainspan
yainspan / group-last.js
Created December 12, 2021 17:26
group-last variant
const plugin = require("tailwindcss/plugin");
module.exports = {
...
plugins: [
...
plugin(function ({ addVariant, e }) {
addVariant("group-last", ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.group:last-child .${e(`group-last${separator}${className}`)}`;