@typewe/opensans
v1.0.0
Published
Self-hosted Open Sans variable font - optimized for performance and privacy
Maintainers
Readme
@typewe/opensans
Self-hosted Open Sans variable font optimized for performance and privacy.
Features
- 🚀 Variable font - All weights (300-800) in a single file
- ⚡️ Fast - Self-hosted, no external CDN requests
- 🔒 Privacy-first - GDPR compliant, no tracking
- 📦 Lightweight - Optimized WOFF2 format
- 🎨 Complete family - Normal and Italic styles included
- 📱 Versatile - Optimized for print, web, and mobile interfaces
Installation
npm install @typewe/opensansOr with yarn:
yarn add @typewe/opensansOr with pnpm:
pnpm add @typewe/opensansUsage
Next.js (App Router)
// app/layout.tsx
import '@typewe/opensans/css/index.css';
export default function RootLayout({ children }) {
return (
<html lang="en">
<body style={{ fontFamily: 'Open Sans, sans-serif' }}>
{children}
</body>
</html>
);
}Tailwind CSS
// tailwind.config.js
module.exports = {
theme: {
extend: {
fontFamily: {
sans: ['Open Sans', 'sans-serif'],
},
},
},
};Then import the CSS in your entry file:
import '@typewe/opensans/css/index.css';CSS
@import '@typewe/opensans/css/index.css';
body {
font-family: 'Open Sans', sans-serif;
font-weight: 400;
}Available Weights
- Light: 300
- Regular: 400
- Medium: 500
- Semi Bold: 600
- Bold: 700
- Extra Bold: 800
All weights support both normal and italic styles.
License
This font is licensed under the SIL Open Font License (OFL-1.1).
Original font by Steve Matteson: Open Sans on Google Fonts
More Fonts
Visit TypeWeave for more self-hosted fonts.
Support
- 📚 Documentation: typeweave.com/documentation
- 🌐 CDN Alternative:
https://typeweave.com/api/fonts/opensans/css
