Skip to content

Commit

Permalink
chore: setup example
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed May 6, 2024
1 parent dc52e9f commit 1782bdf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
dist
*.log
/types.ts
output.css
5 changes: 3 additions & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/output.css" />
<title>Document</title>
</head>
<body>
<div class="i-heroicons-academic-cap bg-white text-red-500"></div>
<div class="i-[mdi--ab-testing] text-white"></div>
<div class="i-lucide-home"></div>
<div class="i-[mdi--ab-testing]"></div>
</body>
</html>
3 changes: 3 additions & 0 deletions example/input.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
15 changes: 13 additions & 2 deletions example/tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
const { iconsPlugin, dynamicIconsPlugin } = require("../dist/index.cjs");
const {
iconsPlugin,
dynamicIconsPlugin,
getIconCollections,
} = require("../dist/index.cjs");

module.exports = {
content: ["./index.html"],
plugins: [iconsPlugin(), dynamicIconsPlugin()],
plugins: [
iconsPlugin({
scale: 10,
strokeWidth: 1,
collections: getIconCollections(["lucide", "mdi"]),
}),
dynamicIconsPlugin({ scale: 10 }),
],
};

0 comments on commit 1782bdf

Please sign in to comment.