Skip to content

Commit

Permalink
Merge pull request keystonejs#1369 from keystonejs/remove-font
Browse files Browse the repository at this point in the history
Remove commercial font Nueu Haas Unica from Open Source library
  • Loading branch information
JedWatson authored Jul 8, 2019
2 parents 7d606f4 + aa9d892 commit cd40793
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 26 deletions.
4 changes: 4 additions & 0 deletions .changeset/calm-kids-rescue/changes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"releases": [{ "name": "@keystone-alpha/demo-project-meetup", "type": "patch" }],
"dependents": []
}
1 change: 1 addition & 0 deletions .changeset/calm-kids-rescue/changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove commercial font Nueu Haas Unica from Open Source library
28 changes: 2 additions & 26 deletions demo-projects/meetup/site/primitives/StylesBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export default function StylesBase() {
<Global
styles={css`
${normalize};
${fonts};
$@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
body {
max-width: 100%;
overflow-x: hidden;
font-family: 'NeueHass', -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
line-height: 1.5;
text-decoration-skip: ink;
Expand Down Expand Up @@ -174,27 +174,3 @@ const normalize = css`
display: none;
}
`;

const fonts = css`
@font-face {
font-family: 'NeueHass';
src: local('NeueHaasUnicaPro Regular'), local('NeueHaasUnicaPro-Regular'),
url('/static/fonts/NeueHaasUnicaPro-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'NeueHass';
src: local('NeueHaasUnicaPro Medium'), local('NeueHaasUnicaPro-Medium'),
url('/static/fonts/NeueHaasUnicaPro-Medium.woff') format('woff');
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: 'NeueHass';
src: local('NeueHaasUnicaPro Bold'), local('NeueHaasUnicaPro-Bold'),
url('/static/fonts/NeueHaasUnicaPro-Bold.woff') format('woff');
font-weight: 600;
font-style: normal;
}
`;
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit cd40793

Please sign in to comment.