Repository navigation
Sammi: an Astro + Tailwind v4 site with semantic colors and a native HTML language menu #20722
lukesteveyang
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Sharing the Astro and Tailwind website for Sammi, an Android fictional character-chat app. The useful part for this category is the website implementation: a warm cream/plum palette, responsive product sections, and localized pages.
1. Semantic colors in the v4 theme
The project uses tailwindcss and @tailwindcss/vite v4. The palette lives in a CSS-first theme, so components use names such as bg-cream, text-plum and border-plum/15:
Those tokens are shared by the header, feature cards, FAQ and download controls, rather than restating hex colors in each component.
2. One layout, localized copy
The hero uses a normal grid that becomes lg:grid-cols-[1.12fr_0.88fr] on larger screens. Copy comes from locale dictionaries while the Astro components and Tailwind styles are shared. English keeps the unprefixed URL; other configured locales use their own prefix. German example. The configuration includes English, German, Polish, Brazilian Portuguese, Turkish, Dutch, Spanish and French; this describes website localization.
3. A small language picker
The language menu uses native details/summary markup with Tailwind borders, rings and rounded corners. Locale links carry lang and hreflang attributes, and the current language has aria-current. Motion CSS and the hero script also contain prefers-reduced-motion checks. These are implementation details, not a claim of a completed accessibility audit.
The aim is to keep the styling and locale data separate enough that the same product layout works across the translated pages. No performance or conversion benchmark is claimed here.
Affiliation: this is an authorized submission on behalf of Sammi. AI assistance was used to prepare this post; the implementation details were checked against the project files and live English/German pages. Product contact: hello@sammiai.app.
All reactions