Skip to content

Commit

Permalink
Fix tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsAnunesS committed Oct 18, 2022
1 parent 24b66ae commit 2734f84
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 27 deletions.
15 changes: 0 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,6 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
mtw_purple: '#f817b5',
mtw_white_alt: '#f9f9f9',
mtw_white_alt2: '#f3f4ff',
}
}
}
}
</script>
<title>Laa Widget</title>
</head>

Expand Down
13 changes: 5 additions & 8 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.0",
"@vue/tsconfig": "^0.1.3",
"autoprefixer": "^10.4.12",
"eslint": "^8.22.0",
"eslint-plugin-vue": "^9.3.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.18",
"prettier": "^2.7.1",
"tailwindcss": "^3.1.8",
"typescript": "~4.7.4",
"vite": "^3.0.9",
"vue-tsc": "^0.40.7"
Expand Down
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 = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Empty file removed src/assets/.gitkeep
Empty file.
3 changes: 3 additions & 0 deletions src/assets/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
3 changes: 2 additions & 1 deletion src/components/widget.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import Account, { ArAccount, ArProfile } from 'arweave-account';
import Account from 'arweave-account';
import type { ArAccount } from 'arweave-account';
import { run } from 'ar-gql';
import { useAccountStore } from '@/stores/account';
import Twitter from '@/components/icons/Twitter.vue';
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { createPinia } from "pinia";
import App from "./App.vue";
import router from "./router";

import "./assets/main.css";

const app = createApp(App);

app.use(createPinia());
Expand Down
4 changes: 2 additions & 2 deletions src/stores/account.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ref, computed, reactive } from "vue";
import { ref, reactive } from "vue";
import { defineStore } from "pinia";
import { ArProfile } from 'arweave-account';
import type { ArProfile } from "arweave-account";

export const useAccountStore = defineStore("account", () => {
const txid = ref();
Expand Down
2 changes: 1 addition & 1 deletion src/views/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import Widget from '@/components/widget.vue';

<template>
<main>
<Widget msg="Hello World!" />
<Widget />
</main>
</template>
19 changes: 19 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./index.html',
'./src/**/*.{vue,js,ts,jsx,tsx}'
],
theme: {
extend: {
colors: {
mtw_purple: '#f817b5',
mtw_white_alt: '#f9f9f9',
mtw_white_alt2: '#f3f4ff',
}
}
},
plugins: [
require("daisyui")
],
}

0 comments on commit 2734f84

Please sign in to comment.