···11+# open-fonts
22+33+A collection of open source fonts. Served from a multi-region CDN and available for direct use. Served from https://fonts.diegoenriquezserrano.dev
44+55+66+## Index
77+88+- [Requirements](#requirements)
99+- [Installation](#installation)
1010+- [Running development server](#running-the-application)
1111+- [Building target files](#building-target-files)
1212+- [License](#license)
1313+1414+1515+## Requirements
1616+1717+- dart-sass
1818+- pigz
1919+- yarn
2020+2121+2222+## Installation
2323+2424+### Dependencies
2525+2626+#### dart-sass
2727+2828+1. Go to the [official dart-sass releases page](https://github.com/sass/dart-sass/releases) and download the most recent package that corresponds to your system.
2929+3030+2. Extract the contents into the directory you want to execute it from. example:
3131+3232+ ```bash
3333+ # Check for or create target directory
3434+ [ -d ~/.local/src/ ] || mkdir ~/.local/src/
3535+ # Assuming package downloaded to Downloads directory
3636+ cd ~/Downloads/
3737+ # Decompress and extract source files to target dir
3838+ # Update accordingly for current version if necessary
3939+ tar -xf dart-sass-1.93.2-linux-x64.tar.gz -C ~/.local/src/
4040+ ```
4141+4242+3. Add the dart-sass directory to your `$PATH`. eg. Add a `export PATH="$HOME/.local/src/dart-sass:$PATH"` line to your `.bashrc` file.
4343+4444+---
4545+#### pigz
4646+4747+1. Install using your typical system package manager. example
4848+4949+ ```bash
5050+ # Debian/Ubuntu based Linux distributions
5151+ sudo apt update && sudo apt install pigz -y;
5252+ ```
5353+5454+---
5555+#### yarn
5656+5757+1. If you already have `Node.js` and `npm` installed on your machine, proceed to step 2. Otherwise follow the official recommended installation instructions here: https://nodejs.org/en/download
5858+5959+2. Install `yarn`.
6060+6161+ ```bash
6262+ npm i --global yarn
6363+ ```
6464+6565+---
6666+6767+6868+### Development environment
6969+7070+The build tools include `prettier` for formatting, `css-minify` for minifying target CSS files, and `vite` to spin up a local server with HMR for ease while developing.
7171+7272+1. Clone the .git repository
7373+ ```bash
7474+ git clone https://tangled.org/@diegoenriquezserrano.dev/open-fonts
7575+ cd ./open-fonts
7676+ ```
7777+7878+2. Install packages
7979+ ```bash
8080+ yarn
8181+ ```
8282+8383+8484+## Running development server
8585+8686+The development environment includes a vite server so that you can view live updates to `index.html` at `http://localhost:3150/`. To use it run the vite script.
8787+8888+ ```bash
8989+ yarn dev
9090+ ```
9191+9292+9393+## Building target files
9494+9595+Running the build script will run prettier on your `/scss` directory. It will then run sass-dart to compile the scss files into the `/css` directory. After that, it will run css-minify to minimize your css into the `/min` directory, and finally, it will run `/compress.sh` to gzip your minimized files into the `/gz` directory.
9696+9797+You can run the build script with yarn:
9898+9999+```bash
100100+yarn build
101101+```
102102+103103+104104+## License
105105+106106+This project is licensed under the MIT License. See the COPYING file for details.