P1 fondation : tokens layerés, reset, thèmes (base/renovation/aep/tmip), 9 primitives Astro, pont Tailwind 4, démo kitchen sink

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 18:31:52 +02:00
commit 795ca7ed4e
28 changed files with 8043 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
---
/**
* Container — largeur max + gouttières cohérentes.
*
* Props :
* - size ('base' | 'narrow', 'base') : --container-max ou 45rem (lecture)
* - class (string) : classes additionnelles
*/
interface Props {
size?: "base" | "narrow";
class?: string;
}
const { size = "base", class: className } = Astro.props;
---
<div class:list={["tf-container", { "tf-container--narrow": size === "narrow" }, className]}>
<slot />
</div>
<style>
.tf-container {
max-width: var(--container-max);
margin-inline: auto;
padding-inline: var(--container-pad);
}
.tf-container--narrow {
max-width: 45rem;
}
</style>