Skip to content

Commit

Permalink
build: setup tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 14, 2023
1 parent fffc6b5 commit 7df9d7c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {

Check failure on line 1 in postcss.config.js

View workflow job for this annotation

GitHub Actions / lint

'module' is not defined
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
4 changes: 4 additions & 0 deletions src/assets/main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@import "./base.css";

@tailwind base;
@tailwind components;
@tailwind utilities;

#app {
max-width: 1280px;
margin: 0 auto;
Expand Down
6 changes: 3 additions & 3 deletions src/components/MenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { RouterLink } from "vue-router";

<template>
<nav class="flex justify-center space-x-4 mt-4">
<div class="rounded border">
<div class="rounded border px-2 py-1">
<RouterLink to="/">Home</RouterLink>
</div>
<div class="rounded border">
<div class="rounded border px-2 py-1">
<RouterLink to="/about">About</RouterLink>
</div>
<div class="rounded border">
<div class="rounded border px-2 py-1">
<RouterLink to="/settings">Settings</RouterLink>
</div>
</nav>
Expand Down
8 changes: 8 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {

Check failure on line 2 in tailwind.config.js

View workflow job for this annotation

GitHub Actions / lint

'module' is not defined
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
};

0 comments on commit 7df9d7c

Please sign in to comment.