# Prerequisite First install the dependencies running `yarn install`, then make sure to build the package using `yarn build` and add the package as a dependency to the package/app you want to consume it from (could be the `app` or `ui` package) like so: ``` "dependencies": { "@tamagui-google-fonts/spline-sans": "*" } ``` ## Usage ### Expo Add this to the root of your file: ```ts import { useFonts } from 'expo-font' export default function App() { const [loaded] = useFonts({ SplineSansLight: require('@tamagui-google-fonts/spline-sans/fonts/static/SplineSans-Light.ttf'), SplineSans: require('@tamagui-google-fonts/spline-sans/fonts/static/SplineSans-Regular.ttf'), SplineSansMedium: require('@tamagui-google-fonts/spline-sans/fonts/static/SplineSans-Medium.ttf'), SplineSansSemiBold: require('@tamagui-google-fonts/spline-sans/fonts/static/SplineSans-SemiBold.ttf'), SplineSansBold: require('@tamagui-google-fonts/spline-sans/fonts/static/SplineSans-Bold.ttf'), }) // ... ``` ## Web Get the font's script (`` or `@import`) and add it to `
` from [here](https://fonts.google.com/specimen/Spline+Sans) ## Next.js Font (next/font/google) Import the font from `next/font/google` and give it a variable name in your `_app.tsx` like so: ```ts import { SplineSans } from 'next/font/google' // the casing might differ const font = SplineSans({ variable: '--my-font', }) ``` Add the variable style in `_app.tsx`: ```tsx