https://github.com/rspack-contrib/rspress-plugin-font-open-sans
Use Open Sans as the default font in your Rspress website.
https://github.com/rspack-contrib/rspress-plugin-font-open-sans
plugin rspress
Last synced: 2 days ago
JSON representation
Use Open Sans as the default font in your Rspress website.
- Host: GitHub
- URL: https://github.com/rspack-contrib/rspress-plugin-font-open-sans
- Owner: rspack-contrib
- License: mit
- Created: 2024-03-22T08:02:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-01T02:30:34.000Z (15 days ago)
- Last Synced: 2025-04-14T10:13:20.959Z (2 days ago)
- Topics: plugin, rspress
- Language: CSS
- Homepage:
- Size: 149 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rspack - rspress-plugin-font-open-sans
README
# rspress-plugin-font-open-sans
Use Open Sans as the default font in your Rspress website.
## About
Open Sans is a humanist sans serif typeface designed by Steve Matteson, Type Director of Ascender Corp.
See [Google Fonts - Open Sans](https://fonts.google.com/specimen/Open+Sans/about)

## Usage
Install:
```bash
npm add rspress-plugin-font-open-sans -D
```Add plugin to your `rspress.config.ts`:
```ts
// rspress.config.ts
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';export default {
plugins: [pluginFontOpenSans()],
};
```