UNPKG

@codaworks/react-glow

Version:

Add a mouse-tracing glow effect to React components

15 lines (12 loc) 349 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)' } } } })