Created
December 12, 2022 22:56
-
-
Save Greenheart/7242428baf948aaf6d3a1af10c161ced to your computer and use it in GitHub Desktop.
Tailwind CSS 3 text-shadow plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Credit to plugin solution and making it show up in editor intellisense: | |
// https://github.com/tailwindlabs/tailwindcss-intellisense/issues/227#issuecomment-1221083129 | |
const plugin = require('tailwindcss/plugin') | |
const textShadowPlugin = plugin(({ addUtilities }) => { | |
addUtilities({ | |
'.text-shadow': { | |
'text-shadow': '1px 1px 1px #0000003f', | |
}, | |
}) | |
}) | |
// Usage: Add to the `plugins` array in tailwind.config.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment