Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/static/brand/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The outlined circle-and-slash mark and Instrument Serif wordmark are supplied pr

`tokens.json` records surface, text and action roles. Which font carries which text: `../fonts/README.md`.

Wordmark lettering is outlined from Instrument Serif. Source licensing is in the repository’s root `LICENSE`; the three font OFLs remain beside the fonts in `../fonts/`.
Wordmark lettering is outlined from Instrument Serif. Source licensing is in the repository’s root `LICENSE`; the font OFLs remain beside the fonts in `../fonts/`.

## Provider marks

Expand Down
2 changes: 1 addition & 1 deletion app/static/catalogue/catalogue.css
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ tr:has([data-pick]:not(:disabled)) { cursor: pointer; }
.cite-emblem svg { display: block; width: 100%; height: 100%; }
.cite-seal .ring { fill: none; stroke: currentColor; }
.cite-seal text { fill: currentColor; font-family: var(--mono); }
.cite-seal .yr { font-family: var(--serif, Georgia, serif); fill: var(--text); }
.cite-seal .yr { font-family: var(--serif); fill: var(--text); }
.cite-seal .spin { position: absolute; inset: 0; transform-origin: center; will-change: transform; animation: cite-spin 60s linear infinite; }
@keyframes cite-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cite-seal .spin { animation: none; will-change: auto; } }
Expand Down
16 changes: 16 additions & 0 deletions app/static/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@
src: url(fonts/DMSans-Medium.woff2) format('woff2');
}

@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 100 700;
font-display: swap;
src: url(fonts/IBMPlexSans-Variable.woff2) format('woff2');
}

@font-face {
font-family: 'IBM Plex Sans';
font-style: italic;
font-weight: 100 700;
font-display: swap;
src: url(fonts/IBMPlexSans-Italic-Variable.woff2) format('woff2');
}

@font-face {
font-family: 'IBM Plex Mono';
font-style: normal;
Expand Down
Binary file not shown.
Binary file added app/static/fonts/IBMPlexSans-Variable.woff2
Binary file not shown.
8 changes: 5 additions & 3 deletions app/static/fonts/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Nullius fonts

DM Sans, IBM Plex Mono and Instrument Serif, distributed under the SIL Open Font License 1.1. The unmodified license for each family is included beside the files.
DM Sans, IBM Plex Mono, IBM Plex Sans and Instrument Serif, distributed under the SIL Open Font License 1.1. The unmodified license for each family is included beside the files.

Font assets were obtained from the Google Fonts CSS service; all font requests in Nullius use local static files.

Source: https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=IBM+Plex+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap

The three identity families also have locally served WOFF2 conversions. Production styles use only regular and medium UI/code weights, and regular/italic Instrument Serif. Outlined identity asset provenance is in `../brand/README.md`; source licensing is in the repository’s root `LICENSE`.
IBM Plex Sans is its variable-weight font, `IBMPlexSans-Variable.woff2` and `IBMPlexSans-Italic-Variable.woff2`, weights 100 to 700, with the printable coverage of the DM Sans files: https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&text=%20%21%22%23%24%25%26%27%28%29%2A%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%C2%A0%C2%A1%C2%A2%C2%A3%C2%A4%C2%A5%C2%A6%C2%A7%C2%A8%C2%A9%C2%AA%C2%AB%C2%AC%C2%AE%C2%AF%C2%B0%C2%B1%C2%B2%C2%B3%C2%B4%C2%B5%C2%B6%C2%B7%C2%B8%C2%B9%C2%BA%C2%BB%C2%BC%C2%BD%C2%BE%C2%BF%C3%80%C3%81%C3%82%C3%83%C3%84%C3%85%C3%86%C3%87%C3%88%C3%89%C3%8A%C3%8B%C3%8C%C3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B%9C%CB%9D%CC%80%CC%81%CC%82%CC%83%CC%84%CC%86%CC%87%CC%88%CC%8A%CC%8B%CC%8C%CC%92%CC%A6%CC%A7%CC%A8%CF%80%E1%BA%80%E1%BA%81%E1%BA%82%E1%BA%83%E1%BA%84%E1%BA%85%E1%BA%9E%E1%BA%BC%E1%BA%BD%E1%BB%B2%E1%BB%B3%E1%BB%B8%E1%BB%B9%E2%80%93%E2%80%94%E2%80%98%E2%80%99%E2%80%9A%E2%80%9C%E2%80%9D%E2%80%9E%E2%80%A0%E2%80%A1%E2%80%A2%E2%80%A6%E2%80%B0%E2%80%B9%E2%80%BA%E2%81%84%E2%81%B4%E2%82%A8%E2%82%AC%E2%82%B9%E2%82%BA%E2%82%BD%E2%84%93%E2%84%A2%E2%84%A6%E2%84%AE%E2%86%90%E2%86%91%E2%86%92%E2%86%93%E2%86%94%E2%86%95%E2%86%96%E2%86%97%E2%86%98%E2%86%99%E2%88%82%E2%88%86%E2%88%8F%E2%88%91%E2%88%92%E2%88%95%E2%88%9A%E2%88%9E%E2%88%AB%E2%89%88%E2%89%A0%E2%89%A4%E2%89%A5%E2%97%8A%EF%AC%81%EF%AC%82

Use system fonts for the interface, DM Sans for documentation and brand assets, Instrument Serif for brand headings, and IBM Plex Mono for technical text.
The three identity families also have locally served WOFF2 conversions. Outlined identity asset provenance is in `../brand/README.md`; source licensing is in the repository’s root `LICENSE`.

Use IBM Plex Sans for the interface, DM Sans for documentation and brand assets, Instrument Serif for brand headings, and IBM Plex Mono for technical text.
93 changes: 93 additions & 0 deletions app/static/fonts/ibmplexsans-OFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"

This Font Software is licensed under the SIL Open Font License, Version 1.1.

This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
2 changes: 1 addition & 1 deletion app/static/onboarding.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ body.onb-open .shell { margin-right: 310px; }
.onb-cat.now .onb-ring { border-color: var(--accent); color: var(--accent); }
.onb-name { font-weight: 500; font-size: .86rem; display: block; }
.onb-where { font-size: .73rem; color: var(--text-faint); }
.onb-cnt { font-family: var(--mono, ui-monospace, monospace); font-size: .75rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.onb-cnt { font-family: var(--mono); font-size: .75rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.onb-subs { list-style: none; margin: 0; padding: 0 .75rem .6rem 2.75rem; display: grid; gap: 1px; }
.onb-subs button { border: 0; background: none; color: inherit; cursor: pointer; padding: .2rem 0; text-align: left; font: inherit; font-size: .82rem;
display: flex; gap: .5rem; align-items: baseline; width: 100%; }
Expand Down
2 changes: 1 addition & 1 deletion app/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
--span-neutral: #8b95a5;

--mono: "IBM Plex Mono", ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
--sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
--radius: 9px;
}
Expand Down
2 changes: 1 addition & 1 deletion app/tests/test_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ def test_local_font_sources_and_licenses_are_present(self):
css = (APP / 'static/fonts.css').read_text()
for source in re.findall(r'url\(([^)]+)\)', css):
self.assertTrue((APP / 'static' / source).is_file(), source)
for family in ('dmsans', 'ibmplexmono', 'instrumentserif'):
for family in ('dmsans', 'ibmplexmono', 'ibmplexsans', 'instrumentserif'):
license = APP / f'static/fonts/{family}-OFL.txt'
self.assertIn('SIL OPEN FONT LICENSE', license.read_text())
Loading