@xds/theme-chocolate0.0.14
1. Install the theme
bashnpm install @xds/theme-chocolate
2. Import the built theme
typescriptimport {chocolateTheme} from '@xds/theme-chocolate/built';
3. Wrap your app
tsx<XDSTheme theme={chocolateTheme}>{children}</XDSTheme>
Little joys,
everywhere you goWe believe the smallest details are the ones that matter most. Turn an ordinary day into something worth remembering.
everywhere you goWe believe the smallest details are the ones that matter most. Turn an ordinary day into something worth remembering.
| Name | Description | Price | Stock |
|---|---|---|---|
| Minimalist Watch | Stainless steel, sapphire crystal | $189 | 42 |
| Wireless Headphones | ANC, 30hr battery | $249 | 128 |
| Leather Wallet | Full-grain, RFID blocking | $79 | 15 |
| Canvas Backpack | Water-resistant, 25L | $119 | 63 |
Warm chocolate theme with rich brown tones and cozy beige backgrounds. Uses Fraunces for headings, Albert Sans for body text, and Lucide icons.
Install
bashnpm install @xds/theme-chocolate
Usage
Wrap your app with XDSTheme and pass the theme:
tsximport {XDSTheme} from '@xds/core/theme';import {chocolateTheme} from '@xds/theme-chocolate/built';function App() {return <XDSTheme theme={chocolateTheme}>{/* your app */}</XDSTheme>;}
Import paths
| Path | Use case |
|---|---|
@xds/theme-chocolate | Source build (StyleX compilation via @xds/build) |
@xds/theme-chocolate/built | Pre-built dist (Tailwind, plain CSS, or no build step) |
@xds/theme-chocolate/theme.css | Pre-built CSS file (import in your stylesheet) |
If you're using @xds/build for StyleX source compilation, import from the bare path. Otherwise, use /built.
CSS import
Add the theme CSS to your stylesheet:
css@import '@xds/theme-chocolate/theme.css';
Fonts
This theme uses custom typefaces:
| Role | Font |
|---|---|
| Body | Albert Sans |
| Heading | Fraunces |
| Code | JetBrains Mono |
These fonts must be loaded separately. The theme references them by name but does not bundle the font files.
Add this to your HTML <head>:
html<link rel="preconnect" href="https://fonts.googleapis.com" /><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><linkrel="stylesheet"href="https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" />
Without this, the theme falls back to system fonts.