@akanjs/cli 3.2.0-rc.26 → 3.2.0-rc.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.build-stamp +2 -2
- package/package.json +2 -2
- package/templates/app/page/_layout.tsx +13 -0
- package/templates/app/page/styles.css.template +40 -0
- package/templates/appSample/page/_index.tsx +9 -9
- package/templates/appSample/page/_layout.tsx +1 -0
- package/templates/appSample/page/styles.css.template +40 -5
- package/templates/appSample/ui/Recipe/jellyButton.ts +1 -1
- /package/templates/{appSample → app}/public/fonts/Pretendard-Bold.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-Medium.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-Regular.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-SemiBold.woff2 +0 -0
package/.build-stamp
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
06dbe657e1459ea3d2172d7aade7324148a6affacc873be313c2447d1a23170d
|
|
2
|
+
6f157f74-99cc-4e07-b8a4-5def0dff7a25
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.2.0-rc.
|
|
3
|
+
"version": "3.2.0-rc.27",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@earendil-works/pi-tui": "1.3.0",
|
|
40
40
|
"@inquirer/prompts": "^8.7.3",
|
|
41
41
|
"@tailwindcss/node": "^4.3.3",
|
|
42
|
-
"akanjs": "3.2.0-rc.
|
|
42
|
+
"akanjs": "3.2.0-rc.27",
|
|
43
43
|
"chalk": "^6.0.1",
|
|
44
44
|
"commander": "^15.0.0",
|
|
45
45
|
"dayjs": "^1.11.23",
|
|
@@ -20,6 +20,19 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dic
|
|
|
20
20
|
${isUsingShared ? 'import { Auth } from "@libs/shared/ui";\n' : ""}import { rootLayout } from "akanjs/client";
|
|
21
21
|
|
|
22
22
|
export default rootLayout()
|
|
23
|
+
.fonts([
|
|
24
|
+
{
|
|
25
|
+
name: "pretendard",
|
|
26
|
+
default: true,
|
|
27
|
+
subsets: ["latin", "ks-x-1001"],
|
|
28
|
+
paths: [
|
|
29
|
+
{ src: "/fonts/Pretendard-Regular.woff2", weight: 400 },
|
|
30
|
+
{ src: "/fonts/Pretendard-Medium.woff2", weight: 500 },
|
|
31
|
+
{ src: "/fonts/Pretendard-SemiBold.woff2", weight: 600 },
|
|
32
|
+
{ src: "/fonts/Pretendard-Bold.woff2", weight: 700 },
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
])
|
|
23
36
|
.theme("light")
|
|
24
37
|
.head(<title>${dict.appName}</title>)
|
|
25
38
|
.render(({ children }) => {
|
|
@@ -65,3 +65,43 @@
|
|
|
65
65
|
--input: #e5e5e5;
|
|
66
66
|
--ring: #0a0a0a;
|
|
67
67
|
}
|
|
68
|
+
|
|
69
|
+
/* Typography: Pretendard, the layout's default font, at -3% tracking. Font sizes are even and at least 12px —
|
|
70
|
+
Tailwind's steps from text-xs (12px) to text-9xl (128px) all are, so an arbitrary text-[…] keeps the same rule.
|
|
71
|
+
Text that may wrap takes 150% leading, every size's default; a single line takes the font's own (leading-auto). */
|
|
72
|
+
@theme {
|
|
73
|
+
--leading-auto: normal;
|
|
74
|
+
--text-xs--line-height: 1.5;
|
|
75
|
+
--text-xs--letter-spacing: -0.03em;
|
|
76
|
+
--text-sm--line-height: 1.5;
|
|
77
|
+
--text-sm--letter-spacing: -0.03em;
|
|
78
|
+
--text-base--line-height: 1.5;
|
|
79
|
+
--text-base--letter-spacing: -0.03em;
|
|
80
|
+
--text-lg--line-height: 1.5;
|
|
81
|
+
--text-lg--letter-spacing: -0.03em;
|
|
82
|
+
--text-xl--line-height: 1.5;
|
|
83
|
+
--text-xl--letter-spacing: -0.03em;
|
|
84
|
+
--text-2xl--line-height: 1.5;
|
|
85
|
+
--text-2xl--letter-spacing: -0.03em;
|
|
86
|
+
--text-3xl--line-height: 1.5;
|
|
87
|
+
--text-3xl--letter-spacing: -0.03em;
|
|
88
|
+
--text-4xl--line-height: 1.5;
|
|
89
|
+
--text-4xl--letter-spacing: -0.03em;
|
|
90
|
+
--text-5xl--line-height: 1.5;
|
|
91
|
+
--text-5xl--letter-spacing: -0.03em;
|
|
92
|
+
--text-6xl--line-height: 1.5;
|
|
93
|
+
--text-6xl--letter-spacing: -0.03em;
|
|
94
|
+
--text-7xl--line-height: 1.5;
|
|
95
|
+
--text-7xl--letter-spacing: -0.03em;
|
|
96
|
+
--text-8xl--line-height: 1.5;
|
|
97
|
+
--text-8xl--letter-spacing: -0.03em;
|
|
98
|
+
--text-9xl--line-height: 1.5;
|
|
99
|
+
--text-9xl--letter-spacing: -0.03em;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* letter-spacing inherits as a length, not a ratio: text sized without a text-* class keeps -3% of the root's 16px. */
|
|
103
|
+
@layer base {
|
|
104
|
+
html {
|
|
105
|
+
letter-spacing: -0.03em;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -127,9 +127,9 @@ export default page().render(() => {
|
|
|
127
127
|
src="/logo.png"
|
|
128
128
|
width={80}
|
|
129
129
|
/>
|
|
130
|
-
<div
|
|
131
|
-
<p className="font-black text-lg
|
|
132
|
-
<p className="text-foreground/50 text-xs">
|
|
130
|
+
<div>
|
|
131
|
+
<p className="font-black text-lg leading-auto">{appName}</p>
|
|
132
|
+
<p className="text-foreground/50 text-xs leading-auto">
|
|
133
133
|
{l.trans({ en: "Built with Akan.js", ko: "Akan.js로 만든 앱" })}
|
|
134
134
|
</p>
|
|
135
135
|
</div>
|
|
@@ -164,14 +164,14 @@ export default page().render(() => {
|
|
|
164
164
|
</div>
|
|
165
165
|
|
|
166
166
|
<div className="flex flex-col items-center text-center lg:items-start lg:text-left">
|
|
167
|
-
<p className="intro-rise jelly-glass inline-flex items-center gap-2 rounded-full px-4 py-1.5 font-bold text-foreground/75 text-sm [--intro-delay:40ms]">
|
|
167
|
+
<p className="intro-rise jelly-glass inline-flex items-center gap-2 rounded-full px-4 py-1.5 font-bold text-foreground/75 text-sm leading-auto [--intro-delay:40ms]">
|
|
168
168
|
<span className="size-2 rounded-full bg-success ring-4 ring-success/20" />
|
|
169
169
|
{l.trans({ en: "Your app is running", ko: "앱이 실행 중입니다" })}
|
|
170
170
|
</p>
|
|
171
|
-
<h1 className="intro-rise wrap-anywhere mt-6 max-w-full font-black text-
|
|
171
|
+
<h1 className="intro-rise wrap-anywhere mt-6 max-w-full font-black text-6xl leading-auto [--intro-delay:80ms] sm:text-7xl md:text-8xl xl:text-9xl">
|
|
172
172
|
{appName}
|
|
173
173
|
</h1>
|
|
174
|
-
<p className="intro-rise mt-6 max-w-xl font-bold text-foreground/60 text-lg
|
|
174
|
+
<p className="intro-rise mt-6 max-w-xl font-bold text-foreground/60 text-lg [--intro-delay:160ms]">
|
|
175
175
|
{l.trans({
|
|
176
176
|
en: "Built on Akan.js — the TypeScript framework, agents included.",
|
|
177
177
|
ko: "에이전트까지 들어 있는 TypeScript 프레임워크, Akan.js로 만들었습니다.",
|
|
@@ -192,7 +192,7 @@ export default page().render(() => {
|
|
|
192
192
|
/>
|
|
193
193
|
</span>
|
|
194
194
|
</span>
|
|
195
|
-
<span className="whitespace-nowrap rounded-full bg-foreground/6 px-2.5 py-0.5 font-bold text-
|
|
195
|
+
<span className="whitespace-nowrap rounded-full bg-foreground/6 px-2.5 py-0.5 font-bold text-foreground/60 text-xs leading-auto">
|
|
196
196
|
{friend.role}
|
|
197
197
|
</span>
|
|
198
198
|
</li>
|
|
@@ -230,7 +230,7 @@ export default page().render(() => {
|
|
|
230
230
|
{chapter.numeral}
|
|
231
231
|
</span>
|
|
232
232
|
<h3 className="mt-5 font-bold text-lg">{chapter.title}</h3>
|
|
233
|
-
<p className="mt-2 text-foreground/60 text-sm
|
|
233
|
+
<p className="mt-2 text-foreground/60 text-sm">{chapter.body}</p>
|
|
234
234
|
</article>
|
|
235
235
|
))}
|
|
236
236
|
</div>
|
|
@@ -249,7 +249,7 @@ export default page().render(() => {
|
|
|
249
249
|
</span>
|
|
250
250
|
<div className="min-w-0 flex-1">
|
|
251
251
|
<h3 className="font-bold">{step.title}</h3>
|
|
252
|
-
<p className="mt-1 text-foreground/60 text-sm
|
|
252
|
+
<p className="mt-1 text-foreground/60 text-sm">{step.body}</p>
|
|
253
253
|
<code className="mt-2 inline-block rounded-full bg-foreground/6 px-3 py-1 font-mono text-foreground/75 text-xs">
|
|
254
254
|
{step.code}
|
|
255
255
|
</code>
|
|
@@ -96,6 +96,46 @@
|
|
|
96
96
|
--radius-field: 0.875rem;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
/* Typography: Pretendard, the layout's default font, at -3% tracking. Font sizes are even and at least 12px —
|
|
100
|
+
Tailwind's steps from text-xs (12px) to text-9xl (128px) all are, so an arbitrary text-[…] keeps the same rule.
|
|
101
|
+
Text that may wrap takes 150% leading, every size's default; a single line takes the font's own (leading-auto). */
|
|
102
|
+
@theme {
|
|
103
|
+
--leading-auto: normal;
|
|
104
|
+
--text-xs--line-height: 1.5;
|
|
105
|
+
--text-xs--letter-spacing: -0.03em;
|
|
106
|
+
--text-sm--line-height: 1.5;
|
|
107
|
+
--text-sm--letter-spacing: -0.03em;
|
|
108
|
+
--text-base--line-height: 1.5;
|
|
109
|
+
--text-base--letter-spacing: -0.03em;
|
|
110
|
+
--text-lg--line-height: 1.5;
|
|
111
|
+
--text-lg--letter-spacing: -0.03em;
|
|
112
|
+
--text-xl--line-height: 1.5;
|
|
113
|
+
--text-xl--letter-spacing: -0.03em;
|
|
114
|
+
--text-2xl--line-height: 1.5;
|
|
115
|
+
--text-2xl--letter-spacing: -0.03em;
|
|
116
|
+
--text-3xl--line-height: 1.5;
|
|
117
|
+
--text-3xl--letter-spacing: -0.03em;
|
|
118
|
+
--text-4xl--line-height: 1.5;
|
|
119
|
+
--text-4xl--letter-spacing: -0.03em;
|
|
120
|
+
--text-5xl--line-height: 1.5;
|
|
121
|
+
--text-5xl--letter-spacing: -0.03em;
|
|
122
|
+
--text-6xl--line-height: 1.5;
|
|
123
|
+
--text-6xl--letter-spacing: -0.03em;
|
|
124
|
+
--text-7xl--line-height: 1.5;
|
|
125
|
+
--text-7xl--letter-spacing: -0.03em;
|
|
126
|
+
--text-8xl--line-height: 1.5;
|
|
127
|
+
--text-8xl--letter-spacing: -0.03em;
|
|
128
|
+
--text-9xl--line-height: 1.5;
|
|
129
|
+
--text-9xl--letter-spacing: -0.03em;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* letter-spacing inherits as a length, not a ratio: text sized without a text-* class keeps -3% of the root's 16px. */
|
|
133
|
+
@layer base {
|
|
134
|
+
html {
|
|
135
|
+
letter-spacing: -0.03em;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
99
139
|
/* A sampled damped spring: overshoots the target by 18%, wobbles twice and settles. */
|
|
100
140
|
@theme {
|
|
101
141
|
--ease-jelly: linear(0, 0.42 6%, 0.86 13%, 1.12 21%, 1.18 26%, 1.13 32%, 1 41%, 0.95 48%, 0.97 56%, 1.01 66%, 1.005 78%, 1);
|
|
@@ -128,11 +168,6 @@
|
|
|
128
168
|
mix-blend-mode: overlay;
|
|
129
169
|
}
|
|
130
170
|
|
|
131
|
-
h1,
|
|
132
|
-
h2 {
|
|
133
|
-
letter-spacing: -0.035em;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
171
|
::selection {
|
|
137
172
|
background-color: color-mix(in oklab, var(--jelly) 24%, transparent);
|
|
138
173
|
}
|
|
@@ -8,7 +8,7 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { a
|
|
|
8
8
|
/** Sugared gummy button with the same variants as akanjs's \`buttonRecipe\`; \`page/_overrides.tsx\` binds it to every akanjs/ui Button. ghost/outline/link stay surfaceless. */
|
|
9
9
|
export const jellyButtonRecipe = recipe(
|
|
10
10
|
tv({
|
|
11
|
-
base: "squish inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-full font-bold focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
11
|
+
base: "squish inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-full font-bold leading-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
12
12
|
variants: {
|
|
13
13
|
variant: {
|
|
14
14
|
default: "text-foreground",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|