mirror of
https://github.com/opdavies/tailwindcss-plugin-hocus-state.git
synced 2025-01-22 20:17:32 +00:00
feat: initial commit
This commit is contained in:
commit
b1f15a2a1f
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
/dist/
|
||||||
|
/node_modules/
|
||||||
|
/package-lock.json
|
11
package.json
Normal file
11
package.json
Normal 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
5
src/index.js
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
const plugin = require("tailwindcss/plugin");
|
||||||
|
|
||||||
|
module.exports = plugin(({ addVariant }) => {
|
||||||
|
addVariant("hocus", ["&:hover", "&:focus"]);
|
||||||
|
});
|
Loading…
Reference in a new issue