/ Fonts / Space Grotesk
Space Grotesk
A quirky proportional sans with a techy, geometric personality.
5 WeightsVariableLatinOpen Source
Install
npm install @xerobi/fontsPreview Type anything — it's editable
The quick brown fox jumps over the lazy dog.
Weights
AaLight
AaRegular
AaMedium
AaSemiBold
AaBold
Glyph Explorer 671 glyphs
Loading glyphs…
Download
TrueType · .ttf5 static files for desktop, design tools, React Native & Flutter · 218 KBWeb · .woff2 + CSSEvery weight, subset and variable file with ready-made stylesheets · 216 KBHosted CSS · CDNLink it straight from jsDelivr — no download or install needed
Licensed under OFL-1.1 — free for personal and commercial use. The license is included in every download.
Developer setup
1. Install
bun add @xerobi/fonts # npm i @xerobi/fonts · pnpm add @xerobi/fonts · yarn add @xerobi/fonts
2. Import only what you need
Weights and subsets are separate files — the smaller the import, the faster the page.
@import "@xerobi/fonts/space-grotesk/latin-400.css"; @import "@xerobi/fonts/space-grotesk/latin-700.css"; @import "@xerobi/fonts/space-grotesk/vietnamese-400.css"; /* vietnamese script */
3. Use it
body {
font-family: "Space Grotesk", sans-serif;
}
h1 { font-weight: 700; }Variable font (one file, every weight)
Axes: wght.
@import "@xerobi/fonts/space-grotesk/variable/latin-wght.css";
body {
font-family: "Space Grotesk Variable", sans-serif;
font-weight: 450; /* any value 300–700 */
}Tailwind CSS v4 — app.css
@import "tailwindcss";
@import "@xerobi/fonts/space-grotesk/variable/latin-wght.css";
@theme {
--font-sans: "Space Grotesk Variable", ui-sans-serif, system-ui;
}Tailwind CSS v3 — tailwind.config.js
// in your CSS entry: @import "@xerobi/fonts/space-grotesk/variable/latin-wght.css";
module.exports = {
theme: {
extend: {
fontFamily: { sans: ['"Space Grotesk Variable"', "sans-serif"] },
},
},
};Then
<h1 class="font-sans font-bold">Hello</h1>
main.tsx
Bundlers (Vite, webpack, Rspack, Parcel) resolve the CSS and emit hashed font files.
import "@xerobi/fonts/space-grotesk/latin-400.css"; import "@xerobi/fonts/space-grotesk/latin-700.css"; import "./index.css";
index.css
:root {
font-family: "Space Grotesk", sans-serif;
}app/layout.tsx
import "@xerobi/fonts/space-grotesk/latin-400.css";
import "@xerobi/fonts/space-grotesk/latin-700.css";
import "./globals.css";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}app/globals.css
body {
font-family: "Space Grotesk", sans-serif;
}No install — jsDelivr
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin />
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@xerobi/fonts@1/dist/fonts/space-grotesk/latin-400.css" />
<style>
body { font-family: "Space Grotesk", sans-serif; }
</style>Custom font-display / own hosting (JS API)
import { fontFace } from "@xerobi/fonts";
const css = fontFace("space-grotesk", {
subsets: ["latin"],
weights: [400, 700],
display: "optional",
baseUrl: "/assets/fonts", // where you serve the .woff2 files
});1. Install
bun add @xerobi/react-native-fonts expo-font
2. Load the font
Only families you import are bundled by Metro.
import { useFonts } from "expo-font";
import spaceGrotesk from "@xerobi/react-native-fonts/space-grotesk";
export default function App() {
const [loaded] = useFonts(spaceGrotesk);
if (!loaded) return null;
// …
}3. Use it
Each weight has its own fontFamily name — don't also set fontWeight.
<Text style={{ fontFamily: "SpaceGrotesk_400Regular", fontSize: 16 }}>Regular</Text>
<Text style={{ fontFamily: "SpaceGrotesk_700Bold", fontSize: 16 }}>Bold</Text>1. Install the package
flutter pub add xerobi_fonts
2. Add this family to your app
Copies only these TTF files into assets/fonts and registers them in pubspec.yaml.
dart run xerobi_fonts add space-grotesk flutter pub get
3. Use it
Text('Hello', style: TextStyle(
fontFamily: 'Space Grotesk',
fontWeight: FontWeight.w700,
));
// or with the typed helper
import 'package:xerobi_fonts/xerobi_fonts.dart';
Text('Hello', style: XerobiFonts.spaceGrotesk.style(fontSize: 24, weight: 700));
// or as the whole app font
MaterialApp(theme: ThemeData(fontFamily: 'Space Grotesk'));Copyright 2020 The Space Grotesk Project Authors (https://github.com/floriankarsten/space-grotesk) — licensed under OFL-1.1.