Skip to content

Commit

Permalink
with tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
kermage committed Mar 22, 2024
1 parent d4ddb4f commit f037f8a
Show file tree
Hide file tree
Showing 7 changed files with 307 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"editorConfig": true,
"printWidth": 120,
"singleQuote": true
"singleQuote": true,
"plugins": ["prettier-plugin-tailwindcss"]
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ThemePlate</title>
<title>ThemePlate Fields</title>
</head>

<body>
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
},
"devDependencies": {
"@preact/preset-vite": "^2.8.2",
"@tailwindcss/vite": "4.0.0-alpha.10",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.12",
"tailwindcss": "4.0.0-alpha.10",
"typescript": "^5.2.2",
"vite": "^5.2.0"
}
Expand Down
295 changes: 295 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.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default function () {
return (
<h1>ThemePlate</h1>
<h1 className="text-center text-5xl md:text-6xl font-black tracking-wide">ThemePlate Fields</h1>
);
}
2 changes: 2 additions & 0 deletions src/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import 'tailwindcss';

:root {
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
import preact from '@preact/preset-vite'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
plugins: [tailwindcss(), preact()],
})

0 comments on commit f037f8a

Please sign in to comment.