Hotella styleguide
Tokens (§2.1), shared shell (§3.5) and the five core composites — every state: default / loading / empty / error. Toggle the theme to verify the light-dark() token pairs.
1 · Design tokens
Color pairs resolve through light-dark(); type ramp, spacing, radii, shadows and motion tokens drive every surface.
display-xl 56/60
display 44/48
h1 32/36
h2 26/30
h3 20/24
body-lg 18/26
body 16/24
body-sm 14/20
caption 12/16
price-lg 22/26 · ₹4,200
fast 120msbase 200mssheet 320msmap 500ms2 · Shared shell
Sticky header (scroll-driven elevation), search pill wrapped in <search>, popover user menu anchored with CSS anchor positioning; footer with 4 accordion link groups + native locale/currency selects.
3 · HotellaDateRangePicker
Two-month grid, blocked days, per-night prices, flexible ±N chips, aria-live status. Grid stays LTR in RTL locales.
Default
December 2026
January 2027
Loading
Error
Empty (no selection yet — inline hint)
December 2026
4 · GuestSelector
Adults/children/infants/pets steppers clamped to listing capacity (G-02). Overflow warns without disabling any control.
Default
Capacity warning (stub: max 2)
Error
5 · PriceBubble
Map pin language and card badge. Intl-formatted money, tabular numerals, container-query compaction.
Default (pin)
₹4,200₹4,200 per nightCard badge
₹4,200₹4,200 per nightLoading
Error
—Selected (click to toggle)
6 · StarRating
Display with half stars + accessible rating text; input variant is a native radio group.
Default
214Rated 4.9 out of 5 from 214 reviewsNew (no reviews)
Rated 0.0 out of 5Large
Rated 3.5 out of 5Input (native radios)
7 · QuoteBreakdown
Fee lines with fee-inclusive total (transparency rule). Tabular numerals; stacks via container query when narrow.
Default
- ₹4,200 × 4 nights
- ₹16,800
- Cleaning fee
- ₹1,200
- Hotella service fee
- ₹1,560
- Taxes
- ₹2,856
- Total(includes all fees)
- ₹22,416
Includes all fees, taxes and charges.
Loading
Empty (calm state — never skeletons)
Error
8 · Astryx components (Hotella theme)
Stock @astryxdesign/core components rendered under the built `hotella` theme — the theme maps Harbor Teal/Amber and the Hotella surfaces onto Astryx's token contract, and follows the page color-scheme (toggle dark mode above to verify). The StyleX demo below proves the @stylexswc compile pipeline.
Every booking is covered by the Hotella Guarantee: verified hosts, secure payments, and 24/7 support.
No trips yet
Own-code StyleX (stylex.create → SWC → atomic CSS)
This card is styled with stylex.create() in app source, compiled through the StyleX/SWC pipeline into atomic CSS, and themed with Hotella tokens from the built hotella.css.
9 · Modern-web compliance notes
Patterns from the modern-web-guidance corpus applied across this build (DESIGN_PLAN §9).
- Dark mode:
color-scheme: light dark+light-dark()token pairs with prefers-color-scheme fallback; manual toggle flipscolor-schemeonly. - Overlays: native
<dialog>/popover(no role="dialog"/aria-modal/focus traps, no body scroll-lock); entry/exit via@starting-style+allow-discrete+overlay. - Anchor positioning:
position-area+position-try-fallbacksbehind@supports; default UA placement as fallback (Firefox). - Motion: scoped reduced-motion handling (no global 0.01ms reset); skeleton shimmer opts in via
no-preference. - Header elevation: scroll-driven animation (
animation-timeline: scroll()), no JS scroll listener. - Cards/widgets size from
container-type: inline-size+@container, not viewport media queries. - Forms: native selects styled with
appearance: none; ≥16px inputs; 44×44 targets; visible:focus-visiblerings everywhere. - Money:
Intl.NumberFormat+font-variant-numeric: tabular-nums; dates are zoneless calendar dates (stub Y/M/D math). - Astryx wiring (HOTELLA-011): built Hotella theme (
theme/hotella.ts→astryx theme build) + prebuiltastryx.css/reset loaded inglobals.css;styles/tokens.cssstays the single source of truth for Hotella tokens; StyleX/SWC pipeline via@stylexswc/nextjs-plugin/turbopack+@stylexswc/postcss-plugin.