@contentrain/astro-kit 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -69,6 +69,9 @@ theme applies them to the kit's markers, and only when the site sets them:
69
69
  - `--spacing-section`: the distance between two consecutive sections; each
70
70
  `[data-kit-section]` gets half of it as vertical padding, except
71
71
  where `data-kit-spacing="none"`.
72
+ - `data-kit-brand` (the site title in Header and Footer) and `data-kit-tagline`
73
+ (Footer) take the theme's own sizes: the title from where it sits (body in
74
+ the header, a heading in the footer), the tagline from its preset.
72
75
 
73
76
  The full list is in `catalog.json` under `tokens`.
74
77
 
@@ -48,8 +48,8 @@ const line = copyright ?? `© ${new Date().getFullYear()} ${siteName}`
48
48
  <footer class={root()}>
49
49
  <div class={inner()} style={layout === 'columns' ? `--footer-columns: ${Math.max(columns.length, 1)}` : undefined}>
50
50
  <div class="flex flex-col gap-3">
51
- <p class="text-base font-semibold">{siteName}</p>
52
- {tagline && <p class={muted()}>{tagline}</p>}
51
+ <p class="text-base font-semibold" data-kit-brand>{siteName}</p>
52
+ {tagline && <p class={muted()} data-kit-tagline>{tagline}</p>}
53
53
  {layout === 'columns' && <p class:list={[muted(), 'mt-auto pt-6']}>{line}</p>}
54
54
  </div>
55
55
  {layout === 'columns'
@@ -50,7 +50,7 @@ const { root, inner, brand } = header({ layout, tone, position })
50
50
  ---
51
51
  <header class={root()}>
52
52
  <div class={inner()}>
53
- <a href={homeHref} class={brand()} aria-label={showName ? undefined : siteName}>
53
+ <a href={homeHref} class={brand()} aria-label={showName ? undefined : siteName} data-kit-brand>
54
54
  {logo && <KitImage image={logo} priority class="h-8 w-auto" sizes="160px" />}
55
55
  {showName && <span>{siteName}</span>}
56
56
  </a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentrain/astro-kit",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "license": "MIT",
5
5
  "description": "Copy-in Astro components for Contentrain sites (shadcn model): typed props, tailwind-variants, zero JavaScript by default — with a machine-readable catalog",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  "mapping"
43
43
  ],
44
44
  "dependencies": {
45
- "@contentrain/types": "1.26.0"
45
+ "@contentrain/types": "1.27.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^22.10.0",