feat: initial commit

This commit is contained in:
Oliver Davies 2023-08-24 19:49:32 +01:00
commit b1f15a2a1f
4 changed files with 20 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
/dist/
/node_modules/
/package-lock.json

1
README.md Normal file
View file

@ -0,0 +1 @@
# tailwindcss-plugin-hocus-state

11
package.json Normal file
View file

@ -0,0 +1,11 @@
{
"name": "tailwindcss-plugin-hocus-state",
"version": "0.1.0",
"description": "Adds a hocus state for Tailwind CSS for easily adding styles for hover and focus states.",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Oliver Davies",
"license": "MIT"
}

5
src/index.js Normal file
View file

@ -0,0 +1,5 @@
const plugin = require("tailwindcss/plugin");
module.exports = plugin(({ addVariant }) => {
addVariant("hocus", ["&:hover", "&:focus"]);
});