v0.1.17 Tailwind 부분 도입 기반 추가

This commit is contained in:
2026-04-13 18:57:55 +09:00
parent f10f9c5e37
commit 033ac60ac2
7 changed files with 34 additions and 5 deletions

2
.gitignore vendored
View File

@@ -5,6 +5,8 @@ package-lock.json
AGENTS.md AGENTS.md
docs/ docs/
theme-export/ theme-export/
theme-export-v*/
*.zip *.zip
local-ghost/ local-ghost/
.docker/ .docker/
node_modules/

View File

@@ -0,0 +1 @@
.visible{visibility:visible}.flex{display:flex}.hidden{display:none}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}

View File

@@ -0,0 +1,2 @@
@tailwind components;
@tailwind utilities;

View File

@@ -6,6 +6,7 @@
<title>{{meta_title}}</title> <title>{{meta_title}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{{asset "built/tailwind.css"}}">
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}"> <link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}">
{{ghost_head}} {{ghost_head}}

View File

@@ -1,6 +1,6 @@
{ {
"name": "ghost-theme-thred-clone", "name": "ghost-theme-thred-clone",
"version": "0.1.16", "version": "0.1.17",
"private": true, "private": true,
"description": "A Ghost theme inspired by the Thred reference layout.", "description": "A Ghost theme inspired by the Thred reference layout.",
"keywords": [ "keywords": [
@@ -75,13 +75,18 @@
} }
}, },
"scripts": { "scripts": {
"build:tailwind": "tailwindcss -c ./tailwind.config.js -i ./assets/styles/tailwind.css -o ./assets/built/tailwind.css --minify",
"dev": "npm run dev:ghost:start", "dev": "npm run dev:ghost:start",
"dev:prepare": "npm run build:tailwind && npm run dev:sync",
"dev:sync": "sh ./scripts/sync-theme.sh", "dev:sync": "sh ./scripts/sync-theme.sh",
"dev:seed": "node ./scripts/build-sample-content.js", "dev:seed": "node ./scripts/build-sample-content.js",
"dev:seed:zip": "npm run dev:seed && cd seed && zip -q -r thred-inspired-sample-content.ghost.zip thred-inspired-sample-content.ghost.json", "dev:seed:zip": "npm run dev:seed && cd seed && zip -q -r thred-inspired-sample-content.ghost.zip thred-inspired-sample-content.ghost.json",
"dev:ghost:start": "npm run dev:sync && docker compose up -d && printf '\\nGhost local: http://localhost:2368\\nGhost admin: http://localhost:2368/ghost\\n\\n'", "dev:ghost:start": "npm run dev:prepare && docker compose up -d && printf '\\nGhost local: http://localhost:2368\\nGhost admin: http://localhost:2368/ghost\\n\\n'",
"dev:ghost:restart": "npm run dev:sync && docker compose restart ghost && printf '\\nGhost local: http://localhost:2368\\nGhost admin: http://localhost:2368/ghost\\n\\n'", "dev:ghost:restart": "npm run dev:prepare && docker compose restart ghost && printf '\\nGhost local: http://localhost:2368\\nGhost admin: http://localhost:2368/ghost\\n\\n'",
"dev:ghost:stop": "docker compose down", "dev:ghost:stop": "docker compose down",
"zip": "zip -r theme.zip . -x '*.git*' -x 'node_modules/*' -x 'theme.zip'" "zip": "zip -r theme.zip . -x '*.git*' -x 'node_modules/*' -x 'theme.zip'"
},
"devDependencies": {
"tailwindcss": "^3.4.17"
} }
} }

View File

@@ -1,6 +1,6 @@
<header class="topbar"> <header class="topbar">
<div class="topbar__inner"> <div class="topbar__inner">
<div class="topbar__brand"> <div class="topbar__brand flex items-center gap-3">
<button class="topbar__sidebar-toggle" type="button" data-left-sidebar-toggle aria-expanded="true" aria-label="Toggle left sidebar"> <button class="topbar__sidebar-toggle" type="button" data-left-sidebar-toggle aria-expanded="true" aria-label="Toggle left sidebar">
<img class="topbar__sidebar-toggle-icon topbar__sidebar-toggle-icon--open" src="{{asset "icons/left_panel_open.svg"}}" alt=""> <img class="topbar__sidebar-toggle-icon topbar__sidebar-toggle-icon--open" src="{{asset "icons/left_panel_open.svg"}}" alt="">
<img class="topbar__sidebar-toggle-icon topbar__sidebar-toggle-icon--close" src="{{asset "icons/left_panel_close.svg"}}" alt=""> <img class="topbar__sidebar-toggle-icon topbar__sidebar-toggle-icon--close" src="{{asset "icons/left_panel_close.svg"}}" alt="">
@@ -16,7 +16,7 @@
<span class="search-shortcut">/</span> <span class="search-shortcut">/</span>
</button> </button>
</div> </div>
<div class="topbar__actions"> <div class="topbar__actions flex items-center justify-end gap-2">
<button class="icon-button icon-button--search-mobile" type="button" data-search-open aria-label="Open search"> <button class="icon-button icon-button--search-mobile" type="button" data-search-open aria-label="Open search">
<img class="search-trigger__icon" src="{{asset "icons/search.svg"}}" alt=""> <img class="search-trigger__icon" src="{{asset "icons/search.svg"}}" alt="">
</button> </button>

18
tailwind.config.js Normal file
View File

@@ -0,0 +1,18 @@
module.exports = {
content: [
"./*.hbs",
"./partials/**/*.hbs",
"./assets/built/theme.js"
],
theme: {
extend: {
colors: {
brand: "#ff4400",
"brand-strong": "#e13b00"
}
}
},
corePlugins: {
preflight: false
}
}