UNPKG

@aksharahegde/nuxt-glow

Version:

Add a mouse-tracing glow effect to Nuxt components

17 lines (15 loc) 333 B
const plugin = require("tailwindcss/plugin"); module.exports = plugin( ({ addVariant }) => { addVariant("glow", ".glow-capture [glow] &"); }, { theme: { extend: { colors: { glow: "color-mix(in srgb, var(--glow-color) calc(<alpha-value> * 100%), transparent)", }, }, }, } );