Skip to content

Commit af0ed67

Browse files
committed
Tailwind CSS と daisyUI のセットアップ
1 parent 021ea3e commit af0ed67

File tree

8 files changed

+33
-9
lines changed

8 files changed

+33
-9
lines changed

.cspell.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"words": [
55
"autoincrement",
66
"bunx",
7+
"chrono",
78
"coursemate",
9+
"daisyui",
810
"datasource",
911
"direnv",
1012
"ECCS",
@@ -13,11 +15,10 @@
1315
"notistack",
1416
"psql",
1517
"qiita",
18+
"reqwest",
1619
"safify",
1720
"supabase",
18-
"swiper",
19-
"reqwest",
20-
"chrono"
21+
"swiper"
2122
],
2223
"dictionaries": [
2324
"softwareTerms",

web/app/globals.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
.icon-image-preview {
6+
/* TODO: make it flexible */
7+
max-width: 450px;
8+
max-height: 450px;
9+
}
10+

web/app/index.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

web/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { CssBaseline, ThemeProvider, createTheme } from "@mui/material";
44
import { SnackbarProvider } from "notistack";
55
import React from "react";
6-
import "./index.css";
6+
import "./globals.css";
77
import "@fontsource/roboto/300.css";
88
import "@fontsource/roboto/400.css";
99
import "@fontsource/roboto/500.css";

web/bun.lockb

32.6 KB
Binary file not shown.

web/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@
3030
"@types/css-modules": "^1.0.5",
3131
"@types/react": "^18.2.66",
3232
"@types/react-dom": "^18.2.22",
33+
"autoprefixer": "^10.4.20",
34+
"daisyui": "^4.12.14",
3335
"eslint": "^9.14.0",
3436
"globals": "^15.9.0",
37+
"postcss": "^8.4.47",
38+
"tailwindcss": "^3.4.14",
3539
"typescript": "^5.2.2"
3640
}
3741
}

web/postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

web/tailwind.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('tailwindcss').Config} */
2+
export default {
3+
content: ["./app/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
4+
theme: {
5+
extend: {},
6+
},
7+
plugins: [require("daisyui")],
8+
};

0 commit comments

Comments
 (0)