Skip to content

Commit

Permalink
feat(apps/example-app): add initial tailwindcss config (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpellegrini authored Mar 14, 2024
1 parent f014cac commit 2ec83bd
Show file tree
Hide file tree
Showing 7 changed files with 380 additions and 17 deletions.
3 changes: 3 additions & 0 deletions apps/sveltekit-example-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
"@sveltejs/vite-plugin-svelte": "3.0.2",
"@toolchain/eslint-config": "workspace:*",
"@toolchain/vitest-config": "workspace:*",
"autoprefixer": "10.4.18",
"postcss": "8.4.35",
"svelte": "4.2.12",
"svelte-check": "3.6.5",
"tailwindcss": "3.4.1",
"tslib": "2.6.2",
"vite": "5.1.4"
}
Expand Down
6 changes: 6 additions & 0 deletions apps/sveltekit-example-app/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
3 changes: 3 additions & 0 deletions apps/sveltekit-example-app/src/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
5 changes: 5 additions & 0 deletions apps/sveltekit-example-app/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script lang="ts">
import '../app.css'
</script>

<slot />
11 changes: 8 additions & 3 deletions apps/sveltekit-example-app/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
$: greeting = greetUser(data.user)
</script>

<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
<p>{greeting}</p>
<div class="space-y-1">
<h1 class="text-4xl">Welcome to SvelteKit</h1>
<p>
Visit <a class="text-blue-600 hover:underline" href="https://kit.svelte.dev">kit.svelte.dev</a> to
read the documentation
</p>
<p class="text-2xl">{greeting}</p>
</div>
10 changes: 10 additions & 0 deletions apps/sveltekit-example-app/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @type {import('tailwindcss').Config} */
const config = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {},
},
plugins: [],
}

export default config
Loading

0 comments on commit 2ec83bd

Please sign in to comment.