create-guren-app 1.9.0 → 1.10.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-guren-app",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -18,13 +18,13 @@
18
18
  "test": "bun test"
19
19
  },
20
20
  "dependencies": {
21
- "@guren/cli": "^2.10.0",
22
- "@guren/core": "^1.9.0",
21
+ "@guren/cli": "^2.11.0",
22
+ "@guren/core": "^1.10.0",
23
23
  "@guren/orm": "^2.6.1",
24
24
  "drizzle-orm": "1.0.0-rc.4"
25
25
  },
26
26
  "devDependencies": {
27
- "@guren/testing": "^1.6.2",
27
+ "@guren/testing": "^1.6.3",
28
28
  "bun-types": "^1.3.1",
29
29
  "drizzle-kit": "1.0.0-rc.4",
30
30
  "typescript": "^5.4.0"
@@ -6,22 +6,22 @@ export default function Layout({ children }: PropsWithChildren) {
6
6
  const user = props.auth?.user
7
7
 
8
8
  return (
9
- <div className="min-h-screen bg-slate-950 text-slate-100">
10
- <header className="border-b border-slate-800 bg-slate-900/60 backdrop-blur">
9
+ <div className="min-h-screen bg-g-page font-sans text-g-text">
10
+ <header className="border-b border-g-line bg-g-panel">
11
11
  <div className="mx-auto flex max-w-4xl items-center justify-between px-6 py-4">
12
- <Link href="/" className="text-lg font-semibold text-emerald-300">
12
+ <Link href="/" className="text-lg font-bold text-g-heading">
13
13
  __APP_TITLE__
14
14
  </Link>
15
- <nav className="flex items-center gap-4 text-sm text-slate-300">
16
- <Link href="/posts" className="transition hover:text-emerald-200">
15
+ <nav className="flex items-center gap-4 text-sm text-g-text-2">
16
+ <Link href="/posts" className="transition hover:text-g-heading">
17
17
  Posts
18
18
  </Link>
19
19
  {user ? (
20
20
  <>
21
- <Link href="/posts/create" className="transition hover:text-emerald-200">
21
+ <Link href="/posts/create" className="transition hover:text-g-heading">
22
22
  Write
23
23
  </Link>
24
- <Link href="/dashboard" className="transition hover:text-emerald-200">
24
+ <Link href="/dashboard" className="transition hover:text-g-heading">
25
25
  Dashboard
26
26
  </Link>
27
27
  {/* Inertia's Link posts through Axios, which copies the
@@ -32,7 +32,7 @@ export default function Layout({ children }: PropsWithChildren) {
32
32
  href="/logout"
33
33
  method="post"
34
34
  as="button"
35
- className="rounded border border-emerald-500 px-3 py-1 text-emerald-200 transition hover:bg-emerald-500 hover:text-slate-950"
35
+ className="rounded-g-ctl border border-g-line-strong px-3 py-1 text-g-text transition hover:border-g-muted"
36
36
  >
37
37
  Log out
38
38
  </Link>
@@ -40,7 +40,7 @@ export default function Layout({ children }: PropsWithChildren) {
40
40
  ) : (
41
41
  <Link
42
42
  href="/login"
43
- className="rounded border border-emerald-500 px-3 py-1 text-emerald-200 transition hover:bg-emerald-500 hover:text-slate-950"
43
+ className="rounded-g-ctl border border-g-line-strong px-3 py-1 text-g-text transition hover:border-g-muted"
44
44
  >
45
45
  Sign in
46
46
  </Link>
@@ -12,37 +12,40 @@ export default function Home({ latest }: Props) {
12
12
  <Head title="__APP_TITLE__" />
13
13
  <section className="space-y-10">
14
14
  <header className="space-y-3">
15
- <h1 className="text-4xl font-semibold tracking-tight text-emerald-300">__APP_TITLE__</h1>
16
- <p className="text-slate-400">
15
+ <h1 className="flex items-center gap-4 text-4xl font-bold tracking-tight text-g-heading">
16
+ <span aria-hidden className="h-9 w-[3px] shrink-0 rounded-full bg-[image:var(--g-tick)]" />
17
+ __APP_TITLE__
18
+ </h1>
19
+ <p className="text-g-text-2">
17
20
  A blog built with Guren — controllers on the server, React pages over Inertia, one
18
- codebase. Edit <code className="rounded bg-slate-900 px-1.5 py-0.5 text-sm text-emerald-200">resources/js/pages/Home.tsx</code>{' '}
21
+ codebase. Edit <code className="rounded bg-g-ink px-1.5 py-0.5 font-mono text-sm text-g-on-ink">resources/js/pages/Home.tsx</code>{' '}
19
22
  to make it yours.
20
23
  </p>
21
24
  </header>
22
25
 
23
26
  <div className="space-y-4">
24
27
  <div className="flex items-baseline justify-between">
25
- <h2 className="text-xl font-medium text-slate-100">Latest posts</h2>
26
- <Link href="/posts" className="text-sm text-emerald-300 transition hover:text-emerald-200">
28
+ <h2 className="text-xl font-bold text-g-heading">Latest posts</h2>
29
+ <Link href="/posts" className="text-sm text-g-accent-text transition hover:underline">
27
30
  All posts →
28
31
  </Link>
29
32
  </div>
30
33
 
31
34
  {latest.length === 0 ? (
32
- <p className="rounded border border-slate-800 bg-slate-900/40 px-4 py-6 text-sm text-slate-400">
33
- No posts yet. Run <code className="text-emerald-200">bun run db:seed</code> for sample content,
35
+ <p className="rounded-g-card border border-g-line bg-g-panel px-4 py-6 text-sm text-g-text-2">
36
+ No posts yet. Run <code className="font-mono text-g-accent-text">bun run db:seed</code> for sample content,
34
37
  or sign in and write the first one.
35
38
  </p>
36
39
  ) : (
37
40
  <ul className="space-y-4">
38
41
  {latest.map((post) => (
39
- <li key={post.id} className="rounded-lg border border-slate-800 bg-slate-900/40 p-5">
40
- <Link href={`/posts/${post.id}`} className="text-lg font-medium text-slate-100 transition hover:text-emerald-200">
42
+ <li key={post.id} className="rounded-g-card border border-g-line bg-g-panel p-5 shadow-g-card">
43
+ <Link href={`/posts/${post.id}`} className="text-lg font-bold text-g-heading transition hover:text-g-accent-text">
41
44
  {post.title}
42
45
  </Link>
43
- <p className="mt-2 text-sm text-slate-400">{post.excerpt}</p>
46
+ <p className="mt-2 text-sm text-g-text-2">{post.excerpt}</p>
44
47
  {post.author ? (
45
- <p className="mt-3 text-xs uppercase tracking-wide text-slate-500">by {post.author.name}</p>
48
+ <p className="mt-3 font-mono text-xs uppercase tracking-wide text-g-muted">by {post.author.name}</p>
46
49
  ) : null}
47
50
  </li>
48
51
  ))}
@@ -27,15 +27,19 @@ export default function Login({ email = '', errors = {} }: Props) {
27
27
  return (
28
28
  <Layout>
29
29
  <Head title="Sign in" />
30
- <section className="rounded-lg border border-slate-800 bg-slate-900/40 p-8 shadow-xl shadow-emerald-500/5">
31
- <h1 className="text-2xl font-semibold text-emerald-300">Sign in</h1>
32
- <p className="mt-2 text-sm text-slate-400">
30
+ <section className="rounded-g-card border border-g-line bg-g-panel p-8 shadow-g-card">
31
+ <h1 className="flex items-center gap-3 text-2xl font-bold text-g-heading">
32
+ <span aria-hidden className="h-6 w-[3px] shrink-0 rounded-full bg-[image:var(--g-tick)]" />
33
+ Sign in
34
+ </h1>
35
+ <p className="mt-2 text-sm text-g-text-2">
33
36
  Use your account credentials to continue.
34
37
  </p>
35
38
 
36
39
  {errors.message && (
37
- <p className="mt-4 rounded border border-rose-500/60 bg-rose-500/10 px-4 py-2 text-sm text-rose-200">
38
- {errors.message}
40
+ <p className="mt-4 flex gap-3 border-y border-g-line py-2.5 text-sm">
41
+ <span className="w-10 shrink-0 text-right font-mono text-xs font-bold leading-5 text-g-danger">error</span>
42
+ <span className="text-g-text">{errors.message}</span>
39
43
  </p>
40
44
  )}
41
45
 
@@ -47,7 +51,7 @@ export default function Login({ email = '', errors = {} }: Props) {
47
51
  }}
48
52
  >
49
53
  <div>
50
- <label htmlFor={emailId} className="block text-sm font-medium text-slate-200">
54
+ <label htmlFor={emailId} className="block text-sm font-bold text-g-heading">
51
55
  Email
52
56
  </label>
53
57
  <input
@@ -56,13 +60,13 @@ export default function Login({ email = '', errors = {} }: Props) {
56
60
  value={form.data.email}
57
61
  onChange={(event) => form.setData('email', event.target.value)}
58
62
  required
59
- className="mt-1 w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring"
63
+ className="mt-1 w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent"
60
64
  />
61
- {errors.email && <p className="mt-1 text-sm text-rose-300">{errors.email}</p>}
65
+ {errors.email && <p className="mt-1 text-sm text-g-danger">{errors.email}</p>}
62
66
  </div>
63
67
 
64
68
  <div>
65
- <label htmlFor={passwordId} className="block text-sm font-medium text-slate-200">
69
+ <label htmlFor={passwordId} className="block text-sm font-bold text-g-heading">
66
70
  Password
67
71
  </label>
68
72
  <input
@@ -71,17 +75,17 @@ export default function Login({ email = '', errors = {} }: Props) {
71
75
  value={form.data.password}
72
76
  onChange={(event) => form.setData('password', event.target.value)}
73
77
  required
74
- className="mt-1 w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring"
78
+ className="mt-1 w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent"
75
79
  />
76
- {errors.password && <p className="mt-1 text-sm text-rose-300">{errors.password}</p>}
80
+ {errors.password && <p className="mt-1 text-sm text-g-danger">{errors.password}</p>}
77
81
  </div>
78
82
 
79
- <label className="flex items-center gap-2 text-sm text-slate-300">
83
+ <label className="flex items-center gap-2 text-sm text-g-text">
80
84
  <input
81
85
  type="checkbox"
82
86
  checked={form.data.remember}
83
87
  onChange={(event) => form.setData('remember', event.target.checked)}
84
- className="h-4 w-4 rounded border-slate-700 bg-slate-950 text-emerald-400 focus:ring-emerald-400"
88
+ className="h-4 w-4 rounded accent-g-accent"
85
89
  />
86
90
  Remember me
87
91
  </label>
@@ -89,16 +93,16 @@ export default function Login({ email = '', errors = {} }: Props) {
89
93
  <button
90
94
  type="submit"
91
95
  disabled={form.processing}
92
- className="w-full rounded bg-emerald-500 px-4 py-2 text-sm font-semibold text-slate-950 transition hover:bg-emerald-400"
96
+ className="w-full rounded-g-ctl bg-g-accent px-4 py-2 text-sm font-bold text-g-on-accent transition hover:bg-g-accent-down disabled:cursor-not-allowed disabled:opacity-45"
93
97
  >
94
98
  Sign in
95
99
  </button>
96
100
  </form>
97
101
 
98
102
 
99
- <p className="mt-6 text-center text-sm text-slate-400">
103
+ <p className="mt-6 text-center text-sm text-g-text-2">
100
104
  Don&apos;t have an account?{' '}
101
- <Link href="/register" className="text-emerald-300 transition hover:text-emerald-200">
105
+ <Link href="/register" className="text-g-accent-text transition hover:underline">
102
106
  Sign up
103
107
  </Link>
104
108
  </p>
@@ -30,15 +30,19 @@ export default function Register({ errors = {} }: Props) {
30
30
  return (
31
31
  <Layout>
32
32
  <Head title="Sign up" />
33
- <section className="rounded-lg border border-slate-800 bg-slate-900/40 p-8 shadow-xl shadow-emerald-500/5">
34
- <h1 className="text-2xl font-semibold text-emerald-300">Create an account</h1>
35
- <p className="mt-2 text-sm text-slate-400">
33
+ <section className="rounded-g-card border border-g-line bg-g-panel p-8 shadow-g-card">
34
+ <h1 className="flex items-center gap-3 text-2xl font-bold text-g-heading">
35
+ <span aria-hidden className="h-6 w-[3px] shrink-0 rounded-full bg-[image:var(--g-tick)]" />
36
+ Create an account
37
+ </h1>
38
+ <p className="mt-2 text-sm text-g-text-2">
36
39
  Sign up to get started.
37
40
  </p>
38
41
 
39
42
  {errors.message && (
40
- <p className="mt-4 rounded border border-rose-500/60 bg-rose-500/10 px-4 py-2 text-sm text-rose-200">
41
- {errors.message}
43
+ <p className="mt-4 flex gap-3 border-y border-g-line py-2.5 text-sm">
44
+ <span className="w-10 shrink-0 text-right font-mono text-xs font-bold leading-5 text-g-danger">error</span>
45
+ <span className="text-g-text">{errors.message}</span>
42
46
  </p>
43
47
  )}
44
48
 
@@ -50,7 +54,7 @@ export default function Register({ errors = {} }: Props) {
50
54
  }}
51
55
  >
52
56
  <div>
53
- <label htmlFor={nameId} className="block text-sm font-medium text-slate-200">
57
+ <label htmlFor={nameId} className="block text-sm font-bold text-g-heading">
54
58
  Name
55
59
  </label>
56
60
  <input
@@ -59,13 +63,13 @@ export default function Register({ errors = {} }: Props) {
59
63
  value={form.data.name}
60
64
  onChange={(event) => form.setData('name', event.target.value)}
61
65
  required
62
- className="mt-1 w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring"
66
+ className="mt-1 w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent"
63
67
  />
64
- {errors.name && <p className="mt-1 text-sm text-rose-300">{errors.name}</p>}
68
+ {errors.name && <p className="mt-1 text-sm text-g-danger">{errors.name}</p>}
65
69
  </div>
66
70
 
67
71
  <div>
68
- <label htmlFor={emailId} className="block text-sm font-medium text-slate-200">
72
+ <label htmlFor={emailId} className="block text-sm font-bold text-g-heading">
69
73
  Email
70
74
  </label>
71
75
  <input
@@ -74,13 +78,13 @@ export default function Register({ errors = {} }: Props) {
74
78
  value={form.data.email}
75
79
  onChange={(event) => form.setData('email', event.target.value)}
76
80
  required
77
- className="mt-1 w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring"
81
+ className="mt-1 w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent"
78
82
  />
79
- {errors.email && <p className="mt-1 text-sm text-rose-300">{errors.email}</p>}
83
+ {errors.email && <p className="mt-1 text-sm text-g-danger">{errors.email}</p>}
80
84
  </div>
81
85
 
82
86
  <div>
83
- <label htmlFor={passwordId} className="block text-sm font-medium text-slate-200">
87
+ <label htmlFor={passwordId} className="block text-sm font-bold text-g-heading">
84
88
  Password
85
89
  </label>
86
90
  <input
@@ -89,13 +93,13 @@ export default function Register({ errors = {} }: Props) {
89
93
  value={form.data.password}
90
94
  onChange={(event) => form.setData('password', event.target.value)}
91
95
  required
92
- className="mt-1 w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring"
96
+ className="mt-1 w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent"
93
97
  />
94
- {errors.password && <p className="mt-1 text-sm text-rose-300">{errors.password}</p>}
98
+ {errors.password && <p className="mt-1 text-sm text-g-danger">{errors.password}</p>}
95
99
  </div>
96
100
 
97
101
  <div>
98
- <label htmlFor={passwordConfirmationId} className="block text-sm font-medium text-slate-200">
102
+ <label htmlFor={passwordConfirmationId} className="block text-sm font-bold text-g-heading">
99
103
  Confirm password
100
104
  </label>
101
105
  <input
@@ -104,25 +108,25 @@ export default function Register({ errors = {} }: Props) {
104
108
  value={form.data.passwordConfirmation}
105
109
  onChange={(event) => form.setData('passwordConfirmation', event.target.value)}
106
110
  required
107
- className="mt-1 w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring"
111
+ className="mt-1 w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent"
108
112
  />
109
113
  {errors.passwordConfirmation && (
110
- <p className="mt-1 text-sm text-rose-300">{errors.passwordConfirmation}</p>
114
+ <p className="mt-1 text-sm text-g-danger">{errors.passwordConfirmation}</p>
111
115
  )}
112
116
  </div>
113
117
 
114
118
  <button
115
119
  type="submit"
116
120
  disabled={form.processing}
117
- className="w-full rounded bg-emerald-500 px-4 py-2 text-sm font-semibold text-slate-950 transition hover:bg-emerald-400 disabled:opacity-50"
121
+ className="w-full rounded-g-ctl bg-g-accent px-4 py-2 text-sm font-bold text-g-on-accent transition hover:bg-g-accent-down disabled:cursor-not-allowed disabled:opacity-45"
118
122
  >
119
123
  Create account
120
124
  </button>
121
125
  </form>
122
126
 
123
- <p className="mt-6 text-center text-sm text-slate-400">
127
+ <p className="mt-6 text-center text-sm text-g-text-2">
124
128
  Already have an account?{' '}
125
- <Link href="/login" className="text-emerald-300 transition hover:text-emerald-200">
129
+ <Link href="/login" className="text-g-accent-text transition hover:underline">
126
130
  Sign in
127
131
  </Link>
128
132
  </p>
@@ -9,19 +9,23 @@ export default function Dashboard({ user }: Props) {
9
9
  <Layout>
10
10
  <section className="space-y-6">
11
11
  <header>
12
- <h1 className="text-3xl font-semibold text-emerald-300">Dashboard</h1>
13
- <p className="mt-2 text-sm text-slate-400">This page is protected by the auth middleware.</p>
12
+ <h1 className="flex items-center gap-3 text-3xl font-bold text-g-heading">
13
+ <span aria-hidden className="h-7 w-[3px] shrink-0 rounded-full bg-[image:var(--g-tick)]" />
14
+ Dashboard
15
+ </h1>
16
+ <p className="mt-2 text-sm text-g-text-2">This page is protected by the auth middleware.</p>
14
17
  </header>
15
18
 
16
19
  {user ? (
17
- <div className="rounded-lg border border-slate-800 bg-slate-900/40 p-6 shadow-lg shadow-emerald-500/10">
18
- <h2 className="text-xl font-medium text-slate-100">Signed in as {user.name}</h2>
19
- <p className="mt-2 text-sm text-slate-300">Email: {user.email}</p>
20
+ <div className="rounded-g-card border border-g-line bg-g-panel p-6 shadow-g-card">
21
+ <h2 className="text-xl font-bold text-g-heading">Signed in as {user.name}</h2>
22
+ <p className="mt-2 text-sm text-g-text-2">Email: {user.email}</p>
20
23
  </div>
21
24
  ) : (
22
- <div className="rounded border border-rose-500/60 bg-rose-500/10 px-4 py-3 text-sm text-rose-200">
23
- You are not signed in.
24
- </div>
25
+ <p className="flex gap-3 border-y border-g-line py-2.5 text-sm">
26
+ <span className="w-10 shrink-0 text-right font-mono text-xs font-bold leading-5 text-g-danger">error</span>
27
+ <span className="text-g-text">You are not signed in.</span>
28
+ </p>
25
29
  )}
26
30
  </section>
27
31
  </Layout>
@@ -10,7 +10,7 @@ interface Props {
10
10
  }
11
11
 
12
12
  const fieldClass =
13
- 'mt-1 w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring'
13
+ 'mt-1 w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent'
14
14
 
15
15
  export default function EditPost({ post }: Props) {
16
16
  const form = useForm<PostFormData>({
@@ -23,7 +23,10 @@ export default function EditPost({ post }: Props) {
23
23
  <Layout>
24
24
  <Head title={`Edit ${post.title}`} />
25
25
  <section className="space-y-6">
26
- <h1 className="text-3xl font-semibold text-emerald-300">Edit post</h1>
26
+ <h1 className="flex items-center gap-3 text-3xl font-bold text-g-heading">
27
+ <span aria-hidden className="h-7 w-[3px] shrink-0 rounded-full bg-[image:var(--g-tick)]" />
28
+ Edit post
29
+ </h1>
27
30
 
28
31
  <form
29
32
  className="space-y-4"
@@ -33,42 +36,42 @@ export default function EditPost({ post }: Props) {
33
36
  }}
34
37
  >
35
38
  <div>
36
- <label className="block text-sm font-medium text-slate-200">Title</label>
39
+ <label className="block text-sm font-bold text-g-heading">Title</label>
37
40
  <input
38
41
  type="text"
39
42
  value={form.data.title}
40
43
  onChange={(event) => form.setData('title', event.target.value)}
41
44
  className={fieldClass}
42
45
  />
43
- {form.errors.title ? <p className="mt-1 text-sm text-rose-300">{form.errors.title}</p> : null}
46
+ {form.errors.title ? <p className="mt-1 text-sm text-g-danger">{form.errors.title}</p> : null}
44
47
  </div>
45
48
 
46
49
  <div>
47
- <label className="block text-sm font-medium text-slate-200">Excerpt</label>
50
+ <label className="block text-sm font-bold text-g-heading">Excerpt</label>
48
51
  <input
49
52
  type="text"
50
53
  value={form.data.excerpt}
51
54
  onChange={(event) => form.setData('excerpt', event.target.value)}
52
55
  className={fieldClass}
53
56
  />
54
- {form.errors.excerpt ? <p className="mt-1 text-sm text-rose-300">{form.errors.excerpt}</p> : null}
57
+ {form.errors.excerpt ? <p className="mt-1 text-sm text-g-danger">{form.errors.excerpt}</p> : null}
55
58
  </div>
56
59
 
57
60
  <div>
58
- <label className="block text-sm font-medium text-slate-200">Body</label>
61
+ <label className="block text-sm font-bold text-g-heading">Body</label>
59
62
  <textarea
60
63
  rows={10}
61
64
  value={form.data.body}
62
65
  onChange={(event) => form.setData('body', event.target.value)}
63
66
  className={fieldClass}
64
67
  />
65
- {form.errors.body ? <p className="mt-1 text-sm text-rose-300">{form.errors.body}</p> : null}
68
+ {form.errors.body ? <p className="mt-1 text-sm text-g-danger">{form.errors.body}</p> : null}
66
69
  </div>
67
70
 
68
71
  <button
69
72
  type="submit"
70
73
  disabled={form.processing}
71
- className="rounded bg-emerald-500 px-4 py-2 text-sm font-semibold text-slate-950 transition hover:bg-emerald-400 disabled:opacity-50"
74
+ className="rounded-g-ctl bg-g-accent px-4 py-2 text-sm font-bold text-g-on-accent transition hover:bg-g-accent-down disabled:cursor-not-allowed disabled:opacity-45"
72
75
  >
73
76
  Save changes
74
77
  </button>
@@ -54,7 +54,10 @@ export default function PostsIndex({ data, pagination }: Props) {
54
54
  <Layout>
55
55
  <Head title="Posts" />
56
56
  <section className="space-y-6">
57
- <h1 className="text-3xl font-semibold text-emerald-300">Posts</h1>
57
+ <h1 className="flex items-center gap-3 text-3xl font-bold text-g-heading">
58
+ <span aria-hidden className="h-7 w-[3px] shrink-0 rounded-full bg-[image:var(--g-tick)]" />
59
+ Posts
60
+ </h1>
58
61
 
59
62
  <form className="flex gap-2" onSubmit={search}>
60
63
  <input
@@ -62,21 +65,21 @@ export default function PostsIndex({ data, pagination }: Props) {
62
65
  value={keywords}
63
66
  onChange={(event) => setKeywords(event.target.value)}
64
67
  placeholder="Search posts…"
65
- className="w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring"
68
+ className="w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent"
66
69
  />
67
70
  <button
68
71
  type="submit"
69
72
  disabled={searching}
70
- className="rounded border border-emerald-500 px-4 py-2 text-sm text-emerald-200 transition hover:bg-emerald-500/10 disabled:opacity-50"
73
+ className="rounded-g-ctl border border-g-line-strong bg-g-panel px-4 py-2 text-sm font-bold text-g-text transition hover:border-g-muted disabled:cursor-not-allowed disabled:opacity-45"
71
74
  >
72
75
  Search
73
76
  </button>
74
77
  </form>
75
78
 
76
- {error !== null && <p className="text-sm text-rose-400">{error}</p>}
79
+ {error !== null && <p className="text-sm text-g-danger">{error}</p>}
77
80
 
78
81
  {results !== null && (
79
- <p className="text-sm text-slate-400">
82
+ <p className="text-sm text-g-text-2">
80
83
  {results.length} {results.length === 1 ? 'result' : 'results'} ·{' '}
81
84
  <button
82
85
  type="button"
@@ -85,7 +88,7 @@ export default function PostsIndex({ data, pagination }: Props) {
85
88
  setResults(null)
86
89
  setError(null)
87
90
  }}
88
- className="text-emerald-300 transition hover:text-emerald-200"
91
+ className="text-g-accent-text transition hover:underline"
89
92
  >
90
93
  Clear
91
94
  </button>
@@ -94,28 +97,28 @@ export default function PostsIndex({ data, pagination }: Props) {
94
97
 
95
98
  <div className="space-y-4">
96
99
  {posts.map((post) => (
97
- <article key={post.id} className="rounded-lg border border-slate-800 bg-slate-900/40 p-5">
100
+ <article key={post.id} className="rounded-g-card border border-g-line bg-g-panel p-5 shadow-g-card">
98
101
  <Link
99
102
  href={route('posts.show', { id: post.id })}
100
- className="text-lg font-medium text-slate-100 transition hover:text-emerald-200"
103
+ className="text-lg font-bold text-g-heading transition hover:text-g-accent-text"
101
104
  >
102
105
  {post.title}
103
106
  </Link>
104
- <p className="mt-2 text-sm text-slate-400">{post.excerpt}</p>
107
+ <p className="mt-2 text-sm text-g-text-2">{post.excerpt}</p>
105
108
  {post.author ? (
106
- <p className="mt-3 text-xs uppercase tracking-wide text-slate-500">by {post.author.name}</p>
109
+ <p className="mt-3 font-mono text-xs uppercase tracking-wide text-g-muted">by {post.author.name}</p>
107
110
  ) : null}
108
111
  </article>
109
112
  ))}
110
113
  </div>
111
114
 
112
115
  {results === null && pagination?.links?.pages && (
113
- <nav className="flex gap-2">
116
+ <nav className="flex gap-2 font-mono text-sm">
114
117
  {pagination.links.pages.map((page) => (
115
118
  <Link
116
119
  key={page.page}
117
120
  href={page.url ?? '#'}
118
- className="rounded border border-slate-800 px-3 py-1 text-sm text-slate-300 transition hover:border-emerald-500 hover:text-emerald-200"
121
+ className="rounded-g-ctl border border-g-line px-3 py-1 text-g-text-2 transition hover:border-g-line-strong hover:text-g-heading"
119
122
  >
120
123
  {page.page}
121
124
  </Link>
@@ -6,7 +6,7 @@ import Layout from '../../components/Layout.js'
6
6
  type PostFormData = ApiRoutes['posts.store']['body']
7
7
 
8
8
  const fieldClass =
9
- 'mt-1 w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring'
9
+ 'mt-1 w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent'
10
10
 
11
11
  export default function NewPost() {
12
12
  const form = useForm<PostFormData>({ title: '', excerpt: '', body: '' })
@@ -15,7 +15,10 @@ export default function NewPost() {
15
15
  <Layout>
16
16
  <Head title="New post" />
17
17
  <section className="space-y-6">
18
- <h1 className="text-3xl font-semibold text-emerald-300">New post</h1>
18
+ <h1 className="flex items-center gap-3 text-3xl font-bold text-g-heading">
19
+ <span aria-hidden className="h-7 w-[3px] shrink-0 rounded-full bg-[image:var(--g-tick)]" />
20
+ New post
21
+ </h1>
19
22
 
20
23
  <form
21
24
  className="space-y-4"
@@ -25,42 +28,42 @@ export default function NewPost() {
25
28
  }}
26
29
  >
27
30
  <div>
28
- <label className="block text-sm font-medium text-slate-200">Title</label>
31
+ <label className="block text-sm font-bold text-g-heading">Title</label>
29
32
  <input
30
33
  type="text"
31
34
  value={form.data.title}
32
35
  onChange={(event) => form.setData('title', event.target.value)}
33
36
  className={fieldClass}
34
37
  />
35
- {form.errors.title ? <p className="mt-1 text-sm text-rose-300">{form.errors.title}</p> : null}
38
+ {form.errors.title ? <p className="mt-1 text-sm text-g-danger">{form.errors.title}</p> : null}
36
39
  </div>
37
40
 
38
41
  <div>
39
- <label className="block text-sm font-medium text-slate-200">Excerpt</label>
42
+ <label className="block text-sm font-bold text-g-heading">Excerpt</label>
40
43
  <input
41
44
  type="text"
42
45
  value={form.data.excerpt}
43
46
  onChange={(event) => form.setData('excerpt', event.target.value)}
44
47
  className={fieldClass}
45
48
  />
46
- {form.errors.excerpt ? <p className="mt-1 text-sm text-rose-300">{form.errors.excerpt}</p> : null}
49
+ {form.errors.excerpt ? <p className="mt-1 text-sm text-g-danger">{form.errors.excerpt}</p> : null}
47
50
  </div>
48
51
 
49
52
  <div>
50
- <label className="block text-sm font-medium text-slate-200">Body</label>
53
+ <label className="block text-sm font-bold text-g-heading">Body</label>
51
54
  <textarea
52
55
  rows={10}
53
56
  value={form.data.body}
54
57
  onChange={(event) => form.setData('body', event.target.value)}
55
58
  className={fieldClass}
56
59
  />
57
- {form.errors.body ? <p className="mt-1 text-sm text-rose-300">{form.errors.body}</p> : null}
60
+ {form.errors.body ? <p className="mt-1 text-sm text-g-danger">{form.errors.body}</p> : null}
58
61
  </div>
59
62
 
60
63
  <button
61
64
  type="submit"
62
65
  disabled={form.processing}
63
- className="rounded bg-emerald-500 px-4 py-2 text-sm font-semibold text-slate-950 transition hover:bg-emerald-400 disabled:opacity-50"
66
+ className="rounded-g-ctl bg-g-accent px-4 py-2 text-sm font-bold text-g-on-accent transition hover:bg-g-accent-down disabled:cursor-not-allowed disabled:opacity-45"
64
67
  >
65
68
  Publish
66
69
  </button>
@@ -18,23 +18,26 @@ export default function PostShow({ post }: Props) {
18
18
  <Head title={post.title} />
19
19
  <article className="space-y-6">
20
20
  <header className="space-y-2">
21
- <h1 className="text-3xl font-semibold text-emerald-300">{post.title}</h1>
22
- <p className="text-sm text-slate-500">
21
+ <h1 className="flex items-center gap-3 text-3xl font-bold text-g-heading">
22
+ <span aria-hidden className="h-7 w-[3px] shrink-0 rounded-full bg-[image:var(--g-tick)]" />
23
+ {post.title}
24
+ </h1>
25
+ <p className="text-sm text-g-muted">
23
26
  {post.author ? `by ${post.author.name} · ` : ''}
24
27
  {new Date(post.createdAt).toLocaleDateString()}
25
28
  </p>
26
- <p className="text-slate-400">{post.excerpt}</p>
29
+ <p className="text-g-text-2">{post.excerpt}</p>
27
30
  </header>
28
31
 
29
- <div className="whitespace-pre-wrap text-slate-200">{post.body}</div>
32
+ <div className="whitespace-pre-wrap text-g-text">{post.body}</div>
30
33
 
31
- <footer className="flex gap-4 border-t border-slate-800 pt-6 text-sm">
32
- <Link href={route('posts.index')} className="text-slate-300 transition hover:text-emerald-200">
34
+ <footer className="flex items-center gap-4 border-t border-g-line pt-6 text-sm">
35
+ <Link href={route('posts.index')} className="text-g-text-2 transition hover:text-g-heading">
33
36
  ← All posts
34
37
  </Link>
35
38
  {canManage ? (
36
39
  <>
37
- <Link href={route('posts.edit', { id: post.id })} className="text-emerald-300 transition hover:text-emerald-200">
40
+ <Link href={route('posts.edit', { id: post.id })} className="text-g-accent-text transition hover:underline">
38
41
  Edit
39
42
  </Link>
40
43
  <Link
@@ -42,7 +45,7 @@ export default function PostShow({ post }: Props) {
42
45
  method="delete"
43
46
  as="button"
44
47
  onBefore={() => window.confirm('Delete this post?')}
45
- className="text-rose-400 transition hover:text-rose-300"
48
+ className="rounded-g-ctl border border-g-danger-chip px-3 py-1 font-bold text-g-danger transition hover:bg-g-danger-tint"
46
49
  >
47
50
  Delete
48
51
  </Link>
@@ -30,56 +30,60 @@ export default function ProfileEdit({ profile, status }: Props) {
30
30
  return (
31
31
  <Layout>
32
32
  <Head title="Profile" />
33
- <section className="space-y-6 rounded-lg border border-slate-800 bg-slate-900/40 p-8 shadow-xl shadow-emerald-500/5">
33
+ <section className="space-y-6 rounded-g-card border border-g-line bg-g-panel p-8 shadow-g-card">
34
34
  <header>
35
- <h1 className="text-2xl font-semibold text-emerald-300">Profile</h1>
36
- <p className="mt-2 text-sm text-slate-400">Update your account details and password.</p>
35
+ <h1 className="flex items-center gap-3 text-2xl font-bold text-g-heading">
36
+ <span aria-hidden className="h-6 w-[3px] shrink-0 rounded-full bg-[image:var(--g-tick)]" />
37
+ Profile
38
+ </h1>
39
+ <p className="mt-2 text-sm text-g-text-2">Update your account details and password.</p>
37
40
  </header>
38
41
 
39
42
  {status ? (
40
- <p className="rounded border border-emerald-500/40 bg-emerald-500/10 px-4 py-2 text-sm text-emerald-200">
41
- {status}
43
+ <p className="flex gap-3 border-y border-g-line py-2.5 text-sm">
44
+ <span className="w-10 shrink-0 text-right font-mono text-xs font-bold leading-5 text-g-ok">ok</span>
45
+ <span className="text-g-text">{status}</span>
42
46
  </p>
43
47
  ) : null}
44
48
 
45
49
  <form className="space-y-4" onSubmit={handleSubmit}>
46
50
  <div>
47
- <label className="block text-sm font-medium text-slate-200">Name</label>
51
+ <label className="block text-sm font-bold text-g-heading">Name</label>
48
52
  <input
49
53
  type="text"
50
54
  value={form.data.name}
51
55
  onChange={(event) => form.setData('name', event.target.value)}
52
- className="mt-1 w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring"
56
+ className="mt-1 w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent"
53
57
  />
54
- {form.errors.name ? <p className="mt-1 text-sm text-rose-300">{form.errors.name}</p> : null}
58
+ {form.errors.name ? <p className="mt-1 text-sm text-g-danger">{form.errors.name}</p> : null}
55
59
  </div>
56
60
 
57
61
  <div>
58
- <label className="block text-sm font-medium text-slate-200">Email</label>
62
+ <label className="block text-sm font-bold text-g-heading">Email</label>
59
63
  <input
60
64
  type="email"
61
65
  value={form.data.email}
62
66
  onChange={(event) => form.setData('email', event.target.value)}
63
- className="mt-1 w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring"
67
+ className="mt-1 w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent"
64
68
  />
65
- {form.errors.email ? <p className="mt-1 text-sm text-rose-300">{form.errors.email}</p> : null}
69
+ {form.errors.email ? <p className="mt-1 text-sm text-g-danger">{form.errors.email}</p> : null}
66
70
  </div>
67
71
 
68
72
  <div>
69
- <label className="block text-sm font-medium text-slate-200">New password</label>
73
+ <label className="block text-sm font-bold text-g-heading">New password</label>
70
74
  <input
71
75
  type="password"
72
76
  value={form.data.password}
73
77
  onChange={(event) => form.setData('password', event.target.value)}
74
- className="mt-1 w-full rounded border border-slate-700 bg-slate-950 px-3 py-2 text-slate-100 outline-none ring-emerald-400 transition focus:border-emerald-400 focus:ring"
78
+ className="mt-1 w-full rounded-g-ctl border border-g-line-strong bg-g-panel px-3 py-2 text-g-text transition outline-none placeholder:text-g-muted focus:border-transparent focus:outline-2 focus:-outline-offset-1 focus:outline-g-accent"
75
79
  />
76
- {form.errors.password ? <p className="mt-1 text-sm text-rose-300">{form.errors.password}</p> : null}
80
+ {form.errors.password ? <p className="mt-1 text-sm text-g-danger">{form.errors.password}</p> : null}
77
81
  </div>
78
82
 
79
83
  <button
80
84
  type="submit"
81
85
  disabled={form.processing}
82
- className="w-full rounded bg-emerald-500 px-4 py-2 text-sm font-semibold text-slate-950 transition hover:bg-emerald-400 disabled:opacity-50"
86
+ className="w-full rounded-g-ctl bg-g-accent px-4 py-2 text-sm font-bold text-g-on-accent transition hover:bg-g-accent-down disabled:cursor-not-allowed disabled:opacity-45"
83
87
  >
84
88
  Save changes
85
89
  </button>
@@ -19,8 +19,8 @@
19
19
  "db:seed": "bunx guren db:seed"
20
20
  },
21
21
  "dependencies": {
22
- "@guren/cli": "^2.10.0",
23
- "@guren/core": "^1.9.0",
22
+ "@guren/cli": "^2.11.0",
23
+ "@guren/core": "^1.10.0",
24
24
  "@guren/inertia-client": "^1.1.2",
25
25
  "@guren/orm": "^2.6.1",
26
26
  "@inertiajs/react": "^3.6.1",
@@ -30,7 +30,7 @@
30
30
  "zod": "^4.4.3"
31
31
  },
32
32
  "devDependencies": {
33
- "@guren/testing": "^1.6.2",
33
+ "@guren/testing": "^1.6.3",
34
34
  "@tailwindcss/vite": "^4.2.2",
35
35
  "@types/react": "^19.0.0",
36
36
  "@types/react-dom": "^19.0.0",
@@ -1 +1,2 @@
1
1
  @import 'tailwindcss';
2
+ @import './guren.css';
@@ -0,0 +1,135 @@
1
+ /* Guren UI — design tokens (https://github.com/gurenjs/guren-ui)
2
+ Light is the guren.dev docs light theme (white + crimson); dark is its
3
+ docs dark theme (rose-pine-moon ground, rose accent text). The dark block
4
+ follows the system preference — restructure it behind a class if the app
5
+ grows a theme toggle.
6
+
7
+ The red budget: --g-accent (crimson) fills one element per screen — the
8
+ primary action. Destructive actions are outline + explicit verb; the red
9
+ fill moves to them only inside a confirm step. */
10
+
11
+ :root {
12
+ --g-font-sans: system-ui, 'Noto Sans JP', 'Hiragino Sans', sans-serif;
13
+ --g-font-mono: ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
14
+
15
+ /* surfaces */
16
+ --g-page: #ffffff;
17
+ --g-panel: #ffffff;
18
+ --g-raised: #fffafa;
19
+ --g-ink: #1a1212; /* terminal surface — dark in both themes */
20
+ --g-line: #e5e7eb;
21
+ --g-line-strong: #d1d5db;
22
+
23
+ /* text */
24
+ --g-heading: #111827;
25
+ --g-text: #1f2937;
26
+ --g-text-2: #4b5563;
27
+ --g-muted: #9ca3af;
28
+
29
+ /* text printed on the ink surface */
30
+ --g-on-ink: #fff5f5;
31
+ --g-on-ink-muted: #c9a9a9;
32
+
33
+ /* the red budget */
34
+ --g-accent: #db1b1b; /* crimson-600 — primary fills only */
35
+ --g-accent-down: #b91c1c;
36
+ --g-accent-text: #991b1b; /* crimson-800 — links, accent text */
37
+ --g-accent-tint: #fff1f2;
38
+ --g-on-accent: #fff5f5;
39
+
40
+ /* signals — text-safe value + chip value + wash */
41
+ --g-ok: #286983;
42
+ --g-ok-chip: #56949f;
43
+ --g-ok-tint: rgba(86, 148, 159, 0.12);
44
+ --g-warn: #b45309;
45
+ --g-warn-chip: #ea9d34;
46
+ --g-warn-tint: rgba(234, 157, 52, 0.14);
47
+ --g-danger: #b91c1c;
48
+ --g-danger-chip: #f23a3a;
49
+ --g-danger-tint: #fff1f2;
50
+
51
+ /* the one structural device — marks the current place, once per screen */
52
+ --g-tick: linear-gradient(180deg, #ff3c28, #8b0000);
53
+
54
+ /* geometry */
55
+ --g-r-ctl: 8px;
56
+ --g-r-card: 12px;
57
+ --g-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
58
+ --g-shadow-float: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
59
+ }
60
+
61
+ @media (prefers-color-scheme: dark) {
62
+ :root {
63
+ --g-page: #1a1a2e;
64
+ --g-panel: #1e1e34;
65
+ --g-raised: #232340;
66
+ --g-line: #2e2e4a;
67
+ --g-line-strong: #3d3d5c;
68
+
69
+ --g-heading: #e0def4;
70
+ --g-text: #e0def4;
71
+ --g-text-2: #908caa;
72
+ --g-muted: #6e6a86;
73
+
74
+ /* fills stay crimson in both themes; accent TEXT moves to rose —
75
+ crimson measures 4.42:1 on this ground */
76
+ --g-accent-text: #eb6f92;
77
+ --g-accent-tint: rgba(235, 111, 146, 0.12);
78
+
79
+ --g-ok: #9ccfd8;
80
+ --g-ok-chip: #9ccfd8;
81
+ --g-ok-tint: rgba(156, 207, 216, 0.1);
82
+ --g-warn: #f6c177;
83
+ --g-warn-chip: #f6c177;
84
+ --g-warn-tint: rgba(246, 193, 119, 0.1);
85
+ --g-danger: #ffa5a5;
86
+ --g-danger-chip: #f23a3a;
87
+ --g-danger-tint: rgba(242, 58, 58, 0.12);
88
+
89
+ --g-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
90
+ --g-shadow-float: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
91
+ }
92
+ }
93
+
94
+ /* Tailwind utilities over the tokens: bg-g-page, text-g-accent-text,
95
+ border-g-line, rounded-g-card, shadow-g-card, font-sans, font-mono … */
96
+ @theme inline {
97
+ --font-sans: var(--g-font-sans);
98
+ --font-mono: var(--g-font-mono);
99
+
100
+ --color-g-page: var(--g-page);
101
+ --color-g-panel: var(--g-panel);
102
+ --color-g-raised: var(--g-raised);
103
+ --color-g-ink: var(--g-ink);
104
+ --color-g-line: var(--g-line);
105
+ --color-g-line-strong: var(--g-line-strong);
106
+
107
+ --color-g-heading: var(--g-heading);
108
+ --color-g-text: var(--g-text);
109
+ --color-g-text-2: var(--g-text-2);
110
+ --color-g-muted: var(--g-muted);
111
+
112
+ --color-g-on-ink: var(--g-on-ink);
113
+ --color-g-on-ink-muted: var(--g-on-ink-muted);
114
+
115
+ --color-g-accent: var(--g-accent);
116
+ --color-g-accent-down: var(--g-accent-down);
117
+ --color-g-accent-text: var(--g-accent-text);
118
+ --color-g-accent-tint: var(--g-accent-tint);
119
+ --color-g-on-accent: var(--g-on-accent);
120
+
121
+ --color-g-ok: var(--g-ok);
122
+ --color-g-ok-chip: var(--g-ok-chip);
123
+ --color-g-ok-tint: var(--g-ok-tint);
124
+ --color-g-warn: var(--g-warn);
125
+ --color-g-warn-chip: var(--g-warn-chip);
126
+ --color-g-warn-tint: var(--g-warn-tint);
127
+ --color-g-danger: var(--g-danger);
128
+ --color-g-danger-chip: var(--g-danger-chip);
129
+ --color-g-danger-tint: var(--g-danger-tint);
130
+
131
+ --radius-g-ctl: var(--g-r-ctl);
132
+ --radius-g-card: var(--g-r-card);
133
+ --shadow-g-card: var(--g-shadow-card);
134
+ --shadow-g-float: var(--g-shadow-float);
135
+ }
@@ -16,47 +16,60 @@ export default function Home({ message }: Props) {
16
16
  return (
17
17
  <>
18
18
  <Head title="__APP_TITLE__" />
19
- <main className="min-h-screen bg-gradient-to-b from-gray-950 to-gray-900 text-gray-100">
19
+ <main className="min-h-screen bg-g-page font-sans text-g-text">
20
20
  <div className="mx-auto max-w-3xl px-6 py-20">
21
- <div className="mb-4 inline-block rounded-full bg-indigo-500/10 px-3 py-1 text-sm text-indigo-400">
21
+ <p className="mb-5 font-mono text-xs tracking-[0.18em] uppercase text-g-text-2">
22
22
  Powered by Bun + Hono
23
- </div>
24
- <h1 className="mb-4 text-5xl font-bold tracking-tight">{message}</h1>
25
- <p className="mb-12 text-lg text-gray-400">
23
+ </p>
24
+ <h1 className="mb-4 flex items-center gap-4 text-5xl font-bold tracking-tight text-g-heading">
25
+ <span aria-hidden className="h-10 w-[3px] shrink-0 rounded-full bg-[image:var(--g-tick)]" />
26
+ {message}
27
+ </h1>
28
+ <p className="mb-8 text-lg text-g-text-2">
26
29
  The Laravel of TypeScript. Edit{' '}
27
- <code className="rounded bg-gray-800 px-1.5 py-0.5 text-sm text-indigo-300">
30
+ <code className="rounded bg-g-ink px-1.5 py-0.5 font-mono text-sm text-g-on-ink">
28
31
  resources/js/pages/Home.tsx
29
32
  </code>{' '}
30
33
  to get started.
31
34
  </p>
32
35
 
36
+ <div className="mb-12 flex flex-wrap gap-3">
37
+ <a
38
+ href="https://guren.dev/docs"
39
+ className="inline-flex items-center rounded-g-ctl bg-g-accent px-4 py-2 text-sm font-bold text-g-on-accent transition hover:bg-g-accent-down"
40
+ >
41
+ Documentation
42
+ </a>
43
+ <a
44
+ href="https://github.com/gurenjs/guren"
45
+ className="inline-flex items-center rounded-g-ctl border border-g-line-strong bg-g-panel px-4 py-2 text-sm font-bold text-g-text transition hover:border-g-muted"
46
+ >
47
+ GitHub
48
+ </a>
49
+ </div>
50
+
33
51
  <div className="grid gap-4 sm:grid-cols-2">
34
52
  {features.map((f) => (
35
- <div key={f.title} className="rounded-lg border border-gray-800 bg-gray-900/50 p-5">
36
- <h3 className="mb-1 font-semibold text-gray-100">{f.title}</h3>
37
- <p className="text-sm text-gray-400">{f.desc}</p>
53
+ <div
54
+ key={f.title}
55
+ className="rounded-g-card border border-g-line bg-g-panel p-5 shadow-g-card"
56
+ >
57
+ <h3 className="mb-1 font-bold text-g-heading">{f.title}</h3>
58
+ <p className="text-sm text-g-text-2">{f.desc}</p>
38
59
  </div>
39
60
  ))}
40
61
  </div>
41
62
 
42
- <div className="mt-12 rounded-lg border border-gray-800 bg-gray-900/50 p-6">
43
- <h2 className="mb-3 text-lg font-semibold">Next steps</h2>
44
- <div className="space-y-2 font-mono text-sm text-gray-400">
45
- <p><span className="text-gray-500">$</span> bunx guren add auth</p>
46
- <p><span className="text-gray-500">$</span> bunx guren add resource posts</p>
47
- <p><span className="text-gray-500">$</span> bunx guren make:model Post</p>
63
+ <div className="mt-12 rounded-g-card bg-g-ink p-6">
64
+ <h2 className="mb-3 font-mono text-xs tracking-[0.18em] uppercase text-g-on-ink-muted">
65
+ Next steps
66
+ </h2>
67
+ <div className="space-y-2 font-mono text-sm text-g-on-ink">
68
+ <p><span className="text-g-on-ink-muted">$</span> bunx guren add auth</p>
69
+ <p><span className="text-g-on-ink-muted">$</span> bunx guren add resource posts</p>
70
+ <p><span className="text-g-on-ink-muted">$</span> bunx guren make:model Post</p>
48
71
  </div>
49
72
  </div>
50
-
51
- <p className="mt-8 text-center text-sm text-gray-600">
52
- <a href="https://guren.dev/docs" className="text-indigo-400 hover:text-indigo-300">
53
- Documentation
54
- </a>
55
- {' · '}
56
- <a href="https://github.com/user/guren" className="text-indigo-400 hover:text-indigo-300">
57
- GitHub
58
- </a>
59
- </p>
60
73
  </div>
61
74
  </main>
62
75
  </>