@social-hustle/config-tailwind
Advanced tools
Comparing version 1.0.1 to 1.1.0
# @social-hustle/config-tailwind | ||
## 1.1.0 | ||
### Minor Changes | ||
- upgrade tw, add multiline util | ||
## 1.0.1 | ||
@@ -4,0 +10,0 @@ |
24
index.ts
import type { Config } from "tailwindcss" | ||
import plugin from "tailwindcss/plugin" | ||
@@ -45,3 +46,26 @@ // eslint-disable-next-line import/no-anonymous-default-export | ||
require("@tailwindcss/container-queries"), | ||
plugin(function ({ matchUtilities }) { | ||
matchUtilities( | ||
{ | ||
"multiline-clamp": (value) => ({ | ||
"--line-clamp": value, | ||
display: "-webkit-box", | ||
"-webkit-box-orient": "vertical", | ||
"-webkit-line-clamp": "var(--line-clamp)", | ||
overflow: "hidden", | ||
textOverflow: "ellipsis", | ||
}), | ||
}, | ||
{ | ||
values: { | ||
"1": "1", | ||
"2": "2", | ||
"3": "3", | ||
"4": "4", | ||
"5": "5", | ||
}, | ||
} | ||
) | ||
}), | ||
], | ||
} satisfies Config |
{ | ||
"name": "@social-hustle/config-tailwind", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"main": "index.ts", | ||
"devDependencies": { | ||
"tailwindcss": "3.3.2" | ||
"tailwindcss": "3.4.3" | ||
}, | ||
"peerDependencies": { | ||
"@tailwindcss/aspect-ratio": "0.4.2", | ||
"@tailwindcss/container-queries": "0.1.0", | ||
"tailwindcss": "3.3.2", | ||
"tailwindcss-animate": "1.0.5", | ||
"@tailwindcss/container-queries": "0.1.1", | ||
"tailwindcss": "3.4.3", | ||
"tailwindcss-animate": "1.0.7", | ||
"tailwindcss-easing": "0.2.1" | ||
@@ -14,0 +14,0 @@ }, |
2160
69