Skip to content

ahmetcanisik/fvonts

Repository files navigation

Open source cdn(font) links for those who want them.

This project was created for me to include fonts that are not available in Google Fonts directly from my own open source project, without adding them from some sites I find unreliable. Here are some fonts that I like but are not included in Google Fonts;

Font Name How to use in html?
Ubuntu Title <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fvonts/ubuntu-title">

1. Create Project And Template Folder

mkdir your-font-name && 
cd your-font-name &&
npm init -y 

Create file for template

template klasörü içerisinde oluşturacağınız dosyalar new parametresi ile oluşturulan font klasörüne taşınacaktır.

template/README.md

# $fv.name
Description for $fv.name project.

Install Fvonts

npm install -g fvonts@latest

veya npx ile indirme yapmadan da çalıştırabilirsiniz.

npx fvonts new [your-font-name]

Create font project with fvonts-cli

fvonts new [your-font-name]

Setting up Config File

fvonts.config.js

module.exports = {
    config: {
        // config options here...
    }
}

Config Options

replacements

placeholding variables for your template files. Simple usage below.

fvonts.config.js

module.exports = {
    config: {
        replacements: {
            "my-page": "https://ahmetcanisik.com"
        }
    }
}

template/cv.md

...Visit [my personel website]($fv.my-page).

license : MIT

Releases

No releases published

Packages

No packages published