Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/improve typography for client app and charts (#6833)
Kenrick Tandrian4a81658f6022
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 045f92c2cf..e0b6014273 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Harmonized the unit styling in the value component- Upgraded `stripe` from version `20.4.1` to `21.0.1`+### Fixed++- Resolved an issue where charts and components defaulted to _Roboto_ instead of the preconfigured _Inter_ font family+## 3.1.0 - 2026-04-29### Addeddiff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.tsindex 0a9be3a75e..e1967970d7 100644--- a/apps/client/src/app/app.component.ts+++ b/apps/client/src/app/app.component.ts@@ -28,6 +28,7 @@ import {RouterOutlet} from '@angular/router';import { DataSource } from '@prisma/client';+import { Chart } from 'chart.js';import { addIcons } from 'ionicons';import { openOutline } from 'ionicons/icons';import { DeviceDetectorService } from 'ngx-device-detector';@@ -255,6 +256,9 @@ export class GfAppComponent implements OnInit {this.toggleTheme(isDarkTheme);+ // Default chart styles+ Chart.defaults.font.family = getCssVariable('--font-family-sans-serif');+window.matchMedia('(prefers-color-scheme: dark)').addListener((event) => {if (!this.user?.settings.colorScheme) {this.toggleTheme(event.matches);diff --git a/apps/client/src/styles/theme.scss b/apps/client/src/styles/theme.scssindex dfde47c774..296270e7fc 100644--- a/apps/client/src/styles/theme.scss+++ b/apps/client/src/styles/theme.scss@@ -139,20 +139,28 @@ $_tertiary: map.merge(map.get($_palettes, tertiary), $_rest);@include mat.elevation-classes();@include mat.table-density(-1);-// $gf-typography: mat.m2-define-typography-config();+$gf-typography: (+ // Font families+ brand-family: var(--font-family-sans-serif),+ plain-family: var(--font-family-sans-serif),+ // Font weights+ bold-weight: 700,+ medium-weight: 500,+ regular-weight: 400+);.theme-light {$gf-theme-default: mat.define-theme((color: (primary: $_primary,- theme-type: light,- tertiary: $_tertiary+ tertiary: $_tertiary,+ theme-type: light),density: (scale: -3),- // typography: $gf-typography+ typography: $gf-typography));@@ -229,13 +237,13 @@ $_tertiary: map.merge(map.get($_palettes, tertiary), $_rest);(color: (primary: $_primary,- theme-type: dark,- tertiary: $_tertiary+ tertiary: $_tertiary,+ theme-type: dark),density: (scale: -3),- // typography: $gf-typography+ typography: $gf-typography));