mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
Update tailwind.config.js
Added type defs for custom Tailwind plugin args.
This commit is contained in:
parent
2fe1527bea
commit
f2ab14e529
@ -1,4 +1,5 @@
|
|||||||
const plugin = require('tailwindcss/plugin');
|
const plugin = require('tailwindcss/plugin');
|
||||||
|
import type { PluginAPI } from "tailwindcss/types/config"
|
||||||
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@ -36,7 +37,7 @@ module.exports = {
|
|||||||
plugins: [
|
plugins: [
|
||||||
require('@tailwindcss/container-queries'),
|
require('@tailwindcss/container-queries'),
|
||||||
require('@tailwindcss/typography'),
|
require('@tailwindcss/typography'),
|
||||||
plugin(({ matchUtilities, theme }) => {
|
plugin(({ matchUtilities, theme }: PluginAPI) => {
|
||||||
matchUtilities(
|
matchUtilities(
|
||||||
{
|
{
|
||||||
'animation-delay': (value) => {
|
'animation-delay': (value) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user