Skip to content

Commit

Permalink
Merge pull request #4 from fmstuff/daisy-ui
Browse files Browse the repository at this point in the history
Add DaisyUI and use it in Button component.
  • Loading branch information
fmstuff authored Oct 17, 2021
2 parents 9713ec2 + 38cdcba commit 3b8af8c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"vite": "^2.6.0"
},
"dependencies": {
"daisyui": "^1.14.5",
"uuid": "^8.3.2"
}
}
8 changes: 4 additions & 4 deletions src/lib/components/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
</script>

<button on:click class="
btn btn-primary
w-full
my-4
px-8 py-4
text-indigo-600
bg-purple-100
active:bg-purple-200
hover:bg-purple-200
active:bg-purple-300
rounded-full
outline-none
focus:ring-2
focus:ring-indigo-600
active:ring-offset-2
active:ring-4
"
>
">
<slot>Custom Button</slot>
</button>
2 changes: 1 addition & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ module.exports = {
variants: {
extend: {},
},
plugins: [],
plugins: [require("daisyui")],
};
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ cssesc@^3.0.0:
resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee"
integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==

daisyui@^1.14.5:
version "1.14.5"
resolved "https://registry.yarnpkg.com/daisyui/-/daisyui-1.14.5.tgz#2588b95d21654426f8c81995a90260cb2b683ad1"
integrity sha512-/1GVhvqaD5Gk+VwRV7X5cVPJGe2uUOZeTGb4UtvmiTmis9EtOqsGpZJ7cBPzZLBOvq57tRUtAk8YNmEC3YSIMA==

debug@^4.3.2:
version "4.3.2"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b"
Expand Down

0 comments on commit 3b8af8c

Please sign in to comment.