Skip to content

Commit

Permalink
feat: setup daisy, tailwind configs (#43)
Browse files Browse the repository at this point in the history
* feat: ✨ install daisyui

* feat: ✨ disable skeleton

* style: 🎨 set global theme

* feat: ✨ create playground

* style: 🎨 setup emerald theme

* style: 🎨 add tailwind gray/slate to theme

* style: 🎨 swap primary (green) and secondary (blue)
  • Loading branch information
KevinWu098 authored Feb 12, 2024
1 parent cb3a728 commit 4091184
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"aws-cdk-lib": "2.110.1",
"constructs": "10.3.0",
"cz-conventional-changelog": "3.3.0",
"daisyui": "^4.6.2",
"devmoji": "2.3.0",
"eslint": "8.54.0",
"eslint-config-prettier": "9.0.0",
Expand Down
31 changes: 31 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover" data-theme="zotmeet-theme">
<body data-sveltekit-preload-data="hover" data-theme="emerald">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
23 changes: 23 additions & 0 deletions src/routes/playground/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<script lang="ts">
</script>

<div>
<input
type="text"
placeholder="Type here"
class="input input-bordered input-primary w-full max-w-xs bg-slate-base"
/>
</div>

<div class="card w-96 bg-base-100 shadow-xl">
<figure>
<img src="https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg" alt="Shoes" />
</figure>
<div class="card-body">
<h2 class="card-title">Shoes!</h2>
<p>If a dog chews shoes whose shoes does he choose?</p>
<div class="card-actions justify-end">
<button class="btn btn-primary">Buy Now</button>
</div>
</div>
</div>
40 changes: 34 additions & 6 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// @ts-check
import { join } from "path";

import { skeleton } from "@skeletonlabs/tw-plugin";
// import { skeleton } from "@skeletonlabs/tw-plugin";
import forms from "@tailwindcss/forms";
import daisyui from "daisyui";
import emerald from "daisyui/src/theming/themes";

import { zotmeetTheme } from "./theme";
// import { zotmeetTheme } from "./theme";

/** @type {import('tailwindcss').Config} */
export default {
Expand All @@ -16,12 +18,38 @@ export default {
join(require.resolve("@skeletonlabs/skeleton"), "../**/*.{html,js,svelte,ts}"),
],
theme: {
extend: {},
extend: {
colors: {
gray: {
light: "#F3F4F6" /* maps to gray-100 */,
base: "#D1D5DB" /* gray-300 */,
medium: "#9CA3AF" /* gray-400 */,
dark: "#1F2937" /* gray-800 */,
},
slate: {
base: "#CBD5E1" /* slate-300 */,
},
},
},
default: "daisy",
},
daisyui: {
themes: [
"emerald",
{
emerald: {
...emerald["emerald"],
primary: "#367BFB",
secondary: "#65CC8A",
},
},
],
},
plugins: [
daisyui,
forms,
skeleton({
themes: { custom: [zotmeetTheme] },
}),
// skeleton({
// themes: { custom: [zotmeetTheme] },
// }),
],
};

0 comments on commit 4091184

Please sign in to comment.