sproutsite 0.5.31 → 0.5.32
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 +5 -5
- package/VERSION +1 -1
- package/package.json +1 -1
- package/src/lib/sproutsite/site-colors.ts +1 -1
- package/src/themes/default/colors.ts +1 -1
package/README.md
CHANGED
|
@@ -299,7 +299,7 @@ tagline: A short supporting claim.
|
|
|
299
299
|
---
|
|
300
300
|
```
|
|
301
301
|
|
|
302
|
-
The default theme accepts an optional `colors` block: `surfaces` (`default`, `muted`, `border`, `text`), semantic roles (`primary`, `secondary`, `accent`, `neutral`, `info`, `success`, `warning`, `error`, each with `color`/`content`), and `brand` (`background`, `backgroundEnd`, `gradient`, `content`, `highlight`, `accent`). Values are opaque hex
|
|
302
|
+
The default theme accepts an optional `colors` block: `surfaces` (`default`, `muted`, `border`, `text`), semantic roles (`primary`, `secondary`, `accent`, `neutral`, `info`, `success`, `warning`, `error`, each with `color`/`content`), and `brand` (`background`, `backgroundEnd`, `gradient`, `content`, `highlight`, `accent`). Values are opaque hex colors (`#RGB` or `#RRGGBB`); omitted fields retain the theme defaults. For example, `colors: { primary: { color: "#527b37", content: "#ffffff" } }` changes the primary role. Standard solid text/background pairs are checked for contrast against the resolved defaults; invalid fields or insufficient checked contrast stop Astro configuration/rendering. These checks do not establish conformance for image overlays or every component state. SVG waves, logos and images keep their embedded colors and must be edited separately. See the [website color guide](https://sproutsite.dev/documentation/getting-started/your-website/colors/).
|
|
303
303
|
|
|
304
304
|
`site.yaml` is the shared base. Optional `site.<locale>.yaml` files override individual object fields; arrays replace the entire inherited list. Omitted fields inherit the base values. Production URL, base path, default locale and enabled locale list remain shared. The base `i18n.locale` matches `i18n.defaultLocale`; locale files may set their own `i18n.locale`. The default locale is explicit and does not depend on list order. Legacy `language`/`locales`, `links.externalNewTab`/`externalIcon` and flat blog settings remain readable, but do not mix old and new spellings within a configuration layer.
|
|
305
305
|
|
|
@@ -504,7 +504,7 @@ export default defineConfig(
|
|
|
504
504
|
);
|
|
505
505
|
```
|
|
506
506
|
|
|
507
|
-
The optional list accepts existing project-relative `.css` files. The resolved theme styles load first, followed by these files in list order, for all shared page layouts and locales. Missing files and invalid entries stop configuration. CSS imports, local assets and development updates use Astro/Vite; restart the dev server after changing the entry list. Omission or `styles: []` retains theme-only output. Use targeted unlayered rules for overrides such as `.ss-card { border-radius: 1.25rem; }`; normal cascade priorities and specificity still apply. Layered rules may lose to higher-priority DaisyUI or utility layers. Supported inline
|
|
507
|
+
The optional list accepts existing project-relative `.css` files. The resolved theme styles load first, followed by these files in list order, for all shared page layouts and locales. Missing files and invalid entries stop configuration. CSS imports, local assets and development updates use Astro/Vite; restart the dev server after changing the entry list. Omission or `styles: []` retains theme-only output. Use targeted unlayered rules for overrides such as `.ss-card { border-radius: 1.25rem; }`; normal cascade priorities and specificity still apply. Layered rules may lose to higher-priority DaisyUI or utility layers. Supported inline color and typography settings remain in `site.yaml`. This option does not replace components or create theme inheritance. See the [small design changes guide](https://sproutsite.dev/documentation/getting-started/your-website/theme-overrides/).
|
|
508
508
|
|
|
509
509
|
A small build-time Vite CSS entry imports the unchanged theme entry followed by the configured files. Astro/Vite retain responsibility for compilation, asset URLs and HMR; no stylesheet registry or browser script is added.
|
|
510
510
|
|
|
@@ -522,7 +522,7 @@ export default defineConfig(
|
|
|
522
522
|
);
|
|
523
523
|
```
|
|
524
524
|
|
|
525
|
-
Only `Header` and `Footer` are supported. Paths must be existing project-relative `.astro` files; unknown keys and invalid paths fail configuration. Omitted slots retain the selected theme implementations independently. Both components receive `site` (the resolved active-locale configuration) and `route` (translated content path without locale/base prefixes). Use `HeaderProps` or `FooterProps` from `sproutsite` as the component's Props type; no other required props are supplied. Error pages also use these slots; landing pages still omit the header. The shared layout retains metadata, main content, fonts,
|
|
525
|
+
Only `Header` and `Footer` are supported. Paths must be existing project-relative `.astro` files; unknown keys and invalid paths fail configuration. Omitted slots retain the selected theme implementations independently. Both components receive `site` (the resolved active-locale configuration) and `route` (translated content path without locale/base prefixes). Use `HeaderProps` or `FooterProps` from `sproutsite` as the component's Props type; no other required props are supplied. Error pages also use these slots; landing pages still omit the header. The shared layout retains metadata, main content, fonts, color variables and skip link.
|
|
526
526
|
|
|
527
527
|
The public `DefaultHeader` and `DefaultFooter` exports from `sproutsite/components` always target the supplied implementations. A replacement can delegate to them without recursively resolving itself. Completely new markup requires the website team to implement responsive behavior, locale/base-aware links, active navigation and accessibility. Local files survive package updates, but their compatibility still needs review. This is not a general theme loader or an extension of the allowed MDX imports. See the [header/footer guide](https://sproutsite.dev/documentation/getting-started/your-website/header-and-footer/).
|
|
528
528
|
|
|
@@ -716,11 +716,11 @@ The privacy policy additionally uses `{ PrivacyInfrastructure }` from the same e
|
|
|
716
716
|
|
|
717
717
|
Leave `PRIVACY_LOG_RETENTION_DAYS` empty until a time-based policy is implemented. Empty means an unresolved-period notice, not zero-day retention. A number applies to the configured nginx access/error logs and shared Traefik operational/error logs during normal operation. It is not a blanket commitment for all server data or stopped-service periods. The demo describes hourly rotation, five-minute age cleanup and deferred cleanup on the next start. Operational details: nginx maintenance failures are exposed through a healthcheck; Traefik's Copytruncate rotation can lose individual diagnostic entries. External copies and backups still need separate retention verification. `PRIVACY_LOG_SIZE_LIMIT_MIB` is the approximate additional size limit in MiB, independently of age-based deletion. These fields document actual operation; they do not configure deletion.
|
|
718
718
|
|
|
719
|
-
`PRIVACY_EMAIL_RETENTION_MONTHS=6` records a chosen maximum for completed ordinary
|
|
719
|
+
`PRIVACY_EMAIL_RETENTION_MONTHS=6` records a chosen maximum for completed ordinary inquiries in the active mailbox, not a universal statutory period or an automatic mailbox rule. Verify retention of any copies/backups separately. Review the hosting data-processing agreement where applicable; this repository does not assert that a contract has already been concluded.
|
|
720
720
|
|
|
721
721
|
### Logo and icons
|
|
722
722
|
|
|
723
|
-
Keep your own prepared branding files under `public/branding/` and configure them in `src/content/site.yaml`. This follows [Astro's public-file conventions](https://docs.astro.build/en/guides/images/#images-in-public): files are copied unchanged, not
|
|
723
|
+
Keep your own prepared branding files under `public/branding/` and configure them in `src/content/site.yaml`. This follows [Astro's public-file conventions](https://docs.astro.build/en/guides/images/#images-in-public): files are copied unchanged, not optimized. Do not edit installed package files.
|
|
724
724
|
|
|
725
725
|
```yaml
|
|
726
726
|
branding:
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.32
|
package/package.json
CHANGED
|
@@ -97,7 +97,7 @@ export function colorContrastIssues(input?: SiteColors): string[] {
|
|
|
97
97
|
const ratio = contrastRatio(foreground, background);
|
|
98
98
|
if (ratio < minimum)
|
|
99
99
|
issues.push(
|
|
100
|
-
`${field} against ${against}: ${ratio.toFixed(2)}:1; expected at least ${minimum}:1. Choose a darker/lighter
|
|
100
|
+
`${field} against ${against}: ${ratio.toFixed(2)}:1; expected at least ${minimum}:1. Choose a darker/lighter color or adjust the matching content color.`,
|
|
101
101
|
);
|
|
102
102
|
};
|
|
103
103
|
for (const role of [
|