Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GitHub Actions workflow will fail because there is no test script defined in package.json. The workflow runs npm test (line 31), but package.json only defines dev, build, postbuild, start, and lint scripts. Either add a test script to package.json or remove the npm test line from the workflow.

Suggested change
- run: npm test

Copilot uses AI. Check for mistakes.
33 changes: 32 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import type { Config } from "tailwindcss";
import defaultTheme from "tailwindcss/defaultTheme"; // Tailwindのデフォルトテーマをインポート

const config = {
// ダークモードはクラスベースで切り替えます
darkMode: ["class"],
// コンテンツのパス設定(一般的なReact/Next.jsプロジェクトの構造)
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
Expand All @@ -13,11 +16,27 @@ const config = {
container: {
center: true,
padding: "2rem",
// カスタム画面サイズ (breakpoints) を拡張
screens: {
"2xl": "1400px",
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': "1400px",
'3xl': "1600px", // ワイドデスクトップ用
'4xl': "1920px", // ウルトラワイド用
},
},
extend: {
// 1. フォントファミリーの拡張
fontFamily: {
// メインフォントとして 'Inter' を設定
sans: ["Inter", ...defaultTheme.fontFamily.sans],
// 見出しやアクセント用に 'Poppins' を追加 (例: className="font-heading")
heading: ["Poppins", ...defaultTheme.fontFamily.sans],
},

// 2. カラーパレット (shadcn/uiのCSS変数ベースのカラーを保持)
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
Expand Down Expand Up @@ -53,11 +72,22 @@ const config = {
foreground: "hsl(var(--card-foreground))",
},
},

// 3. ボーダーラディウスの拡張
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
xl: "calc(var(--radius) + 2px)", // より大きな丸みを追加
},

// 4. カスタムシャドウの追加
boxShadow: {
// より目立つ、深みのあるシャドウ (例: className="shadow-3xl")
'3xl': '0 35px 60px -15px rgba(0, 0, 0, 0.4)',
},

// 5. アコーディオン用キーフレームとアニメーション (元の設定を保持)
keyframes: {
"accordion-down": {
from: { height: "0" },
Expand All @@ -74,6 +104,7 @@ const config = {
},
},
},
// プラグイン (アニメーション系を保持)
plugins: [require("tailwindcss-animate"), require("tailwindcss-animated")],
} satisfies Config;

Expand Down