@runwell/toumana-brand-kit
v1.0.0
Published
Design tokens and theme for Jardins de Toumana - Mediterranean warmth with gold accent
Maintainers
Readme
@runwell/toumana-brand-kit
Design tokens and theme package for Jardins de Toumana - a boutique apart-hotel in Djerba, Tunisia.
Installation
npm install @runwell/toumana-brand-kitUsage
CSS Variables
Import the CSS file for your theme:
/* Light theme (default) */
@import '@runwell/toumana-brand-kit/css/toumana.light.css';
/* Dark theme */
@import '@runwell/toumana-brand-kit/css/toumana.dark.css';Then use CSS variables in your styles:
.button {
background-color: var(--color-primary);
color: var(--color-on-primary);
border-radius: var(--radius-md);
}Tailwind CSS
Add the preset to your tailwind.config.js:
const toumanaPreset = require('@runwell/toumana-brand-kit/tailwind/preset');
module.exports = {
presets: [toumanaPreset],
// ... your config
};Then use the colors and tokens:
<button class="bg-gold-500 text-white rounded-md px-4 py-2">
Reserver
</button>Material UI
Import and use the pre-built themes:
import { lightTheme, darkTheme } from '@runwell/toumana-brand-kit/mui';
import { ThemeProvider } from '@mui/material/styles';
function App() {
return (
<ThemeProvider theme={lightTheme}>
{/* Your app */}
</ThemeProvider>
);
}Or customize the theme options:
import { lightThemeOptions } from '@runwell/toumana-brand-kit/mui/light';
import { createTheme } from '@mui/material/styles';
const customTheme = createTheme({
...lightThemeOptions,
// Your customizations
});JavaScript/TypeScript
Import types and utilities:
import { createThemeSwitcher, toumanaColors } from '@runwell/toumana-brand-kit';
// Create a theme switcher
const theme = createThemeSwitcher({
defaultMode: 'light',
onModeChange: (mode) => console.log(`Switched to ${mode} mode`),
});
theme.init(); // Apply initial theme
// Quick access to brand colors
console.log(toumanaColors.gold); // #E09900Raw JSON Tokens
For custom integrations, access the raw tokens:
import lightTokens from '@runwell/toumana-brand-kit/json/toumana.light.json';
import darkTokens from '@runwell/toumana-brand-kit/json/toumana.dark.json';
import coreTokens from '@runwell/toumana-brand-kit/json/core.json';Color Palette
Primary Colors
| Name | Hex | Usage |
|------|-----|-------|
| Toumana Gold | #E09900 | Primary accent, CTAs, links |
| Toumana Teal | #004B56 | Footer, secondary, dark mode |
| Mediterranean Cream | #F2E3C6 | Surface, backgrounds |
| White | #FFFFFF | Primary background |
Color Scales
Each color includes a full scale from 50-900:
gold-50togold-900teal-50toteal-900cream-50tocream-900gray-50togray-900
Semantic Colors
success:#10B981warning:#F59E0Berror:#EF4444info:#2EA3F2
Typography
- Sans-serif (Headlines): Manrope
- Serif (Elegant): Noto Serif
- Body: Open Sans
- Monospace: JetBrains Mono
Design Tokens
Spacing
4px base unit: 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32
Border Radius
Rounded corners for warm, welcoming aesthetic:
none: 0sm: 3pxmd: 6pxlg: 8pxxl: 12px2xl: 16pxfull: 9999px
License
MIT
