Skip to Content
ResourcesMantine Theme

Mantine Theme

Download the pre-configured Mantine theme with Frequency brand tokens. This theme is also available via the @frequencyads/brand npm package.

Installation

npm install @frequencyads/brand
import { 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

ColorShade 5 (Main)Usage
blue#169BDEPrimary brand color
violet#7E57C2Secondary brand color
red#E63459Error states
yellow#E79E26Warning states
green#5AB267Success states
orange#FF8E32Accent
cyan#15C5DEAccent
pink#F2699DAccent
indigo#6366F1Accent
gray#9E9E9ENeutral

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';
Last updated on