Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

Commit

Permalink
Merge pull request #41 from crow-fox/fix/hover-style
Browse files Browse the repository at this point in the history
タッチデバイスでhover時のstyleが当たらないようにする
  • Loading branch information
crow-fox authored May 9, 2024
2 parents aeb334c + 4433af0 commit c95ce5a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";

const config: Config = {
content: ["./app/**/*.{ts,tsx}"],
theme: {},
plugins: [],
plugins: [
plugin(({ addVariant }) => {
addVariant(
"hover",
"@media (hover: hover) { &:where(:any-link, :enabled, summary):hover }",
);
}),
],
darkMode: ["selector", '[data-theme="dark"]'],
};
export default config;

0 comments on commit c95ce5a

Please sign in to comment.