Browse Source
Bugfix/improve typography for client app and charts (#6833)
* Improve typography for client app and charts
* Update changelog
pull/6834/head^2
Kenrick Tandrian
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
23 additions and
7 deletions
-
CHANGELOG.md
-
apps/client/src/app/app.component.ts
-
apps/client/src/styles/theme.scss
|
|
|
@ -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 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
|
|
@ -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); |
|
|
|
|
|
|
|
@ -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 |
|
|
|
) |
|
|
|
); |
|
|
|
|
|
|
|
|