From 3a64992823ab67a0118df9a163e7ffca664b52d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arda=20Sevin=C3=A7?= Date: Thu, 12 Oct 2023 03:31:22 +0300 Subject: [PATCH] feat: add inter variable --- package.json | 1 + pnpm-lock.yaml | 7 +++++++ tailwind.config.cjs | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/package.json b/package.json index 813af2d..a25eb7f 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@astrojs/react": "^3.0.3", "@astrojs/sitemap": "^3.0.1", "@astrojs/tailwind": "^5.0.1", + "@fontsource-variable/inter": "^5.0.13", "@types/react": "^18.0.21", "@types/react-dom": "^18.0.6", "astro": "^3.2.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6e9da86..1552ac1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ dependencies: '@astrojs/tailwind': specifier: ^5.0.1 version: 5.0.1(astro@3.2.3)(tailwindcss@3.3.3) + '@fontsource-variable/inter': + specifier: ^5.0.13 + version: 5.0.13 '@types/react': specifier: ^18.0.21 version: 18.2.28 @@ -804,6 +807,10 @@ packages: dev: false optional: true + /@fontsource-variable/inter@5.0.13: + resolution: {integrity: sha512-mb2WyZ2rHeqIG8aqGJIvLBOmo4sg2x7SHlsE6PUhwxbOicVzO59EZwSGtzNO3FmchuDPFVAxzcXYcR5B6jE6Qw==} + dev: false + /@jridgewell/gen-mapping@0.3.3: resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} engines: {node: '>=6.0.0'} diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 0836168..af1d738 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -1,4 +1,6 @@ /** @type {import('tailwindcss').Config} */ +const defaultTheme = require('tailwindcss/defaultTheme'); + module.exports = { content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], theme: { @@ -12,6 +14,9 @@ module.exports = { linkedin: '#0077B5', youtube: '#FF0000', }, + fontFamily: { + sans: ['InterVariable', 'Inter', ...defaultTheme.fontFamily.sans], + }, }, }, plugins: [],