@akson/cortex-landing-themes
Version:
Design system and theming utilities for landing pages - CSS custom properties, theme presets, and design tokens
74 lines (56 loc) • 1.3 kB
Markdown
and theming utilities for landing pages - CSS custom properties, theme presets, and design tokens
```bash
npm install @akson/cortex-landing-themes
```
```typescript
import { ThemeProvider, useTheme, designTokens } from '@akson/cortex-landing-themes';
function App() {
return (
<ThemeProvider theme="myarmy-default">
<LandingPage />
</ThemeProvider>
);
}
function MyComponent() {
const theme = useTheme();
return (
<div style={{
color: theme.colors.primary,
fontFamily: theme.fonts.heading
}}>
Swiss Military Theme
</div>
);
}
```
```css
:root {
/* MyArmy Colors */
--myarmy-primary:
--myarmy-secondary:
--myarmy-accent:
/* Typography */
--font-heading: 'Swiss Military', serif;
--font-body: 'Inter', sans-serif;
/* Spacing */
--spacing-xs: 0.5rem;
--spacing-sm: 1rem;
--spacing-md: 1.5rem;
}
```
- `myarmy-default` - Standard Swiss military theme
- `myarmy-dark` - Dark mode variant
- `myarmy-minimal` - Minimalist version
- CSS custom properties
- Theme switching
- Design token system
- WCAG AAA compliant colors
- Swiss military aesthetic
MIT © MyArmy
> Design system