@oktis-works/cms 0.13.24 → 0.14.5

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.
Files changed (43) hide show
  1. package/README.md +101 -0
  2. package/dist/extension-scaffold.d.ts.map +1 -1
  3. package/dist/extension-scaffold.js +17 -8
  4. package/dist/extension-scaffold.js.map +1 -1
  5. package/dist/generated/app-versions.js +7 -7
  6. package/dist/generated/app-versions.js.map +1 -1
  7. package/dist/generated/theme-assets.d.ts +14 -0
  8. package/dist/generated/theme-assets.d.ts.map +1 -0
  9. package/dist/generated/theme-assets.js +2660 -0
  10. package/dist/generated/theme-assets.js.map +1 -0
  11. package/dist/scaffold.d.ts +28 -0
  12. package/dist/scaffold.d.ts.map +1 -1
  13. package/dist/scaffold.js +71 -60
  14. package/dist/scaffold.js.map +1 -1
  15. package/dist/theme-assets.d.ts +7 -11
  16. package/dist/theme-assets.d.ts.map +1 -1
  17. package/dist/theme-assets.js +25 -827
  18. package/dist/theme-assets.js.map +1 -1
  19. package/dist/themes/default/404.astro +3 -3
  20. package/dist/themes/default/archive.astro +5 -5
  21. package/dist/themes/default/page-blog.astro +5 -5
  22. package/dist/themes/default/page-home.astro +2 -2
  23. package/dist/themes/default/page.astro +4 -0
  24. package/dist/themes/default/single.astro +9 -5
  25. package/dist/themes/default/theme.json +2 -2
  26. package/migrations/V027__core__content_parent_and_hub.sql +32 -0
  27. package/migrations/mariadb/V001__core__add_core_fields_support.sql +2 -4
  28. package/migrations/mariadb/V005__core__add_user_locale.sql +1 -1
  29. package/migrations/mariadb/V006__core__expand_media_metadata.sql +2 -2
  30. package/migrations/mariadb/V007__core__expand_menus.sql +1 -2
  31. package/migrations/mariadb/V017__core__lazy_field_types.sql +1 -1
  32. package/migrations/mariadb/V018__core__timezone_system.sql +1 -1
  33. package/migrations/mariadb/V026__core__content_types_source_admin.sql +4 -0
  34. package/migrations/mariadb/V027__core__content_parent_and_hub.sql +4 -0
  35. package/migrations/mysql/V001__core__add_core_fields_support.sql +2 -4
  36. package/migrations/mysql/V005__core__add_user_locale.sql +1 -1
  37. package/migrations/mysql/V006__core__expand_media_metadata.sql +2 -2
  38. package/migrations/mysql/V007__core__expand_menus.sql +1 -2
  39. package/migrations/mysql/V017__core__lazy_field_types.sql +1 -1
  40. package/migrations/mysql/V018__core__timezone_system.sql +1 -1
  41. package/migrations/mysql/V026__core__content_types_source_admin.sql +4 -0
  42. package/migrations/mysql/V027__core__content_parent_and_hub.sql +4 -0
  43. package/package.json +9 -9
@@ -0,0 +1,2660 @@
1
+ // GENERATED by scripts/generate-theme-assets.mjs — do not edit by hand.
2
+ //
3
+ // Source of truth: themes/default/ in this monorepo (the theme the web app
4
+ // actually renders and the published package carries in dist/themes/default).
5
+ // Regenerated by `bun run build`; `src/theme-assets.test.ts` fails when this
6
+ // file drifts from the directory it mirrors.
7
+ /** Complete default theme written by `okcms init` (paths relative to themes/default/). */
8
+ export const DEFAULT_THEME_FILES = {
9
+ "404.astro": `<main data-template="404" class="error-404">
10
+ <div class="container">
11
+ <h1>404</h1>
12
+ <h2>Page not found</h2>
13
+ <p>The page you are looking for does not exist or has been moved.</p>
14
+ <a href="/" class="btn btn-primary">Back to the home page</a>
15
+ </div>
16
+ </main>`,
17
+ "archive.astro": `<main data-template="archive" data-type="{{page.type}}" class="archive">
18
+ <header class="archive-header">
19
+ <div class="container">
20
+ <h1 class="archive-title">{{page.title}}</h1>
21
+ {{#if settings.theme.siteDescription}}
22
+ <p class="archive-description">{{settings.theme.siteDescription}}</p>
23
+ {{/if}}
24
+ </div>
25
+ </header>
26
+
27
+ <section class="posts-section" aria-labelledby="posts-title">
28
+ <div class="container">
29
+ {{#if items}}
30
+ <div class="posts-grid">
31
+ {{#each items}}
32
+ <article class="post-card">
33
+ {{#if thumbnail.url}}
34
+ <figure class="post-card__image">
35
+ <a href="{{url}}">
36
+ <img src="{{thumbnail.url}}" alt="{{thumbnail.alt}}" loading="lazy" />
37
+ </a>
38
+ </figure>
39
+ {{/if}}
40
+ <div class="post-card__content">
41
+ <header class="post-card__header">
42
+ <time class="post-card__date" datetime="{{published_at}}">
43
+ {{#if published_at}}
44
+ {{formatDate published_at}}
45
+ {{/if}}
46
+ </time>
47
+ </header>
48
+ <h2 class="post-card__title"><a href="{{url}}">{{title}}</a></h2>
49
+ {{#if excerpt}}
50
+ <p class="post-card__excerpt">{{excerpt}}</p>
51
+ {{/if}}
52
+ <a href="{{url}}" class="btn btn-outline">Continue reading</a>
53
+ </div>
54
+ </article>
55
+ {{/each}}
56
+ </div>
57
+
58
+ {{#if pagination}}
59
+ <nav class="pagination" aria-label="Pagination">
60
+ {{pagination}}
61
+ </nav>
62
+ {{/if}}
63
+ {{else}}
64
+ <p class="no-posts">No content published yet.</p>
65
+ {{/if}}
66
+ </div>
67
+ </section>
68
+ </main>`,
69
+ "dist/theme.css": `/**
70
+ * Tema Default do OkCMS — Design System CSS
71
+ * Engine: css | Isolation: manual
72
+ * Source: src/theme.css → dist/theme.css
73
+ */
74
+
75
+ /* ==========================================================================
76
+ CSS Custom Properties (Design Tokens)
77
+ ========================================================================== */
78
+
79
+ [data-theme="default"] {
80
+ /* Colors - Light theme */
81
+ --color-primary: #2563eb;
82
+ --color-primary-hover: #1d4ed8;
83
+ --color-primary-light: #dbeafe;
84
+ --color-primary-contrast: #ffffff;
85
+
86
+ --color-success: #16a34a;
87
+ --color-success-hover: #15803d;
88
+ --color-success-light: #dcfce7;
89
+
90
+ --color-warning: #f59e0b;
91
+ --color-warning-hover: #d97706;
92
+ --color-warning-light: #fef3c7;
93
+
94
+ --color-error: #dc2626;
95
+ --color-error-hover: #b91c1c;
96
+ --color-error-light: #fee2e2;
97
+
98
+ --color-ink: #111827;
99
+ --color-ink-muted: #6b7280;
100
+ --color-ink-subtle: #9ca3af;
101
+
102
+ --color-surface: #ffffff;
103
+ --color-surface-elevated: #f9fafb;
104
+ --color-surface-hover: #f3f4f6;
105
+
106
+ --color-border: #e5e7eb;
107
+ --color-border-strong: #d1d5db;
108
+
109
+ --color-focus: #2563eb;
110
+ --color-focus-ring: rgba(37, 99, 235, 0.4);
111
+
112
+ /* Typography */
113
+ --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
114
+ --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
115
+
116
+ --text-xs: 0.75rem; /* 12px */
117
+ --text-sm: 0.875rem; /* 14px */
118
+ --text-base: 1rem; /* 16px */
119
+ --text-lg: 1.125rem; /* 18px */
120
+ --text-xl: 1.25rem; /* 20px */
121
+ --text-2xl: 1.5rem; /* 24px */
122
+ --text-3xl: 1.875rem; /* 30px */
123
+ --text-4xl: 2.25rem; /* 36px */
124
+
125
+ --leading-tight: 1.1;
126
+ --leading-normal: 1.5;
127
+ --leading-relaxed: 1.625;
128
+
129
+ /* Spacing */
130
+ --space-1: 0.25rem; /* 4px */
131
+ --space-2: 0.5rem; /* 8px */
132
+ --space-3: 0.75rem; /* 12px */
133
+ --space-4: 1rem; /* 16px */
134
+ --space-5: 1.25rem; /* 20px */
135
+ --space-6: 1.5rem; /* 24px */
136
+ --space-8: 2rem; /* 32px */
137
+ --space-10: 2.5rem; /* 40px */
138
+ --space-12: 3rem; /* 48px */
139
+ --space-16: 4rem; /* 64px */
140
+
141
+ /* Border Radius */
142
+ --radius-sm: 0.25rem;
143
+ --radius-md: 0.375rem;
144
+ --radius-lg: 0.5rem;
145
+ --radius-xl: 0.75rem;
146
+ --radius-full: 9999px;
147
+
148
+ /* Shadows */
149
+ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
150
+ --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
151
+ --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
152
+
153
+ /* Transitions */
154
+ --transition-fast: 150ms ease;
155
+ --transition-normal: 250ms ease;
156
+
157
+ /* Container */
158
+ --container-max: 1200px;
159
+ --container-padding: var(--space-4);
160
+
161
+ /* Header height */
162
+ --header-height: 72px;
163
+ }
164
+
165
+ /* Dark mode support */
166
+ @media (prefers-color-scheme: dark) {
167
+ [data-theme="default"] {
168
+ --color-primary: #3b82f6;
169
+ --color-primary-hover: #60a5fa;
170
+ --color-primary-light: #1e3a5f;
171
+
172
+ --color-success: #22c55e;
173
+ --color-success-light: #14532d;
174
+
175
+ --color-warning: #fbbf24;
176
+ --color-warning-light: #422006;
177
+
178
+ --color-error: #ef4444;
179
+ --color-error-light: #7f1d1d;
180
+
181
+ --color-ink: #f9fafb;
182
+ --color-ink-muted: #9ca3af;
183
+ --color-ink-subtle: #6b7280;
184
+
185
+ --color-surface: #111827;
186
+ --color-surface-elevated: #1f2937;
187
+ --color-surface-hover: #374151;
188
+
189
+ --color-border: #374151;
190
+ --color-border-strong: #4b5563;
191
+
192
+ --color-focus: #3b82f6;
193
+ --color-focus-ring: rgba(59, 130, 246, 0.4);
194
+ }
195
+ }
196
+
197
+ /* ==========================================================================
198
+ Reset & Base
199
+ ========================================================================== */
200
+
201
+ [data-theme="default"] *,
202
+ [data-theme="default"] *::before,
203
+ [data-theme="default"] *::after {
204
+ box-sizing: border-box;
205
+ }
206
+
207
+ [data-theme="default"] {
208
+ margin: 0;
209
+ padding: 0;
210
+ font-family: var(--font-sans);
211
+ font-size: var(--text-base);
212
+ line-height: var(--leading-normal);
213
+ color: var(--color-ink);
214
+ background-color: var(--color-surface);
215
+ -webkit-font-smoothing: antialiased;
216
+ -moz-osx-font-smoothing: grayscale;
217
+ }
218
+
219
+ [data-theme="default"] html {
220
+ scroll-behavior: smooth;
221
+ }
222
+
223
+ [data-theme="default"] body {
224
+ min-height: 100vh;
225
+ display: flex;
226
+ flex-direction: column;
227
+ }
228
+
229
+ /* ==========================================================================
230
+ Typography
231
+ ========================================================================== */
232
+
233
+ [data-theme="default"] h1,
234
+ [data-theme="default"] h2,
235
+ [data-theme="default"] h3,
236
+ [data-theme="default"] h4,
237
+ [data-theme="default"] h5,
238
+ [data-theme="default"] h6 {
239
+ margin: 0 0 var(--space-4);
240
+ line-height: var(--leading-tight);
241
+ font-weight: 700;
242
+ color: var(--color-ink);
243
+ }
244
+
245
+ [data-theme="default"] h1 { font-size: var(--text-4xl); }
246
+ [data-theme="default"] h2 { font-size: var(--text-3xl); }
247
+ [data-theme="default"] h3 { font-size: var(--text-2xl); }
248
+ [data-theme="default"] h4 { font-size: var(--text-xl); }
249
+ [data-theme="default"] h5 { font-size: var(--text-lg); }
250
+ [data-theme="default"] h6 { font-size: var(--text-base); }
251
+
252
+ [data-theme="default"] p {
253
+ margin: 0 0 var(--space-4);
254
+ line-height: var(--leading-relaxed);
255
+ }
256
+
257
+ [data-theme="default"] a {
258
+ color: var(--color-primary);
259
+ text-decoration: none;
260
+ transition: color var(--transition-fast);
261
+ }
262
+
263
+ [data-theme="default"] a:hover {
264
+ color: var(--color-primary-hover);
265
+ text-decoration: underline;
266
+ }
267
+
268
+ [data-theme="default"] strong { font-weight: 600; }
269
+ [data-theme="default"] em { font-style: italic; }
270
+
271
+ [data-theme="default"] code {
272
+ font-family: var(--font-mono);
273
+ font-size: 0.875em;
274
+ background: var(--color-surface-hover);
275
+ padding: 0.125rem 0.375rem;
276
+ border-radius: var(--radius-sm);
277
+ }
278
+
279
+ [data-theme="default"] pre {
280
+ font-family: var(--font-mono);
281
+ font-size: var(--text-sm);
282
+ line-height: var(--leading-normal);
283
+ background: var(--color-ink);
284
+ color: var(--color-surface);
285
+ padding: var(--space-4);
286
+ border-radius: var(--radius-md);
287
+ overflow-x: auto;
288
+ margin: var(--space-4) 0;
289
+ }
290
+
291
+ [data-theme="default"] pre code {
292
+ background: none;
293
+ padding: 0;
294
+ font-size: inherit;
295
+ }
296
+
297
+ [data-theme="default"] blockquote {
298
+ margin: var(--space-6) 0;
299
+ padding: var(--space-4) var(--space-6);
300
+ border-left: 4px solid var(--color-primary);
301
+ background: var(--color-primary-light);
302
+ color: var(--color-ink);
303
+ border-radius: 0 var(--radius-md) var(--radius-md) 0;
304
+ }
305
+
306
+ [data-theme="default"] ul,
307
+ [data-theme="default"] ol {
308
+ margin: var(--space-4) 0;
309
+ padding-left: var(--space-6);
310
+ }
311
+
312
+ [data-theme="default"] li { margin: var(--space-2) 0; }
313
+
314
+ [data-theme="default"] hr {
315
+ border: none;
316
+ border-top: 1px solid var(--color-border);
317
+ margin: var(--space-8) 0;
318
+ }
319
+
320
+ /* ==========================================================================
321
+ Layout Utilities
322
+ ========================================================================== */
323
+
324
+ [data-theme="default"] .container {
325
+ width: 100%;
326
+ max-width: var(--container-max);
327
+ margin: 0 auto;
328
+ padding: 0 var(--container-padding);
329
+ }
330
+
331
+ /* ==========================================================================
332
+ Buttons
333
+ ========================================================================== */
334
+
335
+ [data-theme="default"] .btn {
336
+ display: inline-flex;
337
+ align-items: center;
338
+ justify-content: center;
339
+ gap: var(--space-2);
340
+ padding: var(--space-2) var(--space-5);
341
+ font-size: var(--text-sm);
342
+ font-weight: 600;
343
+ line-height: 1.5;
344
+ border: 2px solid transparent;
345
+ border-radius: var(--radius-md);
346
+ cursor: pointer;
347
+ transition: all var(--transition-fast);
348
+ text-decoration: none;
349
+ white-space: nowrap;
350
+ }
351
+
352
+ [data-theme="default"] .btn:disabled {
353
+ opacity: 0.6;
354
+ cursor: not-allowed;
355
+ }
356
+
357
+ [data-theme="default"] .btn-primary {
358
+ background: var(--color-primary);
359
+ border-color: var(--color-primary);
360
+ color: var(--color-primary-contrast);
361
+ }
362
+
363
+ [data-theme="default"] .btn-primary:hover:not(:disabled) {
364
+ background: var(--color-primary-hover);
365
+ border-color: var(--color-primary-hover);
366
+ color: var(--color-primary-contrast);
367
+ text-decoration: none;
368
+ }
369
+
370
+ [data-theme="default"] .btn-secondary {
371
+ background: var(--color-surface);
372
+ border-color: var(--color-border);
373
+ color: var(--color-ink);
374
+ }
375
+
376
+ [data-theme="default"] .btn-secondary:hover:not(:disabled) {
377
+ background: var(--color-surface-hover);
378
+ border-color: var(--color-border-strong);
379
+ text-decoration: none;
380
+ }
381
+
382
+ [data-theme="default"] .btn-outline {
383
+ background: transparent;
384
+ border-color: var(--color-primary);
385
+ color: var(--color-primary);
386
+ }
387
+
388
+ [data-theme="default"] .btn-outline:hover:not(:disabled) {
389
+ background: var(--color-primary-light);
390
+ text-decoration: none;
391
+ }
392
+
393
+ /* ==========================================================================
394
+ Forms
395
+ ========================================================================== */
396
+
397
+ [data-theme="default"] .form-group {
398
+ margin-bottom: var(--space-4);
399
+ }
400
+
401
+ [data-theme="default"] label {
402
+ display: block;
403
+ margin-bottom: var(--space-2);
404
+ font-weight: 500;
405
+ color: var(--color-ink);
406
+ }
407
+
408
+ [data-theme="default"] input[type="text"],
409
+ [data-theme="default"] input[type="email"],
410
+ [data-theme="default"] input[type="url"],
411
+ [data-theme="default"] input[type="password"],
412
+ [data-theme="default"] input[type="search"],
413
+ [data-theme="default"] textarea,
414
+ [data-theme="default"] select {
415
+ width: 100%;
416
+ padding: var(--space-2) var(--space-3);
417
+ font-size: var(--text-base);
418
+ font-family: inherit;
419
+ line-height: var(--leading-normal);
420
+ color: var(--color-ink);
421
+ background: var(--color-surface);
422
+ border: 1px solid var(--color-border);
423
+ border-radius: var(--radius-md);
424
+ transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
425
+ }
426
+
427
+ [data-theme="default"] input:focus,
428
+ [data-theme="default"] textarea:focus,
429
+ [data-theme="default"] select:focus {
430
+ outline: none;
431
+ border-color: var(--color-focus);
432
+ box-shadow: 0 0 0 3px var(--color-focus-ring);
433
+ }
434
+
435
+ [data-theme="default"] textarea {
436
+ min-height: 120px;
437
+ resize: vertical;
438
+ }
439
+
440
+ [data-theme="default"] .form-row {
441
+ display: grid;
442
+ gap: var(--space-4);
443
+ }
444
+
445
+ [data-theme="default"] .form-row.two-cols {
446
+ grid-template-columns: repeat(2, 1fr);
447
+ }
448
+
449
+ /* ==========================================================================
450
+ Site Header / Navigation
451
+ ========================================================================== */
452
+
453
+ [data-theme="default"] .site-header {
454
+ position: sticky;
455
+ top: 0;
456
+ z-index: 100;
457
+ height: var(--header-height);
458
+ background: var(--color-surface);
459
+ border-bottom: 1px solid var(--color-border);
460
+ }
461
+
462
+ [data-theme="default"] .nav {
463
+ display: flex;
464
+ align-items: center;
465
+ justify-content: space-between;
466
+ height: 100%;
467
+ max-width: var(--container-max);
468
+ margin: 0 auto;
469
+ padding: 0 var(--container-padding);
470
+ }
471
+
472
+ [data-theme="default"] .site-brand {
473
+ font-size: var(--text-xl);
474
+ font-weight: 700;
475
+ color: var(--color-ink);
476
+ text-decoration: none;
477
+ }
478
+
479
+ [data-theme="default"] .site-brand:hover {
480
+ color: var(--color-primary);
481
+ text-decoration: none;
482
+ }
483
+
484
+ [data-theme="default"] .nav-menu {
485
+ display: flex;
486
+ align-items: center;
487
+ gap: var(--space-6);
488
+ list-style: none;
489
+ margin: 0;
490
+ padding: 0;
491
+ }
492
+
493
+ [data-theme="default"] .nav-menu a {
494
+ font-size: var(--text-sm);
495
+ font-weight: 500;
496
+ color: var(--color-ink-muted);
497
+ text-decoration: none;
498
+ padding: var(--space-1) 0;
499
+ transition: color var(--transition-fast);
500
+ }
501
+
502
+ [data-theme="default"] .nav-menu a:hover {
503
+ color: var(--color-primary);
504
+ text-decoration: none;
505
+ }
506
+
507
+ /* ==========================================================================
508
+ Hero Section
509
+ ========================================================================== */
510
+
511
+ [data-theme="default"] .hero {
512
+ padding: var(--space-16) 0;
513
+ text-align: center;
514
+ background: linear-gradient(180deg, var(--color-surface-elevated) 0%, var(--color-surface) 100%);
515
+ }
516
+
517
+ [data-theme="default"] .hero-content {
518
+ max-width: var(--container-max);
519
+ margin: 0 auto;
520
+ padding: 0 var(--container-padding);
521
+ width: 100%;
522
+ box-sizing: border-box;
523
+ }
524
+
525
+ [data-theme="default"] .hero h1 {
526
+ font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
527
+ margin-bottom: var(--space-4);
528
+ }
529
+
530
+ [data-theme="default"] .hero-subtitle {
531
+ font-size: var(--text-xl);
532
+ color: var(--color-ink-muted);
533
+ margin-bottom: var(--space-8);
534
+ }
535
+
536
+ [data-theme="default"] .hero .btn {
537
+ font-size: var(--text-base);
538
+ padding: var(--space-3) var(--space-8);
539
+ }
540
+
541
+ /* ==========================================================================
542
+ Sections
543
+ ========================================================================== */
544
+
545
+ [data-theme="default"] section {
546
+ padding: var(--space-12) 0;
547
+ }
548
+
549
+ [data-theme="default"] .container {
550
+ width: 100%;
551
+ max-width: var(--container-max);
552
+ margin: 0 auto;
553
+ padding: 0 var(--container-padding);
554
+ }
555
+
556
+ [data-theme="default"] .section-header {
557
+ text-align: center;
558
+ margin-bottom: var(--space-10);
559
+ }
560
+
561
+ [data-theme="default"] .section-header h2 {
562
+ font-size: var(--text-3xl);
563
+ margin-bottom: var(--space-2);
564
+ }
565
+
566
+ /* ==========================================================================
567
+ About Preview
568
+ ========================================================================== */
569
+
570
+ [data-theme="default"] .about-preview {
571
+ background: var(--color-surface-elevated);
572
+ }
573
+
574
+ [data-theme="default"] .about-content {
575
+ max-width: 720px;
576
+ margin: 0 auto var(--space-6);
577
+ text-align: center;
578
+ }
579
+
580
+ [data-theme="default"] .about-content h2 {
581
+ text-align: center;
582
+ }
583
+
584
+ /* ==========================================================================
585
+ Posts Grid / Cards
586
+ ========================================================================== */
587
+
588
+ [data-theme="default"] .posts-grid {
589
+ display: grid;
590
+ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
591
+ gap: var(--space-6);
592
+ }
593
+
594
+ [data-theme="default"] .post-card {
595
+ display: flex;
596
+ flex-direction: column;
597
+ background: var(--color-surface);
598
+ border: 1px solid var(--color-border);
599
+ border-radius: var(--radius-lg);
600
+ overflow: hidden;
601
+ transition: box-shadow var(--transition-normal), border-color var(--transition-fast);
602
+ }
603
+
604
+ [data-theme="default"] .post-card:hover {
605
+ box-shadow: var(--shadow-lg);
606
+ border-color: var(--color-border-strong);
607
+ }
608
+
609
+ [data-theme="default"] .post-card__image {
610
+ margin: 0;
611
+ aspect-ratio: 16 / 9;
612
+ overflow: hidden;
613
+ }
614
+
615
+ [data-theme="default"] .post-card__image img {
616
+ width: 100%;
617
+ height: 100%;
618
+ -o-object-fit: cover;
619
+ object-fit: cover;
620
+ transition: transform var(--transition-normal);
621
+ }
622
+
623
+ [data-theme="default"] .post-card:hover .post-card__image img {
624
+ transform: scale(1.05);
625
+ }
626
+
627
+ [data-theme="default"] .post-card__content {
628
+ display: flex;
629
+ flex-direction: column;
630
+ flex: 1;
631
+ padding: var(--space-5);
632
+ }
633
+
634
+ [data-theme="default"] .post-card__header {
635
+ margin-bottom: var(--space-2);
636
+ }
637
+
638
+ [data-theme="default"] .post-card__date {
639
+ display: inline-block;
640
+ font-size: var(--text-xs);
641
+ color: var(--color-ink-subtle);
642
+ }
643
+
644
+ [data-theme="default"] .post-card__title {
645
+ font-size: var(--text-lg);
646
+ margin: var(--space-2) 0;
647
+ line-height: var(--leading-tight);
648
+ }
649
+
650
+ [data-theme="default"] .post-card__title a {
651
+ color: var(--color-ink);
652
+ text-decoration: none;
653
+ }
654
+
655
+ [data-theme="default"] .post-card__title a:hover {
656
+ color: var(--color-primary);
657
+ text-decoration: underline;
658
+ }
659
+
660
+ [data-theme="default"] .post-card__excerpt {
661
+ flex: 1;
662
+ font-size: var(--text-sm);
663
+ color: var(--color-ink-muted);
664
+ line-height: var(--leading-relaxed);
665
+ margin-bottom: var(--space-4);
666
+ }
667
+
668
+ [data-theme="default"] .post-card .btn {
669
+ align-self: flex-start;
670
+ margin-top: auto;
671
+ }
672
+
673
+ /* ==========================================================================
674
+ Single Post
675
+ ========================================================================== */
676
+
677
+ [data-theme="default"] .post-single {
678
+ padding: var(--space-12) 0 var(--space-16);
679
+ }
680
+
681
+ [data-theme="default"] .post-header {
682
+ margin-bottom: var(--space-8);
683
+ }
684
+
685
+ [data-theme="default"] .post-title {
686
+ font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
687
+ margin-bottom: var(--space-3);
688
+ }
689
+
690
+ [data-theme="default"] .post-meta {
691
+ display: flex;
692
+ align-items: center;
693
+ gap: var(--space-4);
694
+ font-size: var(--text-sm);
695
+ color: var(--color-ink-muted);
696
+ }
697
+
698
+ [data-theme="default"] .post-date {
699
+ font-weight: 500;
700
+ }
701
+
702
+ [data-theme="default"] .post-body {
703
+ max-width: 800px;
704
+ margin: 0 auto var(--space-12);
705
+ font-size: var(--text-lg);
706
+ line-height: var(--leading-relaxed);
707
+ }
708
+
709
+ [data-theme="default"] .post-body p {
710
+ margin-bottom: var(--space-5);
711
+ }
712
+
713
+ [data-theme="default"] .post-body h2 {
714
+ font-size: var(--text-2xl);
715
+ margin-top: var(--space-10);
716
+ margin-bottom: var(--space-4);
717
+ padding-top: var(--space-6);
718
+ border-top: 1px solid var(--color-border);
719
+ }
720
+
721
+ [data-theme="default"] .post-body h3 {
722
+ font-size: var(--text-xl);
723
+ margin-top: var(--space-8);
724
+ margin-bottom: var(--space-3);
725
+ }
726
+
727
+ [data-theme="default"] .post-body ul,
728
+ [data-theme="default"] .post-body ol {
729
+ margin: var(--space-4) 0;
730
+ padding-left: var(--space-6);
731
+ }
732
+
733
+ [data-theme="default"] .post-body blockquote {
734
+ margin: var(--space-6) 0;
735
+ padding: var(--space-4) var(--space-6);
736
+ border-left: 4px solid var(--color-primary);
737
+ background: var(--color-primary-light);
738
+ color: var(--color-ink);
739
+ border-radius: 0 var(--radius-md) var(--radius-md) 0;
740
+ }
741
+
742
+ [data-theme="default"] .post-footer {
743
+ padding-top: var(--space-8);
744
+ border-top: 1px solid var(--color-border);
745
+ }
746
+
747
+ [data-theme="default"] .post-nav {
748
+ display: flex;
749
+ justify-content: space-between;
750
+ gap: var(--space-4);
751
+ }
752
+
753
+ [data-theme="default"] .post-nav__prev,
754
+ [data-theme="default"] .post-nav__next {
755
+ display: flex;
756
+ flex-direction: column;
757
+ gap: var(--space-1);
758
+ padding: var(--space-3) var(--space-4);
759
+ border: 1px solid var(--color-border);
760
+ border-radius: var(--radius-md);
761
+ text-decoration: none;
762
+ transition: all var(--transition-fast);
763
+ }
764
+
765
+ [data-theme="default"] .post-nav__prev:hover,
766
+ [data-theme="default"] .post-nav__next:hover {
767
+ border-color: var(--color-primary);
768
+ background: var(--color-primary-light);
769
+ text-decoration: none;
770
+ }
771
+
772
+ [data-theme="default"] .post-nav__label {
773
+ font-size: var(--text-xs);
774
+ font-weight: 600;
775
+ text-transform: uppercase;
776
+ letter-spacing: 0.05em;
777
+ color: var(--color-ink-subtle);
778
+ }
779
+
780
+ [data-theme="default"] .post-nav__title {
781
+ font-size: var(--text-sm);
782
+ font-weight: 500;
783
+ color: var(--color-ink);
784
+ }
785
+
786
+ /* ==========================================================================
787
+ Page (Generic)
788
+ ========================================================================== */
789
+
790
+ [data-theme="default"] .page-header {
791
+ padding: var(--space-12) 0 var(--space-6);
792
+ border-bottom: 1px solid var(--color-border);
793
+ }
794
+
795
+ [data-theme="default"] .page-header h1 {
796
+ font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
797
+ margin-bottom: var(--space-3);
798
+ }
799
+
800
+ [data-theme="default"] .page-excerpt {
801
+ font-size: var(--text-lg);
802
+ color: var(--color-ink-muted);
803
+ max-width: 720px;
804
+ }
805
+
806
+ [data-theme="default"] .page-content {
807
+ padding: var(--space-10) 0 var(--space-16);
808
+ }
809
+
810
+ [data-theme="default"] .entry-content h2 {
811
+ font-size: var(--text-2xl);
812
+ margin-top: var(--space-10);
813
+ margin-bottom: var(--space-4);
814
+ }
815
+
816
+ [data-theme="default"] .entry-content h3 {
817
+ font-size: var(--text-xl);
818
+ margin-top: var(--space-8);
819
+ margin-bottom: var(--space-3);
820
+ }
821
+
822
+ [data-theme="default"] .entry-content p {
823
+ margin-bottom: var(--space-5);
824
+ }
825
+
826
+ /* ==========================================================================
827
+ Archive / Blog Listing
828
+ ========================================================================== */
829
+
830
+ [data-theme="default"] .archive {
831
+ padding: var(--space-12) 0 var(--space-16);
832
+ }
833
+
834
+ [data-theme="default"] .archive-header {
835
+ text-align: center;
836
+ margin-bottom: var(--space-10);
837
+ }
838
+
839
+ [data-theme="default"] .archive-title {
840
+ font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
841
+ margin-bottom: var(--space-3);
842
+ }
843
+
844
+ [data-theme="default"] .archive-description {
845
+ font-size: var(--text-lg);
846
+ color: var(--color-ink-muted);
847
+ max-width: 720px;
848
+ margin: 0 auto;
849
+ }
850
+
851
+ /* ==========================================================================
852
+ Pagination
853
+ ========================================================================== */
854
+
855
+ [data-theme="default"] .pagination {
856
+ display: flex;
857
+ align-items: center;
858
+ justify-content: center;
859
+ gap: var(--space-2);
860
+ margin-top: var(--space-10);
861
+ flex-wrap: wrap;
862
+ }
863
+
864
+ [data-theme="default"] .pagination a,
865
+ [data-theme="default"] .pagination span {
866
+ display: inline-flex;
867
+ align-items: center;
868
+ justify-content: center;
869
+ min-width: 44px;
870
+ height: 44px;
871
+ padding: 0 var(--space-3);
872
+ font-weight: 500;
873
+ border: 1px solid var(--color-border);
874
+ border-radius: var(--radius-md);
875
+ color: var(--color-ink);
876
+ text-decoration: none;
877
+ transition: all var(--transition-fast);
878
+ }
879
+
880
+ [data-theme="default"] .pagination a:hover {
881
+ border-color: var(--color-primary);
882
+ background: var(--color-primary-light);
883
+ color: var(--color-primary);
884
+ text-decoration: none;
885
+ }
886
+
887
+ [data-theme="default"] .pagination .current {
888
+ background: var(--color-primary);
889
+ border-color: var(--color-primary);
890
+ color: var(--color-primary-contrast);
891
+ }
892
+
893
+ /* ==========================================================================
894
+ Contact Section
895
+ ========================================================================== */
896
+
897
+ [data-theme="default"] .contact {
898
+ background: var(--color-surface-elevated);
899
+ }
900
+
901
+ [data-theme="default"] .contact h2 {
902
+ text-align: center;
903
+ margin-bottom: var(--space-2);
904
+ }
905
+
906
+ [data-theme="default"] .contact-intro {
907
+ text-align: center;
908
+ color: var(--color-ink-muted);
909
+ max-width: 720px;
910
+ margin: 0 auto var(--space-8);
911
+ }
912
+
913
+ [data-theme="default"] .contact-form {
914
+ max-width: 600px;
915
+ margin: 0 auto;
916
+ }
917
+
918
+ [data-theme="default"] .contact-form .form-group {
919
+ margin-bottom: var(--space-5);
920
+ }
921
+
922
+ /* ==========================================================================
923
+ Site Footer
924
+ ========================================================================== */
925
+
926
+ [data-theme="default"] .site-footer {
927
+ margin-top: auto;
928
+ padding: var(--space-10) 0;
929
+ background: var(--color-ink);
930
+ color: var(--color-surface);
931
+ border-top: 1px solid var(--color-border);
932
+ }
933
+
934
+ [data-theme="default"] .site-footer .container {
935
+ display: flex;
936
+ flex-direction: column;
937
+ align-items: center;
938
+ gap: var(--space-6);
939
+ text-align: center;
940
+ }
941
+
942
+ [data-theme="default"] .footer-nav {
943
+ display: flex;
944
+ flex-wrap: wrap;
945
+ align-items: center;
946
+ justify-content: center;
947
+ gap: var(--space-4) var(--space-6);
948
+ margin: 0;
949
+ padding: 0;
950
+ list-style: none;
951
+ }
952
+
953
+ [data-theme="default"] .footer-nav a {
954
+ color: var(--color-ink-subtle);
955
+ font-size: var(--text-sm);
956
+ }
957
+
958
+ [data-theme="default"] .footer-nav a:hover {
959
+ color: var(--color-primary);
960
+ }
961
+
962
+ [data-theme="default"] .copyright {
963
+ margin: 0;
964
+ font-size: var(--text-sm);
965
+ color: var(--color-ink-subtle);
966
+ }
967
+
968
+ /* ==========================================================================
969
+ Error 404
970
+ ========================================================================== */
971
+
972
+ [data-theme="default"] .error-404 {
973
+ min-height: 60vh;
974
+ display: flex;
975
+ flex-direction: column;
976
+ align-items: center;
977
+ justify-content: center;
978
+ text-align: center;
979
+ padding: var(--space-16) var(--container-padding);
980
+ }
981
+
982
+ [data-theme="default"] .error-404 h1 {
983
+ font-size: clamp(6rem, 15vw, 12rem);
984
+ font-weight: 800;
985
+ line-height: 1;
986
+ color: var(--color-primary);
987
+ margin-bottom: var(--space-4);
988
+ }
989
+
990
+ [data-theme="default"] .error-404 h2 {
991
+ font-size: var(--text-2xl);
992
+ margin-bottom: var(--space-4);
993
+ }
994
+
995
+ [data-theme="default"] .error-404 p {
996
+ font-size: var(--text-lg);
997
+ color: var(--color-ink-muted);
998
+ margin-bottom: var(--space-8);
999
+ }
1000
+
1001
+ /* ==========================================================================
1002
+ Utility Classes
1003
+ ========================================================================== */
1004
+
1005
+ [data-theme="default"] .sr-only {
1006
+ position: absolute;
1007
+ width: 1px;
1008
+ height: 1px;
1009
+ padding: 0;
1010
+ margin: -1px;
1011
+ overflow: hidden;
1012
+ clip: rect(0, 0, 0, 0);
1013
+ white-space: nowrap;
1014
+ border: 0;
1015
+ }
1016
+
1017
+ [data-theme="default"] .text-center { text-align: center; }
1018
+ [data-theme="default"] .text-left { text-align: left; }
1019
+ [data-theme="default"] .text-right { text-align: right; }
1020
+
1021
+ [data-theme="default"] .mt-0 { margin-top: 0; }
1022
+ [data-theme="default"] .mb-0 { margin-bottom: 0; }
1023
+
1024
+ [data-theme="default"] .hidden { display: none !important; }
1025
+ [data-theme="default"] .invisible { visibility: hidden; }
1026
+
1027
+ [data-theme="default"] .pagination {
1028
+ display: flex;
1029
+ align-items: center;
1030
+ justify-content: center;
1031
+ gap: 1rem;
1032
+ margin-top: 2rem;
1033
+ }
1034
+
1035
+ [data-theme="default"] .pagination a {
1036
+ color: var(--color-brand);
1037
+ font-weight: 600;
1038
+ }
1039
+
1040
+ /* ==========================================================================
1041
+ Responsive
1042
+ ========================================================================== */
1043
+
1044
+ @media (max-width: 768px) {
1045
+ [data-theme="default"] .nav-menu {
1046
+ display: none; /* Could be replaced with mobile menu toggle */
1047
+ }
1048
+
1049
+ [data-theme="default"] .posts-grid {
1050
+ grid-template-columns: 1fr;
1051
+ }
1052
+
1053
+ [data-theme="default"] .form-row.two-cols {
1054
+ grid-template-columns: 1fr;
1055
+ }
1056
+
1057
+ [data-theme="default"] .post-nav {
1058
+ flex-direction: column;
1059
+ }
1060
+ }
1061
+
1062
+ /* ==========================================================================
1063
+ Print
1064
+ ========================================================================== */
1065
+
1066
+ @media print {
1067
+ [data-theme="default"] .site-header,
1068
+ [data-theme="default"] .site-footer,
1069
+ [data-theme="default"] .btn,
1070
+ [data-theme="default"] .post-nav,
1071
+ [data-theme="default"] .pagination {
1072
+ display: none !important;
1073
+ }
1074
+
1075
+ [data-theme="default"] .post-body {
1076
+ max-width: 100%;
1077
+ }
1078
+
1079
+ [data-theme="default"] a {
1080
+ text-decoration: underline;
1081
+ color: var(--color-ink);
1082
+ }
1083
+ }
1084
+ `,
1085
+ "index.astro": `<main data-template="index" data-type="{{page.type}}" class="page">
1086
+ <header class="page-header">
1087
+ <div class="container">
1088
+ <h1>{{settings.theme.siteTitle || page.title}}</h1>
1089
+ {{#if settings.theme.siteDescription}}
1090
+ <p class="page-description">{{settings.theme.siteDescription}}</p>
1091
+ {{/if}}
1092
+ </div>
1093
+ </header>
1094
+
1095
+ <div class="page-content container">
1096
+ {{#if (field "content")}}
1097
+ <div class="entry-content">{{{field "content"}}}</div>
1098
+ {{else if content.text}}
1099
+ <p>{{content.text}}</p>
1100
+ {{/if}}
1101
+
1102
+ {{#if items}}
1103
+ <section class="listing">
1104
+ {{#each items}}
1105
+ <article class="card entry entry--item">
1106
+ <h2 class="entry__title"><a href="/{{slug}}">{{title}}</a></h2>
1107
+ {{#if excerpt}}<p class="entry__excerpt">{{excerpt}}</p>{{/if}}
1108
+ </article>
1109
+ {{/each}}
1110
+ </section>
1111
+ {{/if}}
1112
+ </div>
1113
+ </main>
1114
+ `,
1115
+ "page-about.astro": `<main data-template="page-about" data-type="page" class="page-about">
1116
+ <header class="site-header">
1117
+ <nav class="nav" role="navigation" aria-label="Main navigation">
1118
+ <a href="/" class="site-brand" aria-label="Home">
1119
+ {{site.title}}
1120
+ </a>
1121
+ <ul class="nav-menu">
1122
+ <li><a href="/about">{{#if menus.header.bySlug.about}}{{menus.header.bySlug.about.label}}{{else}}About{{/if}}</a></li>
1123
+ <li><a href="#contact">Contact</a></li>
1124
+ <li><a href="/blog">{{#if menus.header.bySlug.blog}}{{menus.header.bySlug.blog.label}}{{else}}Blog{{/if}}</a></li>
1125
+ </ul>
1126
+ </nav>
1127
+ </header>
1128
+
1129
+ <section class="page-header">
1130
+ <div class="container">
1131
+ <h1>{{field "title"}}</h1>
1132
+ {{#if (field "excerpt")}}
1133
+ <p class="page-excerpt">{{field "excerpt"}}</p>
1134
+ {{/if}}
1135
+ </div>
1136
+ </header>
1137
+
1138
+ <div class="page-content container">
1139
+ {{#if (field "content")}}
1140
+ <div class="entry-content">{{{field "content"}}}</div>
1141
+ {{else if (field "blocks")}}
1142
+ <div class="entry-content">
1143
+ {{#each fields.blocks}}
1144
+ {{#if (eq type 'heading')}}
1145
+ <h{{level}}>{{content}}</h{{level}}>
1146
+ {{else if (eq type 'paragraph')}}
1147
+ <p>{{content}}</p>
1148
+ {{else if (eq type 'image')}}
1149
+ <figure><img src="{{content.url}}" alt="{{content.alt}}" /></figure>
1150
+ {{/if}}
1151
+ {{/each}}
1152
+ </div>
1153
+ {{/if}}
1154
+ </div>
1155
+ </main>
1156
+
1157
+ <footer class="site-footer" role="contentinfo">
1158
+ <div class="container">
1159
+ <nav class="footer-nav" aria-label="Footer navigation">
1160
+ {{#each menus.footer.items}}
1161
+ <a href="{{url}}">{{label}}</a>
1162
+ {{/each}}
1163
+ </nav>
1164
+ <p class="copyright">&copy; {{new Date().getFullYear()}} {{site.title}}. All rights reserved.</p>
1165
+ </div>
1166
+ </footer>
1167
+ `,
1168
+ "page-blog.astro": `<main data-template="page-blog" data-type="page" class="page-blog">
1169
+ <header class="page-header">
1170
+ <div class="container">
1171
+ <h1>{{field "title"}}</h1>
1172
+ {{#if (field "description")}}
1173
+ <p class="page-description">{{field "description"}}</p>
1174
+ {{/if}}
1175
+ </div>
1176
+ </header>
1177
+
1178
+ <section class="posts-section" aria-labelledby="posts-title">
1179
+ <div class="container">
1180
+ {{#if items}}
1181
+ <div class="posts-grid">
1182
+ {{#each items}}
1183
+ <article class="post-card">
1184
+ {{#if thumbnail.url}}
1185
+ <figure class="post-card__image">
1186
+ <a href="{{url}}">
1187
+ <img src="{{thumbnail.url}}" alt="{{thumbnail.alt}}" loading="lazy" />
1188
+ </a>
1189
+ </figure>
1190
+ {{/if}}
1191
+ <div class="post-card__content">
1192
+ <header class="post-card__header">
1193
+ <time class="post-card__date" datetime="{{published_at}}">
1194
+ {{#if published_at}}
1195
+ {{formatDate published_at}}
1196
+ {{/if}}
1197
+ </time>
1198
+ </header>
1199
+ <h2 class="post-card__title"><a href="{{url}}">{{title}}</a></h2>
1200
+ {{#if excerpt}}
1201
+ <p class="post-card__excerpt">{{excerpt}}</p>
1202
+ {{/if}}
1203
+ <a href="{{url}}" class="btn btn-outline">Continue reading</a>
1204
+ </div>
1205
+ </article>
1206
+ {{/each}}
1207
+ </div>
1208
+
1209
+ {{#if pagination}}
1210
+ <nav class="pagination" aria-label="Pagination">
1211
+ {{pagination}}
1212
+ </nav>
1213
+ {{/if}}
1214
+ {{else}}
1215
+ <p class="no-posts">No articles published yet.</p>
1216
+ {{/if}}
1217
+ </div>
1218
+ </section>
1219
+ </main>
1220
+ `,
1221
+ "page-contact.astro": `<main data-template="page-contact" data-type="page" class="page-contact">
1222
+ <header class="site-header">
1223
+ <nav class="nav" role="navigation" aria-label="Main navigation">
1224
+ <a href="/" class="site-brand" aria-label="Home">
1225
+ {{site.title}}
1226
+ </a>
1227
+ <ul class="nav-menu">
1228
+ <li><a href="/about">{{#if menus.header.bySlug.about}}{{menus.header.bySlug.about.label}}{{else}}About{{/if}}</a></li>
1229
+ <li><a href="#contact">Contact</a></li>
1230
+ <li><a href="/blog">{{#if menus.header.bySlug.blog}}{{menus.header.bySlug.blog.label}}{{else}}Blog{{/if}}</a></li>
1231
+ </ul>
1232
+ </nav>
1233
+ </header>
1234
+
1235
+ <section class="page-header">
1236
+ <div class="container">
1237
+ <h1>{{field "title"}}</h1>
1238
+ {{#if (field "excerpt")}}
1239
+ <p class="page-excerpt">{{field "excerpt"}}</p>
1240
+ {{/if}}
1241
+ </div>
1242
+ </section>
1243
+
1244
+ <section class="contact" id="contact" aria-labelledby="contact-title">
1245
+ <div class="container">
1246
+ <h2 id="contact-title">Get in Touch</h2>
1247
+ <p class="contact-intro">{{settings.contactText || 'Fill out the form or send us an email at hello@example.com — we would love to hear from you.'}}</p>
1248
+ <form class="contact-form" action="mailto:hello@example.com" method="POST" enctype="text/plain">
1249
+ <div class="form-group">
1250
+ <label for="contact-name">Name</label>
1251
+ <input type="text" id="contact-name" name="name" required />
1252
+ </div>
1253
+ <div class="form-group">
1254
+ <label for="contact-email">E-mail</label>
1255
+ <input type="email" id="contact-email" name="email" required />
1256
+ </div>
1257
+ <div class="form-group">
1258
+ <label for="contact-message">Message</label>
1259
+ <textarea id="contact-message" name="message" rows="5" required></textarea>
1260
+ </div>
1261
+ <button type="submit" class="btn btn-primary">Send</button>
1262
+ </form>
1263
+ </div>
1264
+ </section>
1265
+ </main>
1266
+
1267
+ <footer class="site-footer" role="contentinfo">
1268
+ <div class="container">
1269
+ <nav class="footer-nav" aria-label="Footer navigation">
1270
+ {{#each menus.footer.items}}
1271
+ <a href="{{url}}">{{label}}</a>
1272
+ {{/each}}
1273
+ </nav>
1274
+ <p class="copyright">&copy; {{new Date().getFullYear()}} {{site.title}}. All rights reserved.</p>
1275
+ </div>
1276
+ </footer>
1277
+ `,
1278
+ "page-home.astro": `<main data-template="page-home" data-type="page" class="page-home">
1279
+ <header class="site-header">
1280
+ <nav class="nav" role="navigation" aria-label="Main navigation">
1281
+ <a href="/" class="site-brand" aria-label="Home">
1282
+ {{site.title}}
1283
+ </a>
1284
+ <ul class="nav-menu">
1285
+ <li><a href="/about">{{#if menus.header.bySlug.about}}{{menus.header.bySlug.about.label}}{{else}}About{{/if}}</a></li>
1286
+ <li><a href="#contact">Contact</a></li>
1287
+ <li><a href="/blog">{{#if menus.header.bySlug.blog}}{{menus.header.bySlug.blog.label}}{{else}}Blog{{/if}}</a></li>
1288
+ </ul>
1289
+ </nav>
1290
+ </header>
1291
+
1292
+ <section class="hero" id="hero" aria-labelledby="hero-title">
1293
+ <div class="hero-content">
1294
+ <h1 id="hero-title">{{field "title"}}</h1>
1295
+ {{#if (field "subtitle")}}
1296
+ <p class="hero-subtitle">{{field "subtitle"}}</p>
1297
+ {{/if}}
1298
+ <a href="/blog" class="btn btn-primary" role="button">View Blog</a>
1299
+ </div>
1300
+ </section>
1301
+
1302
+ <section class="about-preview" id="about" aria-labelledby="about-title">
1303
+ <div class="container">
1304
+ <h2 id="about-title">About Us</h2>
1305
+ {{#if (field "aboutPreview.html")}}
1306
+ <div class="about-content">{{{field "aboutPreview.html"}}}</div>
1307
+ {{else}}
1308
+ <p>About section content will appear here when configured.</p>
1309
+ {{/if}}
1310
+ <a href="/about" class="btn btn-secondary">Read more →</a>
1311
+ </div>
1312
+ </section>
1313
+
1314
+ <section class="latest-posts" aria-labelledby="latest-title">
1315
+ <div class="container">
1316
+ <header class="section-header">
1317
+ <h2 id="latest-title">Latest Articles</h2>
1318
+ </header>
1319
+ {{#if items}}
1320
+ <div class="posts-grid">
1321
+ {{#each items}}
1322
+ <article class="post-card">
1323
+ {{#if thumbnail.url}}
1324
+ <figure class="post-card__image">
1325
+ <img src="{{thumbnail.url}}" alt="{{thumbnail.alt}}" loading="lazy" />
1326
+ </figure>
1327
+ {{/if}}
1328
+ <div class="post-card__content">
1329
+ <h3 class="post-card__title"><a href="{{url}}">{{title}}</a></h3>
1330
+ {{#if excerpt}}
1331
+ <p class="post-card__excerpt">{{excerpt}}</p>
1332
+ {{/if}}
1333
+ <a href="{{url}}" class="btn btn-outline">Continue reading</a>
1334
+ </div>
1335
+ </article>
1336
+ {{/each}}
1337
+ </div>
1338
+ {{else}}
1339
+ <p class="no-posts">No articles published yet.</p>
1340
+ {{/if}}
1341
+ </div>
1342
+ </section>
1343
+
1344
+ <section class="contact" id="contact" aria-labelledby="contact-title">
1345
+ <div class="container">
1346
+ <h2 id="contact-title">Get in Touch</h2>
1347
+ <p class="contact-intro">{{settings.contactText || 'Fill out the form or send us an email at hello@example.com — we would love to hear from you.'}}</p>
1348
+ <form class="contact-form" action="mailto:hello@example.com" method="POST" enctype="text/plain">
1349
+ <div class="form-group">
1350
+ <label for="contact-name">Name</label>
1351
+ <input type="text" id="contact-name" name="name" required />
1352
+ </div>
1353
+ <div class="form-group">
1354
+ <label for="contact-email">E-mail</label>
1355
+ <input type="email" id="contact-email" name="email" required />
1356
+ </div>
1357
+ <div class="form-group">
1358
+ <label for="contact-message">Message</label>
1359
+ <textarea id="contact-message" name="message" rows="5" required></textarea>
1360
+ </div>
1361
+ <button type="submit" class="btn btn-primary">Send</button>
1362
+ </form>
1363
+ </div>
1364
+ </section>
1365
+ </main>
1366
+
1367
+ <footer class="site-footer" role="contentinfo">
1368
+ <div class="container">
1369
+ <nav class="footer-nav" aria-label="Footer navigation">
1370
+ {{#each menus.footer.items}}
1371
+ <a href="{{url}}">{{label}}</a>
1372
+ {{/each}}
1373
+ </nav>
1374
+ <p class="copyright">&copy; {{new Date().getFullYear()}} {{site.title}}. All rights reserved.</p>
1375
+ </div>
1376
+ </footer>
1377
+ `,
1378
+ "page.astro": `<main data-template="page" data-type="{{page.type}}" class="page">
1379
+ <header class="page-header">
1380
+ <div class="container">
1381
+ <h1>{{field "title"}}</h1>
1382
+ {{#if (field "excerpt")}}
1383
+ <p class="page-excerpt">{{field "excerpt"}}</p>
1384
+ {{/if}}
1385
+ {{#if settings.theme.siteDescription}}
1386
+ <p class="site-description">{{settings.theme.siteDescription}}</p>
1387
+ {{/if}}
1388
+ </div>
1389
+ </header>
1390
+
1391
+ <div class="page-content container">
1392
+ {{#if (field "content")}}
1393
+ <div class="entry-content">{{{field "content"}}}</div>
1394
+ {{else if (field "blocks")}}
1395
+ <div class="entry-content">
1396
+ {{#each fields.blocks}}
1397
+ {{#if (eq type 'heading')}}
1398
+ <h{{level}}>{{content}}</h{{level}}>
1399
+ {{else if (eq type 'paragraph')}}
1400
+ <p>{{content}}</p>
1401
+ {{else if (eq type 'image')}}
1402
+ <figure><img src="{{content.url}}" alt="{{content.alt}}" /></figure>
1403
+ {{/if}}
1404
+ {{/each}}
1405
+ </div>
1406
+ {{/if}}
1407
+ </div>
1408
+ </main>
1409
+
1410
+ {{#if jsonLd}}
1411
+ <script type="application/ld+json">{{{jsonLd}}}</script>
1412
+ {{/if}}
1413
+ `,
1414
+ "post-first-post.astro": `<article data-template="post-first-post" data-type="post" class="post post-single">
1415
+ <header class="post-header">
1416
+ <div class="container">
1417
+ <h1 class="post-title">{{field "title"}}</h1>
1418
+ <div class="post-meta">
1419
+ <time datetime="{{content.published_at}}" class="post-date">
1420
+ {{#if content.published_at}}
1421
+ {{formatDate content.published_at}}
1422
+ {{/if}}
1423
+ </time>
1424
+ </div>
1425
+ </div>
1426
+ </header>
1427
+
1428
+ <div class="post-body container">
1429
+ {{#if (field "content")}}
1430
+ <div class="entry-content">{{{field "content"}}}</div>
1431
+ {{else if (field "blocks")}}
1432
+ <div class="entry-content">
1433
+ {{#each fields.blocks}}
1434
+ {{#if (eq type 'heading')}}
1435
+ <h{{level}}>{{content}}</h{{level}}>
1436
+ {{else if (eq type 'paragraph')}}
1437
+ <p>{{content}}</p>
1438
+ {{else if (eq type 'image')}}
1439
+ <figure><img src="{{content.url}}" alt="{{content.alt}}" /></figure>
1440
+ {{/if}}
1441
+ {{/each}}
1442
+ </div>
1443
+ {{/if}}
1444
+ </div>
1445
+
1446
+ <footer class="post-footer">
1447
+ <div class="container">
1448
+ <nav class="post-nav" aria-label="Post navigation">
1449
+ {{#if prevPost}}
1450
+ <a href="/{{page.type}}/{{prevPost.slug}}" class="post-nav__prev" rel="prev">
1451
+ <span class="post-nav__label">Previous article</span>
1452
+ <span class="post-nav__title">{{prevPost.title}}</span>
1453
+ </a>
1454
+ {{/if}}
1455
+ {{#if nextPost}}
1456
+ <a href="/{{page.type}}/{{nextPost.slug}}" class="post-nav__next" rel="next">
1457
+ <span class="post-nav__label">Next article</span>
1458
+ <span class="post-nav__title">{{nextPost.title}}</span>
1459
+ </a>
1460
+ {{/if}}
1461
+ </nav>
1462
+ </div>
1463
+ </footer>
1464
+ </article>
1465
+ `,
1466
+ "post-second-post.astro": `<article data-template="post-second-post" data-type="post" class="post post-single">
1467
+ <header class="post-header">
1468
+ <div class="container">
1469
+ <h1 class="post-title">{{field "title"}}</h1>
1470
+ <div class="post-meta">
1471
+ <time datetime="{{content.published_at}}" class="post-date">
1472
+ {{#if content.published_at}}
1473
+ {{formatDate content.published_at}}
1474
+ {{/if}}
1475
+ </time>
1476
+ </div>
1477
+ </div>
1478
+ </header>
1479
+
1480
+ <div class="post-body container">
1481
+ {{#if (field "content")}}
1482
+ <div class="entry-content">{{{field "content"}}}</div>
1483
+ {{else if (field "blocks")}}
1484
+ <div class="entry-content">
1485
+ {{#each fields.blocks}}
1486
+ {{#if (eq type 'heading')}}
1487
+ <h{{level}}>{{content}}</h{{level}}>
1488
+ {{else if (eq type 'paragraph')}}
1489
+ <p>{{content}}</p>
1490
+ {{else if (eq type 'image')}}
1491
+ <figure><img src="{{content.url}}" alt="{{content.alt}}" /></figure>
1492
+ {{/if}}
1493
+ {{/each}}
1494
+ </div>
1495
+ {{/if}}
1496
+ </div>
1497
+
1498
+ <footer class="post-footer">
1499
+ <div class="container">
1500
+ <nav class="post-nav" aria-label="Post navigation">
1501
+ {{#if prevPost}}
1502
+ <a href="/{{page.type}}/{{prevPost.slug}}" class="post-nav__prev" rel="prev">
1503
+ <span class="post-nav__label">Previous article</span>
1504
+ <span class="post-nav__title">{{prevPost.title}}</span>
1505
+ </a>
1506
+ {{/if}}
1507
+ {{#if nextPost}}
1508
+ <a href="/{{page.type}}/{{nextPost.slug}}" class="post-nav__next" rel="next">
1509
+ <span class="post-nav__label">Next article</span>
1510
+ <span class="post-nav__title">{{nextPost.title}}</span>
1511
+ </a>
1512
+ {{/if}}
1513
+ </nav>
1514
+ </div>
1515
+ </footer>
1516
+ </article>
1517
+ `,
1518
+ "single.astro": `<article data-template="single" data-type="{{page.type}}" class="post post-single">
1519
+ <header class="post-header">
1520
+ <div class="container">
1521
+ <h1 class="post-title">{{field "title"}}</h1>
1522
+ <div class="post-meta">
1523
+ <time datetime="{{content.published_at}}" class="post-date">
1524
+ {{#if content.published_at}}
1525
+ {{formatDate content.published_at}}
1526
+ {{/if}}
1527
+ </time>
1528
+ </div>
1529
+ </div>
1530
+ </header>
1531
+
1532
+ <div class="post-body container">
1533
+ {{#if (field "content")}}
1534
+ <div class="entry-content">{{{field "content"}}}</div>
1535
+ {{else if (field "blocks")}}
1536
+ <div class="entry-content">
1537
+ {{#each fields.blocks}}
1538
+ {{#if (eq type 'heading')}}
1539
+ <h{{level}}>{{content}}</h{{level}}>
1540
+ {{else if (eq type 'paragraph')}}
1541
+ <p>{{content}}</p>
1542
+ {{else if (eq type 'image')}}
1543
+ <figure><img src="{{content.url}}" alt="{{content.alt}}" /></figure>
1544
+ {{/if}}
1545
+ {{/each}}
1546
+ </div>
1547
+ {{/if}}
1548
+ </div>
1549
+
1550
+ <footer class="post-footer">
1551
+ <div class="container">
1552
+ <nav class="post-nav" aria-label="Post navigation">
1553
+ {{#if prevPost}}
1554
+ <a href="{{prevPost.url || ('/' + page.type + '/' + prevPost.slug)}}" class="post-nav__prev" rel="prev">
1555
+ <span class="post-nav__label">Previous article</span>
1556
+ <span class="post-nav__title">{{prevPost.title}}</span>
1557
+ </a>
1558
+ {{/if}}
1559
+ {{#if nextPost}}
1560
+ <a href="{{nextPost.url || ('/' + page.type + '/' + nextPost.slug)}}" class="post-nav__next" rel="next">
1561
+ <span class="post-nav__label">Next article</span>
1562
+ <span class="post-nav__title">{{nextPost.title}}</span>
1563
+ </a>
1564
+ {{/if}}
1565
+ </nav>
1566
+ </div>
1567
+ </footer>
1568
+ </article>
1569
+
1570
+ {{#if jsonLd}}
1571
+ <script type="application/ld+json">{{{jsonLd}}}</script>
1572
+ {{/if}}
1573
+ `,
1574
+ "src/theme.css": `/**
1575
+ * Tema Default do OkCMS — Design System CSS
1576
+ * Engine: css | Isolation: manual
1577
+ * Source: src/theme.css → dist/theme.css
1578
+ */
1579
+
1580
+ /* ==========================================================================
1581
+ CSS Custom Properties (Design Tokens)
1582
+ ========================================================================== */
1583
+
1584
+ [data-theme="default"] {
1585
+ /* Colors - Light theme */
1586
+ --color-primary: #2563eb;
1587
+ --color-primary-hover: #1d4ed8;
1588
+ --color-primary-light: #dbeafe;
1589
+ --color-primary-contrast: #ffffff;
1590
+
1591
+ --color-success: #16a34a;
1592
+ --color-success-hover: #15803d;
1593
+ --color-success-light: #dcfce7;
1594
+
1595
+ --color-warning: #f59e0b;
1596
+ --color-warning-hover: #d97706;
1597
+ --color-warning-light: #fef3c7;
1598
+
1599
+ --color-error: #dc2626;
1600
+ --color-error-hover: #b91c1c;
1601
+ --color-error-light: #fee2e2;
1602
+
1603
+ --color-ink: #111827;
1604
+ --color-ink-muted: #6b7280;
1605
+ --color-ink-subtle: #9ca3af;
1606
+
1607
+ --color-surface: #ffffff;
1608
+ --color-surface-elevated: #f9fafb;
1609
+ --color-surface-hover: #f3f4f6;
1610
+
1611
+ --color-border: #e5e7eb;
1612
+ --color-border-strong: #d1d5db;
1613
+
1614
+ --color-focus: #2563eb;
1615
+ --color-focus-ring: rgba(37, 99, 235, 0.4);
1616
+
1617
+ /* Typography */
1618
+ --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
1619
+ --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
1620
+
1621
+ --text-xs: 0.75rem; /* 12px */
1622
+ --text-sm: 0.875rem; /* 14px */
1623
+ --text-base: 1rem; /* 16px */
1624
+ --text-lg: 1.125rem; /* 18px */
1625
+ --text-xl: 1.25rem; /* 20px */
1626
+ --text-2xl: 1.5rem; /* 24px */
1627
+ --text-3xl: 1.875rem; /* 30px */
1628
+ --text-4xl: 2.25rem; /* 36px */
1629
+
1630
+ --leading-tight: 1.1;
1631
+ --leading-normal: 1.5;
1632
+ --leading-relaxed: 1.625;
1633
+
1634
+ /* Spacing */
1635
+ --space-1: 0.25rem; /* 4px */
1636
+ --space-2: 0.5rem; /* 8px */
1637
+ --space-3: 0.75rem; /* 12px */
1638
+ --space-4: 1rem; /* 16px */
1639
+ --space-5: 1.25rem; /* 20px */
1640
+ --space-6: 1.5rem; /* 24px */
1641
+ --space-8: 2rem; /* 32px */
1642
+ --space-10: 2.5rem; /* 40px */
1643
+ --space-12: 3rem; /* 48px */
1644
+ --space-16: 4rem; /* 64px */
1645
+
1646
+ /* Border Radius */
1647
+ --radius-sm: 0.25rem;
1648
+ --radius-md: 0.375rem;
1649
+ --radius-lg: 0.5rem;
1650
+ --radius-xl: 0.75rem;
1651
+ --radius-full: 9999px;
1652
+
1653
+ /* Shadows */
1654
+ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
1655
+ --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
1656
+ --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
1657
+
1658
+ /* Transitions */
1659
+ --transition-fast: 150ms ease;
1660
+ --transition-normal: 250ms ease;
1661
+
1662
+ /* Container */
1663
+ --container-max: 1200px;
1664
+ --container-padding: var(--space-4);
1665
+
1666
+ /* Header height */
1667
+ --header-height: 72px;
1668
+ }
1669
+
1670
+ /* Dark mode support */
1671
+ @media (prefers-color-scheme: dark) {
1672
+ [data-theme="default"] {
1673
+ --color-primary: #3b82f6;
1674
+ --color-primary-hover: #60a5fa;
1675
+ --color-primary-light: #1e3a5f;
1676
+
1677
+ --color-success: #22c55e;
1678
+ --color-success-light: #14532d;
1679
+
1680
+ --color-warning: #fbbf24;
1681
+ --color-warning-light: #422006;
1682
+
1683
+ --color-error: #ef4444;
1684
+ --color-error-light: #7f1d1d;
1685
+
1686
+ --color-ink: #f9fafb;
1687
+ --color-ink-muted: #9ca3af;
1688
+ --color-ink-subtle: #6b7280;
1689
+
1690
+ --color-surface: #111827;
1691
+ --color-surface-elevated: #1f2937;
1692
+ --color-surface-hover: #374151;
1693
+
1694
+ --color-border: #374151;
1695
+ --color-border-strong: #4b5563;
1696
+
1697
+ --color-focus: #3b82f6;
1698
+ --color-focus-ring: rgba(59, 130, 246, 0.4);
1699
+ }
1700
+ }
1701
+
1702
+ /* ==========================================================================
1703
+ Reset & Base
1704
+ ========================================================================== */
1705
+
1706
+ [data-theme="default"] *,
1707
+ [data-theme="default"] *::before,
1708
+ [data-theme="default"] *::after {
1709
+ box-sizing: border-box;
1710
+ }
1711
+
1712
+ [data-theme="default"] {
1713
+ margin: 0;
1714
+ padding: 0;
1715
+ font-family: var(--font-sans);
1716
+ font-size: var(--text-base);
1717
+ line-height: var(--leading-normal);
1718
+ color: var(--color-ink);
1719
+ background-color: var(--color-surface);
1720
+ -webkit-font-smoothing: antialiased;
1721
+ -moz-osx-font-smoothing: grayscale;
1722
+ }
1723
+
1724
+ [data-theme="default"] html {
1725
+ scroll-behavior: smooth;
1726
+ }
1727
+
1728
+ [data-theme="default"] body {
1729
+ min-height: 100vh;
1730
+ display: flex;
1731
+ flex-direction: column;
1732
+ }
1733
+
1734
+ /* ==========================================================================
1735
+ Typography
1736
+ ========================================================================== */
1737
+
1738
+ [data-theme="default"] h1,
1739
+ [data-theme="default"] h2,
1740
+ [data-theme="default"] h3,
1741
+ [data-theme="default"] h4,
1742
+ [data-theme="default"] h5,
1743
+ [data-theme="default"] h6 {
1744
+ margin: 0 0 var(--space-4);
1745
+ line-height: var(--leading-tight);
1746
+ font-weight: 700;
1747
+ color: var(--color-ink);
1748
+ }
1749
+
1750
+ [data-theme="default"] h1 { font-size: var(--text-4xl); }
1751
+ [data-theme="default"] h2 { font-size: var(--text-3xl); }
1752
+ [data-theme="default"] h3 { font-size: var(--text-2xl); }
1753
+ [data-theme="default"] h4 { font-size: var(--text-xl); }
1754
+ [data-theme="default"] h5 { font-size: var(--text-lg); }
1755
+ [data-theme="default"] h6 { font-size: var(--text-base); }
1756
+
1757
+ [data-theme="default"] p {
1758
+ margin: 0 0 var(--space-4);
1759
+ line-height: var(--leading-relaxed);
1760
+ }
1761
+
1762
+ [data-theme="default"] a {
1763
+ color: var(--color-primary);
1764
+ text-decoration: none;
1765
+ transition: color var(--transition-fast);
1766
+ }
1767
+
1768
+ [data-theme="default"] a:hover {
1769
+ color: var(--color-primary-hover);
1770
+ text-decoration: underline;
1771
+ }
1772
+
1773
+ [data-theme="default"] strong { font-weight: 600; }
1774
+ [data-theme="default"] em { font-style: italic; }
1775
+
1776
+ [data-theme="default"] code {
1777
+ font-family: var(--font-mono);
1778
+ font-size: 0.875em;
1779
+ background: var(--color-surface-hover);
1780
+ padding: 0.125rem 0.375rem;
1781
+ border-radius: var(--radius-sm);
1782
+ }
1783
+
1784
+ [data-theme="default"] pre {
1785
+ font-family: var(--font-mono);
1786
+ font-size: var(--text-sm);
1787
+ line-height: var(--leading-normal);
1788
+ background: var(--color-ink);
1789
+ color: var(--color-surface);
1790
+ padding: var(--space-4);
1791
+ border-radius: var(--radius-md);
1792
+ overflow-x: auto;
1793
+ margin: var(--space-4) 0;
1794
+ }
1795
+
1796
+ [data-theme="default"] pre code {
1797
+ background: none;
1798
+ padding: 0;
1799
+ font-size: inherit;
1800
+ }
1801
+
1802
+ [data-theme="default"] blockquote {
1803
+ margin: var(--space-6) 0;
1804
+ padding: var(--space-4) var(--space-6);
1805
+ border-left: 4px solid var(--color-primary);
1806
+ background: var(--color-primary-light);
1807
+ color: var(--color-ink);
1808
+ border-radius: 0 var(--radius-md) var(--radius-md) 0;
1809
+ }
1810
+
1811
+ [data-theme="default"] ul,
1812
+ [data-theme="default"] ol {
1813
+ margin: var(--space-4) 0;
1814
+ padding-left: var(--space-6);
1815
+ }
1816
+
1817
+ [data-theme="default"] li { margin: var(--space-2) 0; }
1818
+
1819
+ [data-theme="default"] hr {
1820
+ border: none;
1821
+ border-top: 1px solid var(--color-border);
1822
+ margin: var(--space-8) 0;
1823
+ }
1824
+
1825
+ /* ==========================================================================
1826
+ Layout Utilities
1827
+ ========================================================================== */
1828
+
1829
+ [data-theme="default"] .container {
1830
+ width: 100%;
1831
+ max-width: var(--container-max);
1832
+ margin: 0 auto;
1833
+ padding: 0 var(--container-padding);
1834
+ }
1835
+
1836
+ /* ==========================================================================
1837
+ Buttons
1838
+ ========================================================================== */
1839
+
1840
+ [data-theme="default"] .btn {
1841
+ display: inline-flex;
1842
+ align-items: center;
1843
+ justify-content: center;
1844
+ gap: var(--space-2);
1845
+ padding: var(--space-2) var(--space-5);
1846
+ font-size: var(--text-sm);
1847
+ font-weight: 600;
1848
+ line-height: 1.5;
1849
+ border: 2px solid transparent;
1850
+ border-radius: var(--radius-md);
1851
+ cursor: pointer;
1852
+ transition: all var(--transition-fast);
1853
+ text-decoration: none;
1854
+ white-space: nowrap;
1855
+ }
1856
+
1857
+ [data-theme="default"] .btn:disabled {
1858
+ opacity: 0.6;
1859
+ cursor: not-allowed;
1860
+ }
1861
+
1862
+ [data-theme="default"] .btn-primary {
1863
+ background: var(--color-primary);
1864
+ border-color: var(--color-primary);
1865
+ color: var(--color-primary-contrast);
1866
+ }
1867
+
1868
+ [data-theme="default"] .btn-primary:hover:not(:disabled) {
1869
+ background: var(--color-primary-hover);
1870
+ border-color: var(--color-primary-hover);
1871
+ color: var(--color-primary-contrast);
1872
+ text-decoration: none;
1873
+ }
1874
+
1875
+ [data-theme="default"] .btn-secondary {
1876
+ background: var(--color-surface);
1877
+ border-color: var(--color-border);
1878
+ color: var(--color-ink);
1879
+ }
1880
+
1881
+ [data-theme="default"] .btn-secondary:hover:not(:disabled) {
1882
+ background: var(--color-surface-hover);
1883
+ border-color: var(--color-border-strong);
1884
+ text-decoration: none;
1885
+ }
1886
+
1887
+ [data-theme="default"] .btn-outline {
1888
+ background: transparent;
1889
+ border-color: var(--color-primary);
1890
+ color: var(--color-primary);
1891
+ }
1892
+
1893
+ [data-theme="default"] .btn-outline:hover:not(:disabled) {
1894
+ background: var(--color-primary-light);
1895
+ text-decoration: none;
1896
+ }
1897
+
1898
+ /* ==========================================================================
1899
+ Forms
1900
+ ========================================================================== */
1901
+
1902
+ [data-theme="default"] .form-group {
1903
+ margin-bottom: var(--space-4);
1904
+ }
1905
+
1906
+ [data-theme="default"] label {
1907
+ display: block;
1908
+ margin-bottom: var(--space-2);
1909
+ font-weight: 500;
1910
+ color: var(--color-ink);
1911
+ }
1912
+
1913
+ [data-theme="default"] input[type="text"],
1914
+ [data-theme="default"] input[type="email"],
1915
+ [data-theme="default"] input[type="url"],
1916
+ [data-theme="default"] input[type="password"],
1917
+ [data-theme="default"] input[type="search"],
1918
+ [data-theme="default"] textarea,
1919
+ [data-theme="default"] select {
1920
+ width: 100%;
1921
+ padding: var(--space-2) var(--space-3);
1922
+ font-size: var(--text-base);
1923
+ font-family: inherit;
1924
+ line-height: var(--leading-normal);
1925
+ color: var(--color-ink);
1926
+ background: var(--color-surface);
1927
+ border: 1px solid var(--color-border);
1928
+ border-radius: var(--radius-md);
1929
+ transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
1930
+ }
1931
+
1932
+ [data-theme="default"] input:focus,
1933
+ [data-theme="default"] textarea:focus,
1934
+ [data-theme="default"] select:focus {
1935
+ outline: none;
1936
+ border-color: var(--color-focus);
1937
+ box-shadow: 0 0 0 3px var(--color-focus-ring);
1938
+ }
1939
+
1940
+ [data-theme="default"] textarea {
1941
+ min-height: 120px;
1942
+ resize: vertical;
1943
+ }
1944
+
1945
+ [data-theme="default"] .form-row {
1946
+ display: grid;
1947
+ gap: var(--space-4);
1948
+ }
1949
+
1950
+ [data-theme="default"] .form-row.two-cols {
1951
+ grid-template-columns: repeat(2, 1fr);
1952
+ }
1953
+
1954
+ /* ==========================================================================
1955
+ Site Header / Navigation
1956
+ ========================================================================== */
1957
+
1958
+ [data-theme="default"] .site-header {
1959
+ position: sticky;
1960
+ top: 0;
1961
+ z-index: 100;
1962
+ height: var(--header-height);
1963
+ background: var(--color-surface);
1964
+ border-bottom: 1px solid var(--color-border);
1965
+ }
1966
+
1967
+ [data-theme="default"] .nav {
1968
+ display: flex;
1969
+ align-items: center;
1970
+ justify-content: space-between;
1971
+ height: 100%;
1972
+ max-width: var(--container-max);
1973
+ margin: 0 auto;
1974
+ padding: 0 var(--container-padding);
1975
+ }
1976
+
1977
+ [data-theme="default"] .site-brand {
1978
+ font-size: var(--text-xl);
1979
+ font-weight: 700;
1980
+ color: var(--color-ink);
1981
+ text-decoration: none;
1982
+ }
1983
+
1984
+ [data-theme="default"] .site-brand:hover {
1985
+ color: var(--color-primary);
1986
+ text-decoration: none;
1987
+ }
1988
+
1989
+ [data-theme="default"] .nav-menu {
1990
+ display: flex;
1991
+ align-items: center;
1992
+ gap: var(--space-6);
1993
+ list-style: none;
1994
+ margin: 0;
1995
+ padding: 0;
1996
+ }
1997
+
1998
+ [data-theme="default"] .nav-menu a {
1999
+ font-size: var(--text-sm);
2000
+ font-weight: 500;
2001
+ color: var(--color-ink-muted);
2002
+ text-decoration: none;
2003
+ padding: var(--space-1) 0;
2004
+ transition: color var(--transition-fast);
2005
+ }
2006
+
2007
+ [data-theme="default"] .nav-menu a:hover {
2008
+ color: var(--color-primary);
2009
+ text-decoration: none;
2010
+ }
2011
+
2012
+ /* ==========================================================================
2013
+ Hero Section
2014
+ ========================================================================== */
2015
+
2016
+ [data-theme="default"] .hero {
2017
+ padding: var(--space-16) 0;
2018
+ text-align: center;
2019
+ background: linear-gradient(180deg, var(--color-surface-elevated) 0%, var(--color-surface) 100%);
2020
+ }
2021
+
2022
+ [data-theme="default"] .hero-content {
2023
+ max-width: var(--container-max);
2024
+ margin: 0 auto;
2025
+ padding: 0 var(--container-padding);
2026
+ width: 100%;
2027
+ box-sizing: border-box;
2028
+ }
2029
+
2030
+ [data-theme="default"] .hero h1 {
2031
+ font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
2032
+ margin-bottom: var(--space-4);
2033
+ }
2034
+
2035
+ [data-theme="default"] .hero-subtitle {
2036
+ font-size: var(--text-xl);
2037
+ color: var(--color-ink-muted);
2038
+ margin-bottom: var(--space-8);
2039
+ }
2040
+
2041
+ [data-theme="default"] .hero .btn {
2042
+ font-size: var(--text-base);
2043
+ padding: var(--space-3) var(--space-8);
2044
+ }
2045
+
2046
+ /* ==========================================================================
2047
+ Sections
2048
+ ========================================================================== */
2049
+
2050
+ [data-theme="default"] section {
2051
+ padding: var(--space-12) 0;
2052
+ }
2053
+
2054
+ [data-theme="default"] .container {
2055
+ width: 100%;
2056
+ max-width: var(--container-max);
2057
+ margin: 0 auto;
2058
+ padding: 0 var(--container-padding);
2059
+ }
2060
+
2061
+ [data-theme="default"] .section-header {
2062
+ text-align: center;
2063
+ margin-bottom: var(--space-10);
2064
+ }
2065
+
2066
+ [data-theme="default"] .section-header h2 {
2067
+ font-size: var(--text-3xl);
2068
+ margin-bottom: var(--space-2);
2069
+ }
2070
+
2071
+ /* ==========================================================================
2072
+ About Preview
2073
+ ========================================================================== */
2074
+
2075
+ [data-theme="default"] .about-preview {
2076
+ background: var(--color-surface-elevated);
2077
+ }
2078
+
2079
+ [data-theme="default"] .about-content {
2080
+ max-width: 720px;
2081
+ margin: 0 auto var(--space-6);
2082
+ text-align: center;
2083
+ }
2084
+
2085
+ [data-theme="default"] .about-content h2 {
2086
+ text-align: center;
2087
+ }
2088
+
2089
+ /* ==========================================================================
2090
+ Posts Grid / Cards
2091
+ ========================================================================== */
2092
+
2093
+ [data-theme="default"] .posts-grid {
2094
+ display: grid;
2095
+ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
2096
+ gap: var(--space-6);
2097
+ }
2098
+
2099
+ [data-theme="default"] .post-card {
2100
+ display: flex;
2101
+ flex-direction: column;
2102
+ background: var(--color-surface);
2103
+ border: 1px solid var(--color-border);
2104
+ border-radius: var(--radius-lg);
2105
+ overflow: hidden;
2106
+ transition: box-shadow var(--transition-normal), border-color var(--transition-fast);
2107
+ }
2108
+
2109
+ [data-theme="default"] .post-card:hover {
2110
+ box-shadow: var(--shadow-lg);
2111
+ border-color: var(--color-border-strong);
2112
+ }
2113
+
2114
+ [data-theme="default"] .post-card__image {
2115
+ margin: 0;
2116
+ aspect-ratio: 16 / 9;
2117
+ overflow: hidden;
2118
+ }
2119
+
2120
+ [data-theme="default"] .post-card__image img {
2121
+ width: 100%;
2122
+ height: 100%;
2123
+ object-fit: cover;
2124
+ transition: transform var(--transition-normal);
2125
+ }
2126
+
2127
+ [data-theme="default"] .post-card:hover .post-card__image img {
2128
+ transform: scale(1.05);
2129
+ }
2130
+
2131
+ [data-theme="default"] .post-card__content {
2132
+ display: flex;
2133
+ flex-direction: column;
2134
+ flex: 1;
2135
+ padding: var(--space-5);
2136
+ }
2137
+
2138
+ [data-theme="default"] .post-card__header {
2139
+ margin-bottom: var(--space-2);
2140
+ }
2141
+
2142
+ [data-theme="default"] .post-card__date {
2143
+ display: inline-block;
2144
+ font-size: var(--text-xs);
2145
+ color: var(--color-ink-subtle);
2146
+ }
2147
+
2148
+ [data-theme="default"] .post-card__title {
2149
+ font-size: var(--text-lg);
2150
+ margin: var(--space-2) 0;
2151
+ line-height: var(--leading-tight);
2152
+ }
2153
+
2154
+ [data-theme="default"] .post-card__title a {
2155
+ color: var(--color-ink);
2156
+ text-decoration: none;
2157
+ }
2158
+
2159
+ [data-theme="default"] .post-card__title a:hover {
2160
+ color: var(--color-primary);
2161
+ text-decoration: underline;
2162
+ }
2163
+
2164
+ [data-theme="default"] .post-card__excerpt {
2165
+ flex: 1;
2166
+ font-size: var(--text-sm);
2167
+ color: var(--color-ink-muted);
2168
+ line-height: var(--leading-relaxed);
2169
+ margin-bottom: var(--space-4);
2170
+ }
2171
+
2172
+ [data-theme="default"] .post-card .btn {
2173
+ align-self: flex-start;
2174
+ margin-top: auto;
2175
+ }
2176
+
2177
+ /* ==========================================================================
2178
+ Single Post
2179
+ ========================================================================== */
2180
+
2181
+ [data-theme="default"] .post-single {
2182
+ padding: var(--space-12) 0 var(--space-16);
2183
+ }
2184
+
2185
+ [data-theme="default"] .post-header {
2186
+ margin-bottom: var(--space-8);
2187
+ }
2188
+
2189
+ [data-theme="default"] .post-title {
2190
+ font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
2191
+ margin-bottom: var(--space-3);
2192
+ }
2193
+
2194
+ [data-theme="default"] .post-meta {
2195
+ display: flex;
2196
+ align-items: center;
2197
+ gap: var(--space-4);
2198
+ font-size: var(--text-sm);
2199
+ color: var(--color-ink-muted);
2200
+ }
2201
+
2202
+ [data-theme="default"] .post-date {
2203
+ font-weight: 500;
2204
+ }
2205
+
2206
+ [data-theme="default"] .post-body {
2207
+ max-width: 800px;
2208
+ margin: 0 auto var(--space-12);
2209
+ font-size: var(--text-lg);
2210
+ line-height: var(--leading-relaxed);
2211
+ }
2212
+
2213
+ [data-theme="default"] .post-body p {
2214
+ margin-bottom: var(--space-5);
2215
+ }
2216
+
2217
+ [data-theme="default"] .post-body h2 {
2218
+ font-size: var(--text-2xl);
2219
+ margin-top: var(--space-10);
2220
+ margin-bottom: var(--space-4);
2221
+ padding-top: var(--space-6);
2222
+ border-top: 1px solid var(--color-border);
2223
+ }
2224
+
2225
+ [data-theme="default"] .post-body h3 {
2226
+ font-size: var(--text-xl);
2227
+ margin-top: var(--space-8);
2228
+ margin-bottom: var(--space-3);
2229
+ }
2230
+
2231
+ [data-theme="default"] .post-body ul,
2232
+ [data-theme="default"] .post-body ol {
2233
+ margin: var(--space-4) 0;
2234
+ padding-left: var(--space-6);
2235
+ }
2236
+
2237
+ [data-theme="default"] .post-body blockquote {
2238
+ margin: var(--space-6) 0;
2239
+ padding: var(--space-4) var(--space-6);
2240
+ border-left: 4px solid var(--color-primary);
2241
+ background: var(--color-primary-light);
2242
+ color: var(--color-ink);
2243
+ border-radius: 0 var(--radius-md) var(--radius-md) 0;
2244
+ }
2245
+
2246
+ [data-theme="default"] .post-footer {
2247
+ padding-top: var(--space-8);
2248
+ border-top: 1px solid var(--color-border);
2249
+ }
2250
+
2251
+ [data-theme="default"] .post-nav {
2252
+ display: flex;
2253
+ justify-content: space-between;
2254
+ gap: var(--space-4);
2255
+ }
2256
+
2257
+ [data-theme="default"] .post-nav__prev,
2258
+ [data-theme="default"] .post-nav__next {
2259
+ display: flex;
2260
+ flex-direction: column;
2261
+ gap: var(--space-1);
2262
+ padding: var(--space-3) var(--space-4);
2263
+ border: 1px solid var(--color-border);
2264
+ border-radius: var(--radius-md);
2265
+ text-decoration: none;
2266
+ transition: all var(--transition-fast);
2267
+ }
2268
+
2269
+ [data-theme="default"] .post-nav__prev:hover,
2270
+ [data-theme="default"] .post-nav__next:hover {
2271
+ border-color: var(--color-primary);
2272
+ background: var(--color-primary-light);
2273
+ text-decoration: none;
2274
+ }
2275
+
2276
+ [data-theme="default"] .post-nav__label {
2277
+ font-size: var(--text-xs);
2278
+ font-weight: 600;
2279
+ text-transform: uppercase;
2280
+ letter-spacing: 0.05em;
2281
+ color: var(--color-ink-subtle);
2282
+ }
2283
+
2284
+ [data-theme="default"] .post-nav__title {
2285
+ font-size: var(--text-sm);
2286
+ font-weight: 500;
2287
+ color: var(--color-ink);
2288
+ }
2289
+
2290
+ /* ==========================================================================
2291
+ Page (Generic)
2292
+ ========================================================================== */
2293
+
2294
+ [data-theme="default"] .page-header {
2295
+ padding: var(--space-12) 0 var(--space-6);
2296
+ border-bottom: 1px solid var(--color-border);
2297
+ }
2298
+
2299
+ [data-theme="default"] .page-header h1 {
2300
+ font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
2301
+ margin-bottom: var(--space-3);
2302
+ }
2303
+
2304
+ [data-theme="default"] .page-excerpt {
2305
+ font-size: var(--text-lg);
2306
+ color: var(--color-ink-muted);
2307
+ max-width: 720px;
2308
+ }
2309
+
2310
+ [data-theme="default"] .page-content {
2311
+ padding: var(--space-10) 0 var(--space-16);
2312
+ }
2313
+
2314
+ [data-theme="default"] .entry-content h2 {
2315
+ font-size: var(--text-2xl);
2316
+ margin-top: var(--space-10);
2317
+ margin-bottom: var(--space-4);
2318
+ }
2319
+
2320
+ [data-theme="default"] .entry-content h3 {
2321
+ font-size: var(--text-xl);
2322
+ margin-top: var(--space-8);
2323
+ margin-bottom: var(--space-3);
2324
+ }
2325
+
2326
+ [data-theme="default"] .entry-content p {
2327
+ margin-bottom: var(--space-5);
2328
+ }
2329
+
2330
+ /* ==========================================================================
2331
+ Archive / Blog Listing
2332
+ ========================================================================== */
2333
+
2334
+ [data-theme="default"] .archive {
2335
+ padding: var(--space-12) 0 var(--space-16);
2336
+ }
2337
+
2338
+ [data-theme="default"] .archive-header {
2339
+ text-align: center;
2340
+ margin-bottom: var(--space-10);
2341
+ }
2342
+
2343
+ [data-theme="default"] .archive-title {
2344
+ font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
2345
+ margin-bottom: var(--space-3);
2346
+ }
2347
+
2348
+ [data-theme="default"] .archive-description {
2349
+ font-size: var(--text-lg);
2350
+ color: var(--color-ink-muted);
2351
+ max-width: 720px;
2352
+ margin: 0 auto;
2353
+ }
2354
+
2355
+ /* ==========================================================================
2356
+ Pagination
2357
+ ========================================================================== */
2358
+
2359
+ [data-theme="default"] .pagination {
2360
+ display: flex;
2361
+ align-items: center;
2362
+ justify-content: center;
2363
+ gap: var(--space-2);
2364
+ margin-top: var(--space-10);
2365
+ flex-wrap: wrap;
2366
+ }
2367
+
2368
+ [data-theme="default"] .pagination a,
2369
+ [data-theme="default"] .pagination span {
2370
+ display: inline-flex;
2371
+ align-items: center;
2372
+ justify-content: center;
2373
+ min-width: 44px;
2374
+ height: 44px;
2375
+ padding: 0 var(--space-3);
2376
+ font-weight: 500;
2377
+ border: 1px solid var(--color-border);
2378
+ border-radius: var(--radius-md);
2379
+ color: var(--color-ink);
2380
+ text-decoration: none;
2381
+ transition: all var(--transition-fast);
2382
+ }
2383
+
2384
+ [data-theme="default"] .pagination a:hover {
2385
+ border-color: var(--color-primary);
2386
+ background: var(--color-primary-light);
2387
+ color: var(--color-primary);
2388
+ text-decoration: none;
2389
+ }
2390
+
2391
+ [data-theme="default"] .pagination .current {
2392
+ background: var(--color-primary);
2393
+ border-color: var(--color-primary);
2394
+ color: var(--color-primary-contrast);
2395
+ }
2396
+
2397
+ /* ==========================================================================
2398
+ Contact Section
2399
+ ========================================================================== */
2400
+
2401
+ [data-theme="default"] .contact {
2402
+ background: var(--color-surface-elevated);
2403
+ }
2404
+
2405
+ [data-theme="default"] .contact h2 {
2406
+ text-align: center;
2407
+ margin-bottom: var(--space-2);
2408
+ }
2409
+
2410
+ [data-theme="default"] .contact-intro {
2411
+ text-align: center;
2412
+ color: var(--color-ink-muted);
2413
+ max-width: 720px;
2414
+ margin: 0 auto var(--space-8);
2415
+ }
2416
+
2417
+ [data-theme="default"] .contact-form {
2418
+ max-width: 600px;
2419
+ margin: 0 auto;
2420
+ }
2421
+
2422
+ [data-theme="default"] .contact-form .form-group {
2423
+ margin-bottom: var(--space-5);
2424
+ }
2425
+
2426
+ /* ==========================================================================
2427
+ Site Footer
2428
+ ========================================================================== */
2429
+
2430
+ [data-theme="default"] .site-footer {
2431
+ margin-top: auto;
2432
+ padding: var(--space-10) 0;
2433
+ background: var(--color-ink);
2434
+ color: var(--color-surface);
2435
+ border-top: 1px solid var(--color-border);
2436
+ }
2437
+
2438
+ [data-theme="default"] .site-footer .container {
2439
+ display: flex;
2440
+ flex-direction: column;
2441
+ align-items: center;
2442
+ gap: var(--space-6);
2443
+ text-align: center;
2444
+ }
2445
+
2446
+ [data-theme="default"] .footer-nav {
2447
+ display: flex;
2448
+ flex-wrap: wrap;
2449
+ align-items: center;
2450
+ justify-content: center;
2451
+ gap: var(--space-4) var(--space-6);
2452
+ margin: 0;
2453
+ padding: 0;
2454
+ list-style: none;
2455
+ }
2456
+
2457
+ [data-theme="default"] .footer-nav a {
2458
+ color: var(--color-ink-subtle);
2459
+ font-size: var(--text-sm);
2460
+ }
2461
+
2462
+ [data-theme="default"] .footer-nav a:hover {
2463
+ color: var(--color-primary);
2464
+ }
2465
+
2466
+ [data-theme="default"] .copyright {
2467
+ margin: 0;
2468
+ font-size: var(--text-sm);
2469
+ color: var(--color-ink-subtle);
2470
+ }
2471
+
2472
+ /* ==========================================================================
2473
+ Error 404
2474
+ ========================================================================== */
2475
+
2476
+ [data-theme="default"] .error-404 {
2477
+ min-height: 60vh;
2478
+ display: flex;
2479
+ flex-direction: column;
2480
+ align-items: center;
2481
+ justify-content: center;
2482
+ text-align: center;
2483
+ padding: var(--space-16) var(--container-padding);
2484
+ }
2485
+
2486
+ [data-theme="default"] .error-404 h1 {
2487
+ font-size: clamp(6rem, 15vw, 12rem);
2488
+ font-weight: 800;
2489
+ line-height: 1;
2490
+ color: var(--color-primary);
2491
+ margin-bottom: var(--space-4);
2492
+ }
2493
+
2494
+ [data-theme="default"] .error-404 h2 {
2495
+ font-size: var(--text-2xl);
2496
+ margin-bottom: var(--space-4);
2497
+ }
2498
+
2499
+ [data-theme="default"] .error-404 p {
2500
+ font-size: var(--text-lg);
2501
+ color: var(--color-ink-muted);
2502
+ margin-bottom: var(--space-8);
2503
+ }
2504
+
2505
+ /* ==========================================================================
2506
+ Utility Classes
2507
+ ========================================================================== */
2508
+
2509
+ [data-theme="default"] .sr-only {
2510
+ position: absolute;
2511
+ width: 1px;
2512
+ height: 1px;
2513
+ padding: 0;
2514
+ margin: -1px;
2515
+ overflow: hidden;
2516
+ clip: rect(0, 0, 0, 0);
2517
+ white-space: nowrap;
2518
+ border: 0;
2519
+ }
2520
+
2521
+ [data-theme="default"] .text-center { text-align: center; }
2522
+ [data-theme="default"] .text-left { text-align: left; }
2523
+ [data-theme="default"] .text-right { text-align: right; }
2524
+
2525
+ [data-theme="default"] .mt-0 { margin-top: 0; }
2526
+ [data-theme="default"] .mb-0 { margin-bottom: 0; }
2527
+
2528
+ [data-theme="default"] .hidden { display: none !important; }
2529
+ [data-theme="default"] .invisible { visibility: hidden; }
2530
+
2531
+ [data-theme="default"] .pagination {
2532
+ display: flex;
2533
+ align-items: center;
2534
+ justify-content: center;
2535
+ gap: 1rem;
2536
+ margin-top: 2rem;
2537
+ }
2538
+
2539
+ [data-theme="default"] .pagination a {
2540
+ color: var(--color-brand);
2541
+ font-weight: 600;
2542
+ }
2543
+
2544
+ /* ==========================================================================
2545
+ Responsive
2546
+ ========================================================================== */
2547
+
2548
+ @media (max-width: 768px) {
2549
+ [data-theme="default"] .nav-menu {
2550
+ display: none; /* Could be replaced with mobile menu toggle */
2551
+ }
2552
+
2553
+ [data-theme="default"] .posts-grid {
2554
+ grid-template-columns: 1fr;
2555
+ }
2556
+
2557
+ [data-theme="default"] .form-row.two-cols {
2558
+ grid-template-columns: 1fr;
2559
+ }
2560
+
2561
+ [data-theme="default"] .post-nav {
2562
+ flex-direction: column;
2563
+ }
2564
+ }
2565
+
2566
+ /* ==========================================================================
2567
+ Print
2568
+ ========================================================================== */
2569
+
2570
+ @media print {
2571
+ [data-theme="default"] .site-header,
2572
+ [data-theme="default"] .site-footer,
2573
+ [data-theme="default"] .btn,
2574
+ [data-theme="default"] .post-nav,
2575
+ [data-theme="default"] .pagination {
2576
+ display: none !important;
2577
+ }
2578
+
2579
+ [data-theme="default"] .post-body {
2580
+ max-width: 100%;
2581
+ }
2582
+
2583
+ [data-theme="default"] a {
2584
+ text-decoration: underline;
2585
+ color: var(--color-ink);
2586
+ }
2587
+ }
2588
+ `,
2589
+ "theme.json": `{
2590
+ "name": "default",
2591
+ "version": "0.36.2",
2592
+ "description": "Default OkCMS theme — hierarchical templates with real content interpolation + Static Front Page",
2593
+ "type": "theme",
2594
+ "author": "Oktis Works",
2595
+ "compatibility": {
2596
+ "okcms": "^0.37.0"
2597
+ },
2598
+ "screenshots": [
2599
+ "screenshot.png"
2600
+ ],
2601
+ "provides": {
2602
+ "layouts": [
2603
+ "page-home",
2604
+ "page-about",
2605
+ "page-contact",
2606
+ "page-blog",
2607
+ "post-first-post",
2608
+ "post-second-post",
2609
+ "page",
2610
+ "single",
2611
+ "archive",
2612
+ "index",
2613
+ "404"
2614
+ ],
2615
+ "assets": [
2616
+ "dist/theme.css"
2617
+ ]
2618
+ },
2619
+ "stylesConfig": {
2620
+ "engine": "css",
2621
+ "isolation": "manual",
2622
+ "entry": "src/theme.css",
2623
+ "output": "dist/theme.css"
2624
+ },
2625
+ "settings": [
2626
+ {
2627
+ "name": "siteTitle",
2628
+ "type": "text",
2629
+ "label": "Site title",
2630
+ "default": "OkCMS"
2631
+ },
2632
+ {
2633
+ "name": "siteDescription",
2634
+ "type": "text",
2635
+ "label": "Site description",
2636
+ "default": ""
2637
+ },
2638
+ {
2639
+ "name": "contactText",
2640
+ "type": "textarea",
2641
+ "label": "Contact section text",
2642
+ "default": "Fill out the form or send us an email at hello@example.com"
2643
+ }
2644
+ ]
2645
+ }`,
2646
+ };
2647
+ /**
2648
+ * Binary files of the default theme: base64 so the source stays valid TS,
2649
+ * decoded into a Buffer on write (a string would corrupt the PNG).
2650
+ */
2651
+ export const DEFAULT_THEME_BINARY_FILES = {
2652
+ "screenshot.png": 'iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQCAYAAAByNR6YAAAIT0lEQVR4nO3WsU0EQQAEwYsOl9gxsLBfGARxJNHPa9gqqf0x57oBAEhdrx4AAPDfOFgAADEHCwAg5mABAMQcLACAmIMFABBzsAAAYg4WAEDMwQIAiDlYAAAxBwsAIOZgAQDEHCwAgJiDBQAQc7AAAGIOFgBAzMECAIg5WAAAMQcLACDmYAEAxBwsAICYgwUAEHOwAABiDhYAQMzBAgCIOVgAADEHCwAg5mABAMQcLACAmIMFABBzsAAAYg4WAEDMwQIAiDlYAAAxBwsAIOZgAQDEHCwAgJiDBQAQc7AAAGIOFgBAzMECAIg5WAAAMQcLACDmYAEAxBwsAICYgwUAEHOwAABiDhYAQMzBAgCIOVgAADEHCwAg5mABAMQcLACAmIMFABBzsAAAYg4WAEDMwQIAiDlYAAAxBwsAIOZgAQDEHCwAgJiDBQAQc7AAAGIOFgBAzMECAIg5WAAAMQcLACDmYAEAxBwsAICYgwUAEHOwAABiDhYAQMzBAgCIOVgAADEHCwAg5mABAMQcLACAmIMFABBzsAAAYg4WAEDMwQIAiDlYAAAxBwsAIOZgAQDEHCwAgJiDBQAQc7AAAGIOFgBAzMECAIg5WAAAMQcLACDmYAEAxBwsAICYgwUAEHOwAABixx2s97eHpOEAFjhYkqYCWOBgSZoKYIGDJWkqgAUOlqSpABY4WJKmAljgYEmaCmCBgyVpKoAFDpakqQAWOFiSpgJY4GBJmgpggYMlaSqABQ6WpKkAFjhYkqYCWOBgSZoKYIGDJWkqgAUOlqSpABY4WJKmAljgYEmaCmCBgyVpKoAFDpakqQAWOFiSpgJY4GBJmgpggYMlaSqABQ6WpKkAFjhYkqYCWOBgSZoKYIGDJWkqgAUOlqSpABY4WJKmAljgYEmaCmCBgyVpKoAFDpakqQAWOFiSpgJY4GBJmgpggYMlaSqABQ6WpKkAFjhYkqYCWOBgSZoKYIGDJWkqgAUOlqSpABY4WJKmAljgYEmaCmCBgyVpKoAFDpakqQAWOFiSpgJY4GBJmgpggYMlaSqABQ6WpKkAFjhYkqYCWOBgSZoKYIGDJWkqgAUOlqSpABY4WJKmAljgYEmaCmCBgyVpKoAFDpakqQAWOFiSpgJY4GBJmgpggYMlaSqABQ6WpKkAFjhYkqYCWOBgSZoKYIGDJWkqgAUOlqSpABY4WJKmAljgYEmaCmCBgyVpKoAFDpakqQAWOFiSpgJY4GBJmgpggYMlaSqABQ6WpKkAFhx3sAAAns3BAgCIOVgAADEHCwAg5mABAMQcLACAmIMFABBzsAAAYg4WAEDMwQIAiDlYAAAxBwsAIOZgAQDEHCwAgJiDBQAQc7AAAGIOFgBAzMECAIg5WAAAMQcLACDmYAEAxBwsAICYgwUAEHOwAABiDhYAQMzBAgCIOVgAADEHCwAg5mABAMQcLACAmIMFABC7Ht8/tyRJkrocLEmSpDgHS5IkKc7BkiRJinOwJEmS4hwsSZKkOAdLkiQpzsGSJEmKc7AkSZLiHCxJkqQ4B0uSJCnOwZIkSYpzsCRJkuIcLEmSpDgHS5IkKc7BkiRJinOwJEmS4hwsSZKkOAdLkiQpzsGSJEmKc7AkSZLiHCxJkqQ4B0uSJCnOwZIkSYpzsCRJkuIcLEmSpDgHS5IkKc7BkiRJinOwJEmS4hwsSZKkOAdLkiQpzsGSJEmKc7AkSZLiHCxJkqQ4B0uSJCnOwZIkSYpzsCRJkuIcLEmSpDgHS5IkKc7BkiRJinOwJEmS4hwsSZKkOAdLkiQpzsGSJEmKc7AkSZLiHCxJkqQ4B0uSJCnOwZIkSYpzsCRJkuIcLEmSpDgHS5IkKc7BkiRJinOwJEmS4hwsSZKkOAdLkiQpzsGSJEmKc7AkSZLiHCxJkqQ4B0uSJCnOwZIkSYpzsCRJkuIcLEmSpDgHS5IkKc7BkiRJinOwJEmS4hwsSZKkOAdLkiQpzsGSJEmKc7AkSZLiHCxJkqQ4B0uSJCnOwZIkSYpzsCRJkuIcLEmSpDgHS5IkKc7BkiRJinOwJEmS4hwsSZKkOAdLkiQpzsGSJEmKc7AkSZLiHCxJkqQ4B0uSJCnOwZIkSYpzsCRJkuIcLEmSpDgHS5IkKc7BkiRJirtuAABSDhYAQMzBAgCIOVgAADEHCwAg5mABAMQcLACAmIMFABA77mB9fH5JkqQXdBIHS5Ik/UknOe5gAQA8m4MFABBzsAAAYg4WAEDMwQIAiDlYAAAxBwsAIOZgAQDEHCwAgJiDBQAQc7AAAGIOFgBAzMECAIg5WAAAMQcLACDmYAEAxBwsAICYgwUAEHOwAABiDhYAQMzBAgCIOVgAADEHCwAg5mABAMQcLACAmIMFABBzsAAAYg4WAEDMwQIAiDlYAAAxBwsAIOZgAQDEHCwAgJiDBQAQc7AAAGIOFgBAzMECAIg5WAAAMQcLACDmYAEAxBwsAICYgwUAEHOwAABiDhYAQMzBAgCIOVgAADEHCwAg5mABAMQcLACAmIMFABBzsAAAYg4WAEDMwQIAiDlYAAAxBwsAIOZgAQDEHCwAgJiDBQAQc7AAAGIOFgBAzMECAIg5WAAAMQcLACDmYAEAxBwsAICYgwUAEHOwAABiDhYAQMzBAgCIOVgAADEHCwAg5mABAMQcLACAmIMFABBzsAAAYg4WAEDMwQIAiDlYAAAxBwsAIOZgAQDEHCwAgJiDBQAQc7AAAGIOFgBAzMECAIg5WAAAMQcLACDmYAEAxBwsAICYgwUAEHOwAABiDhYAQMzBAgCIOVgAADEHCwAg5mABAMQcLACAmIMFABBzsAAAYg4WAEDMwQIAiDlYAACxXxc1EEhePb4DAAAAAElFTkSuQmCC',
2653
+ };
2654
+ /** Manifest of the default theme (`theme.json`, the canonical theme name). */
2655
+ export const DEFAULT_THEME_MANIFEST = DEFAULT_THEME_FILES['theme.json'] ?? '';
2656
+ /** Default theme stylesheet, served straight from `dist/theme.css` (no build). */
2657
+ export const DEFAULT_THEME_CSS = DEFAULT_THEME_FILES['dist/theme.css'] ?? '';
2658
+ /** `.astro` hierarchy templates of the default theme, at the theme root. */
2659
+ export const THEME_TEMPLATE_FILES = Object.fromEntries(Object.entries(DEFAULT_THEME_FILES).filter(([file]) => file.endsWith('.astro')));
2660
+ //# sourceMappingURL=theme-assets.js.map