@autumnsgrove/groveengine 0.8.0 → 0.8.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 (86) hide show
  1. package/dist/components/OnboardingChecklist.svelte +2 -2
  2. package/dist/components/WispButton.svelte +83 -0
  3. package/dist/components/WispButton.svelte.d.ts +49 -0
  4. package/dist/components/WispPanel.svelte +1093 -0
  5. package/dist/components/WispPanel.svelte.d.ts +49 -0
  6. package/dist/components/custom/TableOfContents.svelte +12 -1
  7. package/dist/components/quota/UpgradePrompt.svelte +1 -0
  8. package/dist/config/wisp.d.ts +145 -0
  9. package/dist/config/wisp.js +175 -0
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.js +3 -0
  12. package/dist/server/inference-client.d.ts +139 -0
  13. package/dist/server/inference-client.js +294 -0
  14. package/dist/ui/components/nature/Logo.svelte +55 -19
  15. package/dist/ui/components/nature/botanical/LeafFalling.svelte +2 -2
  16. package/dist/ui/components/nature/botanical/PetalFalling.svelte +7 -7
  17. package/dist/ui/components/nature/ground/Crocus.svelte +3 -3
  18. package/dist/ui/components/nature/ground/Daffodil.svelte +3 -3
  19. package/dist/ui/components/nature/ground/Tulip.svelte +5 -5
  20. package/dist/ui/components/nature/palette.d.ts +187 -76
  21. package/dist/ui/components/nature/palette.js +169 -81
  22. package/dist/ui/components/nature/trees/TreeCherry.svelte +3 -3
  23. package/dist/ui/components/nature/trees/TreeCherry.svelte.d.ts +1 -1
  24. package/dist/ui/components/nature/trees/TreePine.svelte +2 -2
  25. package/dist/ui/components/nature/trees/TreePine.svelte.d.ts +1 -1
  26. package/dist/ui/components/primitives/textarea/textarea.svelte +1 -1
  27. package/dist/ui/components/typography/Alagard.svelte +17 -0
  28. package/dist/ui/components/typography/Alagard.svelte.d.ts +10 -0
  29. package/dist/ui/components/typography/Atkinson.svelte +17 -0
  30. package/dist/ui/components/typography/Atkinson.svelte.d.ts +10 -0
  31. package/dist/ui/components/typography/BodoniModa.svelte +17 -0
  32. package/dist/ui/components/typography/BodoniModa.svelte.d.ts +10 -0
  33. package/dist/ui/components/typography/Calistoga.svelte +17 -0
  34. package/dist/ui/components/typography/Calistoga.svelte.d.ts +10 -0
  35. package/dist/ui/components/typography/Caveat.svelte +17 -0
  36. package/dist/ui/components/typography/Caveat.svelte.d.ts +10 -0
  37. package/dist/ui/components/typography/Cormorant.svelte +17 -0
  38. package/dist/ui/components/typography/Cormorant.svelte.d.ts +10 -0
  39. package/dist/ui/components/typography/Cozette.svelte +17 -0
  40. package/dist/ui/components/typography/Cozette.svelte.d.ts +10 -0
  41. package/dist/ui/components/typography/EBGaramond.svelte +17 -0
  42. package/dist/ui/components/typography/EBGaramond.svelte.d.ts +10 -0
  43. package/dist/ui/components/typography/FontProvider.svelte +98 -0
  44. package/dist/ui/components/typography/FontProvider.svelte.d.ts +17 -0
  45. package/dist/ui/components/typography/Fraunces.svelte +17 -0
  46. package/dist/ui/components/typography/Fraunces.svelte.d.ts +10 -0
  47. package/dist/ui/components/typography/IBMPlexMono.svelte +17 -0
  48. package/dist/ui/components/typography/IBMPlexMono.svelte.d.ts +10 -0
  49. package/dist/ui/components/typography/InstrumentSans.svelte +17 -0
  50. package/dist/ui/components/typography/InstrumentSans.svelte.d.ts +10 -0
  51. package/dist/ui/components/typography/Lexend.svelte +17 -0
  52. package/dist/ui/components/typography/Lexend.svelte.d.ts +10 -0
  53. package/dist/ui/components/typography/Lora.svelte +17 -0
  54. package/dist/ui/components/typography/Lora.svelte.d.ts +10 -0
  55. package/dist/ui/components/typography/Luciole.svelte +17 -0
  56. package/dist/ui/components/typography/Luciole.svelte.d.ts +10 -0
  57. package/dist/ui/components/typography/Manrope.svelte +17 -0
  58. package/dist/ui/components/typography/Manrope.svelte.d.ts +10 -0
  59. package/dist/ui/components/typography/Merriweather.svelte +17 -0
  60. package/dist/ui/components/typography/Merriweather.svelte.d.ts +10 -0
  61. package/dist/ui/components/typography/Nunito.svelte +17 -0
  62. package/dist/ui/components/typography/Nunito.svelte.d.ts +10 -0
  63. package/dist/ui/components/typography/OpenDyslexic.svelte +17 -0
  64. package/dist/ui/components/typography/OpenDyslexic.svelte.d.ts +10 -0
  65. package/dist/ui/components/typography/PlusJakartaSans.svelte +17 -0
  66. package/dist/ui/components/typography/PlusJakartaSans.svelte.d.ts +10 -0
  67. package/dist/ui/components/typography/Quicksand.svelte +17 -0
  68. package/dist/ui/components/typography/Quicksand.svelte.d.ts +10 -0
  69. package/dist/ui/components/typography/README.md +153 -0
  70. package/dist/ui/components/typography/index.d.ts +23 -0
  71. package/dist/ui/components/typography/index.js +42 -0
  72. package/dist/ui/components/ui/GlassCarousel.svelte +446 -0
  73. package/dist/ui/components/ui/GlassCarousel.svelte.d.ts +57 -0
  74. package/dist/ui/components/ui/GlassConfirmDialog.svelte +2 -1
  75. package/dist/ui/components/ui/GlassLogo.svelte +2 -1
  76. package/dist/ui/components/ui/GlassOverlay.svelte +1 -1
  77. package/dist/ui/components/ui/index.d.ts +1 -0
  78. package/dist/ui/components/ui/index.js +1 -0
  79. package/dist/ui/index.d.ts +1 -0
  80. package/dist/ui/index.js +2 -0
  81. package/dist/ui/vineyard/index.d.ts +9 -0
  82. package/dist/ui/vineyard/index.js +8 -0
  83. package/dist/utils/csrf.js +5 -2
  84. package/dist/utils/readability.d.ts +89 -0
  85. package/dist/utils/readability.js +204 -0
  86. package/package.json +17 -1
@@ -47,7 +47,7 @@ export const bark = {
47
47
  */
48
48
  export const earth = {
49
49
  soil: '#3e2723', // Rich forest floor
50
- mud: '#5d4037', // Wet earth
50
+ mud: '#5d4037', // Wet earth (same as bark.bark - natural connection)
51
51
  clay: '#8d6e63', // Exposed clay
52
52
  sand: '#d7ccc8', // Paths, dry ground
53
53
  stone: '#78716c', // Neutral gray rocks
@@ -68,39 +68,77 @@ export const natural = {
68
68
  birchWhite: '#f5f5f0' // Birch tree distinctive white bark
69
69
  };
70
70
  // =============================================================================
71
- // SEASONAL PALETTES
71
+ // SEASONAL PALETTES - SPRING
72
72
  // =============================================================================
73
73
  /**
74
- * Spring colors - fresh growth and renewal
75
- * Bright yellow-greens of new leaves, soft pastels of early blooms.
76
- * Organized dark-to-light for depth layering (darker = far, brighter = near).
77
- * Spring feels lighter and more pastel than the saturated summer greens.
74
+ * Spring foliage - fresh yellow-green growth
75
+ * The distinctive bright yellow-green of new spring leaves.
76
+ * Organized dark-to-light for depth layering.
78
77
  */
79
- export const spring = {
80
- // Fresh growth greens (yellow-green tint of new leaves)
78
+ export const springFoliage = {
81
79
  sprout: '#65a30d', // Dark spring green - distant new growth
82
80
  newLeaf: '#84cc16', // Classic spring lime - mid-ground
83
81
  freshGreen: '#a3e635', // Bright yellow-green - foreground
84
82
  budding: '#bef264', // Pale new leaf
85
- tender: '#d9f99d', // Very pale spring green
86
- // Sky and atmosphere
87
- clearSky: '#7dd3fc', // Clear spring morning sky
88
- softSky: '#bae6fd', // Pale spring sky
89
- // Wildflower accents
90
- buttercup: '#facc15', // Bright yellow wildflower
91
- daffodil: '#fde047', // Pale yellow daffodil
92
- crocus: '#a78bfa', // Early spring crocus purple
93
- lilac: '#c4b5fd', // Soft lilac blooms
83
+ tender: '#d9f99d' // Very pale spring green
84
+ };
85
+ /**
86
+ * Spring sky colors
87
+ * Clear, bright spring atmosphere.
88
+ */
89
+ export const springSky = {
90
+ clear: '#7dd3fc', // Clear spring morning sky
91
+ soft: '#bae6fd' // Pale spring sky
92
+ };
93
+ /**
94
+ * Wildflowers - spring and general meadow flowers
95
+ * Unified wildflower palette for all seasons.
96
+ * Used for spring wildflowers and general meadow accents.
97
+ */
98
+ export const wildflowers = {
99
+ // Yellows
100
+ buttercup: '#facc15', // Bright yellow - buttercups, dandelions
101
+ daffodil: '#fde047', // Pale yellow - daffodils
102
+ // Purples and violets
103
+ crocus: '#a78bfa', // Early spring crocus
104
+ violet: '#8b5cf6', // Wild violets
105
+ purple: '#a855f7', // Lupine, thistle
106
+ lavender: '#c4b5fd', // Distant flower masses, lilacs
107
+ // Pinks and reds
94
108
  tulipPink: '#f9a8d4', // Soft tulip pink
95
109
  tulipRed: '#fb7185', // Bright tulip red
96
- // Hills and ground
97
- hillDeep: '#166534', // Far spring hills - rich green
98
- hillMid: '#22c55e', // Mid hills - meadow green
99
- hillNear: '#86efac', // Near hills - fresh mint
100
- hillFront: '#bbf7d0' // Front hills - pale spring green
110
+ // Neutrals
111
+ white: '#fefefe' // Daisies, trillium
112
+ };
113
+ /**
114
+ * Cherry blossoms - standard summer/default
115
+ * Used for cherry trees during summer.
116
+ * Pink blooms from dense to pale.
117
+ */
118
+ export const cherryBlossoms = {
119
+ deep: '#db2777', // Dense bloom centers
120
+ standard: '#ec4899', // Standard blossom
121
+ light: '#f472b6', // Light petals
122
+ pale: '#f9a8d4', // Pale blossoms
123
+ falling: '#fbcfe8' // Falling petals, distant blooms
124
+ };
125
+ /**
126
+ * Cherry blossoms peak bloom - vibrant spring version
127
+ * Extra saturated for spring when cherry blossoms are at their most beautiful.
128
+ * One shade brighter than standard cherryBlossoms.
129
+ */
130
+ export const cherryBlossomsPeak = {
131
+ deep: '#ec4899', // Vibrant deep pink
132
+ standard: '#f472b6', // Bright cherry blossom
133
+ light: '#f9a8d4', // Soft rose petals
134
+ pale: '#fbcfe8', // Pale blush
135
+ falling: '#fce7f3' // Very pale falling petals
101
136
  };
137
+ // =============================================================================
138
+ // SEASONAL PALETTES - AUTUMN
139
+ // =============================================================================
102
140
  /**
103
- * Autumn/Fall colors
141
+ * Autumn/Fall foliage colors
104
142
  * Replaces greens for deciduous trees during autumn season.
105
143
  * Organized warm-to-bright for depth layering (dark rust = far, bright gold = near).
106
144
  * Aspen and birch use gold/honey for their signature golden fall color.
@@ -114,18 +152,6 @@ export const autumn = {
114
152
  honey: '#facc15', // Bright foreground leaves
115
153
  straw: '#fde047' // Pale dying leaves
116
154
  };
117
- /**
118
- * Cherry blossom pinks (spring/summer)
119
- * Used for cherry trees during spring bloom.
120
- * In autumn, cherry trees switch to autumnReds to mimic real cherry leaf color change.
121
- */
122
- export const pinks = {
123
- deepPink: '#db2777', // Dense bloom centers
124
- pink: '#ec4899', // Standard blossom
125
- rose: '#f472b6', // Light petals
126
- blush: '#f9a8d4', // Pale blossoms
127
- palePink: '#fbcfe8' // Falling petals, distant blooms
128
- };
129
155
  /**
130
156
  * Autumn reds for cherry/maple foliage
131
157
  * Cherry trees don't just lose pink - they turn red/crimson in fall.
@@ -138,7 +164,7 @@ export const autumnReds = {
138
164
  coral: '#fb7185' // Pale autumn accent
139
165
  };
140
166
  // =============================================================================
141
- // WINTER PALETTE
167
+ // SEASONAL PALETTES - WINTER
142
168
  // =============================================================================
143
169
  /**
144
170
  * Winter colors - frost, snow, and ice
@@ -174,7 +200,7 @@ export const winter = {
174
200
  // =============================================================================
175
201
  /**
176
202
  * Accent colors for specific components
177
- * Each category gets 1-2 unique colors that don't fit the main palettes.
203
+ * Each category gets unique colors that don't fit the main palettes.
178
204
  * These add visual interest without breaking the natural cohesion.
179
205
  */
180
206
  export const accents = {
@@ -186,13 +212,22 @@ export const accents = {
186
212
  spots: '#fefefe', // White spots on caps
187
213
  gill: '#fde8e8' // Pale pink gills underneath
188
214
  },
189
- /** Wildflower accents - purple/violet break from green monotony */
215
+ /**
216
+ * @deprecated Use the top-level `wildflowers` export instead. Will be removed in v1.0.
217
+ *
218
+ * Historical context: Flower colors were originally split between two places:
219
+ * - `spring` palette had wildflower accents (crocus, lilac, tulips, buttercup, daffodil)
220
+ * - `accents.flower` had generic flower colors (purple, violet, yellow, white, lavender)
221
+ *
222
+ * This caused confusion and duplicate values. Now unified in the top-level `wildflowers`
223
+ * palette which contains all meadow flower colors in one place.
224
+ */
190
225
  flower: {
191
- purple: '#a855f7', // Lupine, thistle
192
- violet: '#8b5cf6', // Wild violets
193
- yellow: '#fbbf24', // Buttercup, dandelion
194
- white: '#fefefe', // Daisies, trillium
195
- lavender: '#c4b5fd' // Distant flower masses
226
+ purple: wildflowers.purple,
227
+ violet: wildflowers.violet,
228
+ yellow: wildflowers.buttercup,
229
+ white: wildflowers.white,
230
+ lavender: wildflowers.lavender
196
231
  },
197
232
  /** Firefly bioluminescence - warm yellow-green glow */
198
233
  firefly: {
@@ -245,26 +280,42 @@ export const accents = {
245
280
  bluebirdBreast: '#ea580c' // Rusty orange breast
246
281
  }
247
282
  };
283
+ // =============================================================================
284
+ // MIDNIGHT BLOOM PALETTE
285
+ // =============================================================================
286
+ /**
287
+ * Midnight Bloom - the far vision
288
+ * A late-night tea café palette: deep plums, warm amber, soft golds.
289
+ * Used for the Midnight Bloom section of the roadmap and future theming.
290
+ */
291
+ export const midnightBloom = {
292
+ deepPlum: '#581c87', // Night sky depth
293
+ purple: '#7c3aed', // Soft purple glow
294
+ violet: '#8b5cf6', // Lighter accent
295
+ amber: '#f59e0b', // Lantern warmth
296
+ warmCream: '#fef3c7', // Tea steam, page glow
297
+ softGold: '#fcd34d' // Fairy lights
298
+ };
248
299
  /**
249
300
  * Get appropriate foliage colors based on season
250
301
  * Used by deciduous trees to switch from greens to seasonal palette.
251
302
  * Spring uses bright yellow-greens of new growth.
252
303
  * Autumn uses warm oranges and golds.
253
304
  * In winter, returns frosted evergreen colors (for pines that keep needles).
254
- * @example getSeasonalGreens('spring') // returns spring palette greens
305
+ * @example getSeasonalGreens('spring') // returns spring foliage mapped to greens structure
255
306
  * @example getSeasonalGreens('autumn') // returns autumn palette
256
307
  */
257
308
  export function getSeasonalGreens(season = 'summer') {
258
309
  if (season === 'spring') {
259
310
  // Fresh yellow-green spring foliage - mapped to match greens structure
260
311
  return {
261
- darkForest: spring.sprout,
262
- deepGreen: spring.sprout,
263
- grove: spring.newLeaf,
264
- meadow: spring.freshGreen,
265
- spring: spring.budding,
266
- mint: spring.budding,
267
- pale: spring.tender
312
+ darkForest: springFoliage.sprout,
313
+ deepGreen: springFoliage.sprout,
314
+ grove: springFoliage.newLeaf,
315
+ meadow: springFoliage.freshGreen,
316
+ spring: springFoliage.budding,
317
+ mint: springFoliage.budding,
318
+ pale: springFoliage.tender
268
319
  };
269
320
  }
270
321
  if (season === 'autumn') {
@@ -284,31 +335,19 @@ export function getSeasonalGreens(season = 'summer') {
284
335
  }
285
336
  return greens;
286
337
  }
287
- /**
288
- * Spring cherry blossom colors - extra vibrant for peak bloom
289
- * Spring is when cherry blossoms are at their most beautiful.
290
- * Slightly brighter and more saturated than the standard pinks.
291
- */
292
- export const springBlossoms = {
293
- deepPink: '#ec4899', // Vibrant deep pink
294
- pink: '#f472b6', // Bright cherry blossom
295
- rose: '#f9a8d4', // Soft rose petals
296
- blush: '#fbcfe8', // Pale blush
297
- palePink: '#fce7f3' // Very pale falling petals
298
- };
299
338
  /**
300
339
  * Get cherry tree colors based on season
301
340
  * Spring: Extra vibrant pink blossoms (peak bloom!)
302
341
  * Summer: Standard pink blossoms
303
342
  * Autumn: Turn red/crimson like real cherry leaves
304
343
  * Winter: Bare (no blossoms)
305
- * @example getCherryColors('spring') // returns springBlossoms (vibrant)
344
+ * @example getCherryColors('spring') // returns cherryBlossomsPeak (vibrant)
306
345
  * @example getCherryColors('autumn') // returns autumnReds palette
307
346
  */
308
347
  export function getCherryColors(season = 'spring') {
309
348
  if (season === 'spring') {
310
349
  // Peak bloom - extra vibrant pinks!
311
- return springBlossoms;
350
+ return cherryBlossomsPeak;
312
351
  }
313
352
  if (season === 'autumn') {
314
353
  return autumnReds;
@@ -317,7 +356,7 @@ export function getCherryColors(season = 'spring') {
317
356
  // Return null to indicate bare tree (no foliage to render)
318
357
  return null;
319
358
  }
320
- return pinks;
359
+ return cherryBlossoms;
321
360
  }
322
361
  /**
323
362
  * Check if a tree should be bare (no foliage) based on season
@@ -349,36 +388,85 @@ export function pickFrom(palette, keys) {
349
388
  return palette[key];
350
389
  }
351
390
  // =============================================================================
352
- // MIDNIGHT BLOOM PALETTE
391
+ // BACKWARD COMPATIBILITY ALIASES
353
392
  // =============================================================================
354
393
  /**
355
- * Midnight Bloom - the far vision
356
- * A late-night tea café palette: deep plums, warm amber, soft golds.
357
- * Used for the Midnight Bloom section of the roadmap and future theming.
394
+ * @deprecated Use `cherryBlossoms` instead. Will be removed in v1.0.
395
+ * Alias for backward compatibility with components using 'pinks'.
358
396
  */
359
- export const midnightBloom = {
360
- deepPlum: '#581c87', // Night sky depth
361
- purple: '#7c3aed', // Soft purple glow
362
- violet: '#8b5cf6', // Lighter accent
363
- amber: '#f59e0b', // Lantern warmth
364
- warmCream: '#fef3c7', // Tea steam, page glow
365
- softGold: '#fcd34d' // Fairy lights
397
+ export const pinks = {
398
+ deepPink: cherryBlossoms.deep,
399
+ pink: cherryBlossoms.standard,
400
+ rose: cherryBlossoms.light,
401
+ blush: cherryBlossoms.pale,
402
+ palePink: cherryBlossoms.falling
403
+ };
404
+ /**
405
+ * @deprecated Use `cherryBlossomsPeak` instead. Will be removed in v1.0.
406
+ * Alias for backward compatibility with components using 'springBlossoms'.
407
+ */
408
+ export const springBlossoms = {
409
+ deepPink: cherryBlossomsPeak.deep,
410
+ pink: cherryBlossomsPeak.standard,
411
+ rose: cherryBlossomsPeak.light,
412
+ blush: cherryBlossomsPeak.pale,
413
+ palePink: cherryBlossomsPeak.falling
414
+ };
415
+ /**
416
+ * @deprecated Use `springFoliage`, `wildflowers`, `springSky` instead. Will be removed in v1.0.
417
+ * Combined spring palette for backward compatibility.
418
+ * New code should import the specific palettes directly.
419
+ */
420
+ export const spring = {
421
+ // Fresh growth greens (from springFoliage)
422
+ sprout: springFoliage.sprout,
423
+ newLeaf: springFoliage.newLeaf,
424
+ freshGreen: springFoliage.freshGreen,
425
+ budding: springFoliage.budding,
426
+ tender: springFoliage.tender,
427
+ // Sky and atmosphere (from springSky)
428
+ clearSky: springSky.clear,
429
+ softSky: springSky.soft,
430
+ // Wildflower accents (from wildflowers)
431
+ buttercup: wildflowers.buttercup,
432
+ daffodil: wildflowers.daffodil,
433
+ crocus: wildflowers.crocus,
434
+ lilac: wildflowers.lavender,
435
+ tulipPink: wildflowers.tulipPink,
436
+ tulipRed: wildflowers.tulipRed,
437
+ // Hills and ground (references to greens for depth layering)
438
+ hillDeep: greens.deepGreen,
439
+ hillMid: greens.meadow,
440
+ hillNear: greens.mint,
441
+ hillFront: greens.pale
366
442
  };
367
443
  // =============================================================================
368
444
  // FULL PALETTE EXPORT
369
445
  // =============================================================================
370
446
  export const naturePalette = {
447
+ // Core
371
448
  greens,
372
449
  bark,
373
450
  earth,
374
451
  natural,
375
- spring,
376
- springBlossoms,
452
+ // Spring
453
+ springFoliage,
454
+ springSky,
455
+ wildflowers,
456
+ cherryBlossoms,
457
+ cherryBlossomsPeak,
458
+ // Autumn
377
459
  autumn,
378
- pinks,
379
460
  autumnReds,
461
+ // Winter
380
462
  winter,
463
+ // Accents
381
464
  accents,
382
- midnightBloom
465
+ // Special
466
+ midnightBloom,
467
+ // Deprecated aliases (for backward compat)
468
+ spring,
469
+ pinks,
470
+ springBlossoms
383
471
  };
384
472
  export default naturePalette;
@@ -4,8 +4,8 @@
4
4
  Licensed under AGPL-3.0
5
5
  -->
6
6
  <script lang="ts">
7
- import type { Season } from '../nature/palette';
8
- import { autumnReds, pinks, winter } from '../nature/palette';
7
+ import type { Season } from '../palette';
8
+ import { autumnReds, cherryBlossoms, winter } from '../palette';
9
9
 
10
10
  interface Props {
11
11
  class?: string;
@@ -28,7 +28,7 @@
28
28
 
29
29
  // Cherry trees: pink blossoms in spring, red/crimson foliage in autumn
30
30
  // Use $derived to react to season/color prop changes
31
- const defaultColor = $derived(season === 'autumn' ? autumnReds.scarlet : pinks.blush);
31
+ const defaultColor = $derived(season === 'autumn' ? autumnReds.scarlet : cherryBlossoms.pale);
32
32
  const blossomColor = $derived(color ?? defaultColor);
33
33
  const actualTrunkColor = $derived(
34
34
  trunkColor ?? (season === 'winter' ? winter.bareBranch : '#6B4423')
@@ -1,4 +1,4 @@
1
- import type { Season } from '../nature/palette';
1
+ import type { Season } from '../palette';
2
2
  interface Props {
3
3
  class?: string;
4
4
  color?: string;
@@ -4,8 +4,8 @@
4
4
  Licensed under AGPL-3.0
5
5
  -->
6
6
  <script lang="ts">
7
- import type { Season } from '../nature/palette';
8
- import { winter } from '../nature/palette';
7
+ import type { Season } from '../palette';
8
+ import { winter } from '../palette';
9
9
 
10
10
  interface Props {
11
11
  class?: string;
@@ -1,4 +1,4 @@
1
- import type { Season } from '../nature/palette';
1
+ import type { Season } from '../palette';
2
2
  interface Props {
3
3
  class?: string;
4
4
  color?: string;
@@ -21,4 +21,4 @@
21
21
  )}
22
22
  bind:value
23
23
  {...restProps}
24
- />
24
+ ></textarea>
@@ -0,0 +1,17 @@
1
+ <script lang="ts">
2
+ import type { Snippet } from 'svelte';
3
+ import FontProvider from './FontProvider.svelte';
4
+
5
+ interface Props {
6
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
7
+ class?: string;
8
+ style?: string;
9
+ children: Snippet;
10
+ }
11
+
12
+ let { as = 'span', class: className = '', style = '', children }: Props = $props();
13
+ </script>
14
+
15
+ <FontProvider font="alagard" {as} class={className} {style}>
16
+ {@render children()}
17
+ </FontProvider>
@@ -0,0 +1,10 @@
1
+ import type { Snippet } from 'svelte';
2
+ interface Props {
3
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
4
+ class?: string;
5
+ style?: string;
6
+ children: Snippet;
7
+ }
8
+ declare const Alagard: import("svelte").Component<Props, {}, "">;
9
+ type Alagard = ReturnType<typeof Alagard>;
10
+ export default Alagard;
@@ -0,0 +1,17 @@
1
+ <script lang="ts">
2
+ import type { Snippet } from 'svelte';
3
+ import FontProvider from './FontProvider.svelte';
4
+
5
+ interface Props {
6
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
7
+ class?: string;
8
+ style?: string;
9
+ children: Snippet;
10
+ }
11
+
12
+ let { as = 'span', class: className = '', style = '', children }: Props = $props();
13
+ </script>
14
+
15
+ <FontProvider font="atkinson" {as} class={className} {style}>
16
+ {@render children()}
17
+ </FontProvider>
@@ -0,0 +1,10 @@
1
+ import type { Snippet } from 'svelte';
2
+ interface Props {
3
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
4
+ class?: string;
5
+ style?: string;
6
+ children: Snippet;
7
+ }
8
+ declare const Atkinson: import("svelte").Component<Props, {}, "">;
9
+ type Atkinson = ReturnType<typeof Atkinson>;
10
+ export default Atkinson;
@@ -0,0 +1,17 @@
1
+ <script lang="ts">
2
+ import type { Snippet } from 'svelte';
3
+ import FontProvider from './FontProvider.svelte';
4
+
5
+ interface Props {
6
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
7
+ class?: string;
8
+ style?: string;
9
+ children: Snippet;
10
+ }
11
+
12
+ let { as = 'span', class: className = '', style = '', children }: Props = $props();
13
+ </script>
14
+
15
+ <FontProvider font="bodoni-moda" {as} class={className} {style}>
16
+ {@render children()}
17
+ </FontProvider>
@@ -0,0 +1,10 @@
1
+ import type { Snippet } from 'svelte';
2
+ interface Props {
3
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
4
+ class?: string;
5
+ style?: string;
6
+ children: Snippet;
7
+ }
8
+ declare const BodoniModa: import("svelte").Component<Props, {}, "">;
9
+ type BodoniModa = ReturnType<typeof BodoniModa>;
10
+ export default BodoniModa;
@@ -0,0 +1,17 @@
1
+ <script lang="ts">
2
+ import type { Snippet } from 'svelte';
3
+ import FontProvider from './FontProvider.svelte';
4
+
5
+ interface Props {
6
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
7
+ class?: string;
8
+ style?: string;
9
+ children: Snippet;
10
+ }
11
+
12
+ let { as = 'span', class: className = '', style = '', children }: Props = $props();
13
+ </script>
14
+
15
+ <FontProvider font="calistoga" {as} class={className} {style}>
16
+ {@render children()}
17
+ </FontProvider>
@@ -0,0 +1,10 @@
1
+ import type { Snippet } from 'svelte';
2
+ interface Props {
3
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
4
+ class?: string;
5
+ style?: string;
6
+ children: Snippet;
7
+ }
8
+ declare const Calistoga: import("svelte").Component<Props, {}, "">;
9
+ type Calistoga = ReturnType<typeof Calistoga>;
10
+ export default Calistoga;
@@ -0,0 +1,17 @@
1
+ <script lang="ts">
2
+ import type { Snippet } from 'svelte';
3
+ import FontProvider from './FontProvider.svelte';
4
+
5
+ interface Props {
6
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
7
+ class?: string;
8
+ style?: string;
9
+ children: Snippet;
10
+ }
11
+
12
+ let { as = 'span', class: className = '', style = '', children }: Props = $props();
13
+ </script>
14
+
15
+ <FontProvider font="caveat" {as} class={className} {style}>
16
+ {@render children()}
17
+ </FontProvider>
@@ -0,0 +1,10 @@
1
+ import type { Snippet } from 'svelte';
2
+ interface Props {
3
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
4
+ class?: string;
5
+ style?: string;
6
+ children: Snippet;
7
+ }
8
+ declare const Caveat: import("svelte").Component<Props, {}, "">;
9
+ type Caveat = ReturnType<typeof Caveat>;
10
+ export default Caveat;
@@ -0,0 +1,17 @@
1
+ <script lang="ts">
2
+ import type { Snippet } from 'svelte';
3
+ import FontProvider from './FontProvider.svelte';
4
+
5
+ interface Props {
6
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
7
+ class?: string;
8
+ style?: string;
9
+ children: Snippet;
10
+ }
11
+
12
+ let { as = 'span', class: className = '', style = '', children }: Props = $props();
13
+ </script>
14
+
15
+ <FontProvider font="cormorant" {as} class={className} {style}>
16
+ {@render children()}
17
+ </FontProvider>
@@ -0,0 +1,10 @@
1
+ import type { Snippet } from 'svelte';
2
+ interface Props {
3
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
4
+ class?: string;
5
+ style?: string;
6
+ children: Snippet;
7
+ }
8
+ declare const Cormorant: import("svelte").Component<Props, {}, "">;
9
+ type Cormorant = ReturnType<typeof Cormorant>;
10
+ export default Cormorant;
@@ -0,0 +1,17 @@
1
+ <script lang="ts">
2
+ import type { Snippet } from 'svelte';
3
+ import FontProvider from './FontProvider.svelte';
4
+
5
+ interface Props {
6
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
7
+ class?: string;
8
+ style?: string;
9
+ children: Snippet;
10
+ }
11
+
12
+ let { as = 'span', class: className = '', style = '', children }: Props = $props();
13
+ </script>
14
+
15
+ <FontProvider font="cozette" {as} class={className} {style}>
16
+ {@render children()}
17
+ </FontProvider>
@@ -0,0 +1,10 @@
1
+ import type { Snippet } from 'svelte';
2
+ interface Props {
3
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
4
+ class?: string;
5
+ style?: string;
6
+ children: Snippet;
7
+ }
8
+ declare const Cozette: import("svelte").Component<Props, {}, "">;
9
+ type Cozette = ReturnType<typeof Cozette>;
10
+ export default Cozette;
@@ -0,0 +1,17 @@
1
+ <script lang="ts">
2
+ import type { Snippet } from 'svelte';
3
+ import FontProvider from './FontProvider.svelte';
4
+
5
+ interface Props {
6
+ as?: 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'pre' | 'article' | 'section';
7
+ class?: string;
8
+ style?: string;
9
+ children: Snippet;
10
+ }
11
+
12
+ let { as = 'span', class: className = '', style = '', children }: Props = $props();
13
+ </script>
14
+
15
+ <FontProvider font="eb-garamond" {as} class={className} {style}>
16
+ {@render children()}
17
+ </FontProvider>