Skip to content

Commit

Permalink
adding tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
leomcelroy committed Oct 16, 2023
1 parent bbd7045 commit a8ab5e3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion astro/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { defineConfig } from 'astro/config';
import preact from '@astrojs/preact';

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
site: 'https://blot.hackclub.com',
integrations: [preact()]
integrations: [preact(), tailwind()]
});
2 changes: 2 additions & 0 deletions astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dependencies": {
"@astrojs/check": "^0.2.0",
"@astrojs/preact": "^3.0.0",
"@astrojs/tailwind": "^5.0.2",
"@astrojs/ts-plugin": "^1.1.3",
"@astrojs/vercel": "^3.6.0",
"@codemirror/commands": "^6.2.4",
Expand All @@ -35,6 +36,7 @@
"marked": "^7.0.4",
"preact": "^10.6.5",
"source-map-js": "^1.0.2",
"tailwindcss": "^3.0.24",
"three": "^0.155.0"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions astro/src/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ code {

/* UTILITY CSS */

.hidden {
display: none;
}

.col {
display: flex;
Expand Down
8 changes: 8 additions & 0 deletions astro/tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},
plugins: [],
}

0 comments on commit a8ab5e3

Please sign in to comment.