Skip to content

Commit d05a43b

Browse files
authored
De-Camptonification (#181)
1 parent 5776758 commit d05a43b

File tree

3 files changed

+30
-16
lines changed

3 files changed

+30
-16
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/).
55

66
## [Unreleased]
7+
## [v4.0.0] - 2025-02-25
8+
### Changes
9+
- The Campton font face definitions have been replaced by Poppins in `nu_fonts.scss`.
10+
- **You must make corresponding changes in your application!** See the documentation for more information.
11+
712
## [v3.1.0] - 2024-03-19
813
### Changes
914
- Adds Laravel 11 compatibility.

docs/readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ Route::get('/demo', function () {
7171
```
7272

7373
## Upgrading
74+
### v4.0.0
75+
When upgrading to this version, you should update the `nu_fonts.scss` file. The Campton family of fonts is no longer licensed for web use and has been removed from `common.northwestern.edu`.
76+
77+
You should update the `resources/sass/nu_fonts.scss` file to match [the latest version](https://github.com/NIT-Administrative-Systems/northwestern-laravel-ui/blob/v4.0.0/src/Presets/northwestern-stubs/sass/nu_fonts.scss).
78+
79+
The layout itself does not use Campton, but your application may have used it. Check for references to `Campton` in your stylesheets and swap them to Poppins.
80+
81+
| Old Family | New Family |
82+
|--------------------|----------------|
83+
| Campton Book | Poppins Light |
84+
| All other Camptons | Poppins Bold |
85+
7486
### v3.0.0
7587
This version requires a higher version of the Sentry SDK and contains some breaking changes:
7688

src/Presets/northwestern-stubs/sass/nu_fonts.scss

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,26 @@
4141
}
4242

4343
@font-face {
44-
font-family:"Campton Book";
45-
src: url("https://common.northwestern.edu/v8/css/fonts/CamptonBook.woff") format("woff");
46-
font-weight: normal;
44+
font-family: "Poppins Light";
45+
src: url("https://common.northwestern.edu/v8/css/fonts/Poppins-Light.woff") format("woff");
46+
font-weight: 300;
4747
font-style: normal;
4848
}
49-
5049
@font-face {
51-
font-family:"Campton Bold";
52-
src: url("https://common.northwestern.edu/v8/css/fonts/CamptonBold.woff") format("woff");
53-
font-weight: normal;
50+
font-family: "Poppins Bold";
51+
src: url("https://common.northwestern.edu/v8/css/fonts/Poppins-Bold.woff") format("woff");
52+
font-weight: 700;
5453
font-style: normal;
5554
}
56-
5755
@font-face {
58-
font-family:"Campton Extra Bold";
59-
src: url("https://common.northwestern.edu/v8/css/fonts/CamptonExtraBold.woff") format("woff");
60-
font-weight: normal;
56+
font-family: "Poppins Extra Bold";
57+
src: url("https://common.northwestern.edu/v8/css/fonts/Poppins-ExtraBold.woff") format("woff");
58+
font-weight: 800;
6159
font-style: normal;
6260
}
63-
6461
@font-face {
65-
font-family:"Campton Extra Light";
66-
src: url("https://common.northwestern.edu/v8/css/fonts/CamptonExtraLight.woff") format("woff");
67-
font-weight: normal;
62+
font-family: "Poppins Extra Light";
63+
src: url("https://common.northwestern.edu/v8/css/fonts/Poppins-ExtraLight.woff") format("woff");
64+
font-weight: 100;
6865
font-style: normal;
69-
}
66+
}

0 commit comments

Comments
 (0)