Mantine Theme
Download the pre-configured Mantine theme with Frequency brand tokens. This theme is also available via the @frequencyads/brand npm package.
Installation
Via NPM Package (Recommended)
npm install @frequencyads/brandimport { MantineProvider } from '@mantine/core';
import { frequencyTheme } from '@frequencyads/brand/mantine';
function App() {
return (
<MantineProvider theme={frequencyTheme}>
{/* Your app */}
</MantineProvider>
);
}Manual Configuration
Copy the theme configuration below and use it directly in your project.
frequencyTheme.ts
Usage Examples
Basic Setup
import '@mantine/core/styles.css';
import { MantineProvider, Button, Card, Text } from '@mantine/core';
import { frequencyTheme } from '@frequencyads/brand/mantine';
function App() {
return (
<MantineProvider theme={frequencyTheme}>
<Card>
<Text>Welcome to Frequency</Text>
<Button>Get Started</Button>
</Card>
</MantineProvider>
);
}Using Brand Colors
import { Button, Badge } from '@mantine/core';
// Primary color (Frequency Blue)
<Button color="blue">Primary Action</Button>
// Secondary color (Violet)
<Button color="violet">Secondary Action</Button>
// Semantic colors
<Badge color="green">Success</Badge>
<Badge color="yellow">Warning</Badge>
<Badge color="red">Error</Badge>
// Accessing specific shades
<Button color="blue.7">Darker Blue</Button>
<Button color="violet.3">Lighter Violet</Button>Typography with Brand Fonts
Remember to include the Google Fonts link in your HTML head:
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Source+Sans+3:wght@400;600&display=swap" rel="stylesheet">Color Reference
| Color | Shade 5 (Main) | Usage |
|---|---|---|
blue | #169BDE | Primary brand color |
violet | #7E57C2 | Secondary brand color |
red | #E63459 | Error states |
yellow | #E79E26 | Warning states |
green | #5AB267 | Success states |
orange | #FF8E32 | Accent |
cyan | #15C5DE | Accent |
pink | #F2699D | Accent |
indigo | #6366F1 | Accent |
gray | #9E9E9E | Neutral |
Package Exports
The @frequencyads/brand package provides multiple entry points:
// Full package
import { colors, fonts, frequencyTheme } from '@frequencyads/brand';
// Just the Mantine theme
import { frequencyTheme } from '@frequencyads/brand/mantine';
// Just colors (with full 10-shade palettes)
import { colors, mantineColors, blue, violet, red, green } from '@frequencyads/brand/colors';
// Just typography
import { fonts, fontSizes } from '@frequencyads/brand/typography';