Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency tailwindcss to v4 #258

Merged
merged 3 commits into from
Feb 2, 2025
Merged
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
6 changes: 6 additions & 0 deletions packages/blog/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { generateRssFeed } from './rss-generator'
import { generateOGPMeta } from './ogp'
import { OGPImageGenerator } from './ogp-generator'
import { readFileSync } from 'node:fs'
import tailwindcss from "@tailwindcss/vite";

const TITLE = 'CodingFeline'
const DESCRIPTION = 'Thoughts, stories and ideas'
Expand Down Expand Up @@ -61,6 +62,11 @@ function detectPageTypeFromPath(path: string): 'post' | 'scrap' | 'other' {

// https://vitepress.dev/reference/site-config
export default defineConfig({
vite: {
plugins: [
tailwindcss(),
],
},
title: TITLE,
description: DESCRIPTION,
lang: 'ja-JP',
Expand Down
2 changes: 0 additions & 2 deletions packages/blog/.vitepress/theme/VPLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,3 @@ if (typeof window !== 'undefined') {
<VPFooter v-if="showNavigation" class="pt-24" />
</div>
</template>

<style lang="postcss" module></style>
2 changes: 1 addition & 1 deletion packages/blog/.vitepress/theme/components/VPHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function updatedAt(scrap: Scrap) {
<li v-for="(scrap, index) in recentScraps" :key="index" class="py-3 px-8">
<a :href="`/scraps/${scrap.number}/`" class="block">
<p class="px-1 font-bold underline">{{ scrap.title }}</p>
<p>
<p class="mt-0.5">
<VPScrapLabel :state="scrap.state" /><time
:datetime="updatedAt(scrap)"
class="text-sm text-gray-500 dark:text-gray-400"
Expand Down
4 changes: 3 additions & 1 deletion packages/blog/.vitepress/theme/components/VPPost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const { page, frontmatter } = useData()
</div>
</template>

<style lang="postcss">
<style>
@reference "../style.css";

.VPPost {
.table-of-contents {
@apply rounded-md border-2 border-gray-300 bg-gray-50 px-3;
Expand Down
2 changes: 1 addition & 1 deletion packages/blog/.vitepress/theme/components/VPScraps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function updatedAt(scrap: Scrap) {
<a :href="`/scraps/${scrap.number}/`" class="block">
<div>
<span class="px-1 underline">{{ scrap.title }}</span>
<p class="block">
<p class="block mt-0.5">
<VPScrapLabel :state="scrap.state" />
<time>{{ updatedAt(scrap) }}</time>
</p>
Expand Down
9 changes: 6 additions & 3 deletions packages/blog/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import "tailwindcss";
@plugin "@tailwindcss/typography";


/**
* Customize default theme styling by overriding CSS variables:
* https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
*/

@theme {
--color-amazon: #f6ce50;
}

/**
* Colors
* -------------------------------------------------------------------------- */
Expand Down
3 changes: 2 additions & 1 deletion packages/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@codingfeline/eslint-config": "workspace:*",
"@resvg/resvg-js": "2.6.2",
"@tailwindcss/typography": "0.5.16",
"@tailwindcss/vite": "4.0.2",
"autoprefixer": "10.4.20",
"date-fns": "4.1.0",
"eslint": "9.19.0",
Expand All @@ -29,7 +30,7 @@
"prettier-plugin-tailwindcss": "0.6.11",
"satori": "0.12.1",
"sitemap": "8.0.0",
"tailwindcss": "3.4.17",
"tailwindcss": "4.0.2",
"typescript": "5.7.3",
"typescript-eslint": "8.22.0",
"vitepress": "1.6.3",
Expand Down
10 changes: 0 additions & 10 deletions packages/blog/postcss.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/blog/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"module": "esnext",
"target": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
Expand Down
Loading