meho-ui 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- meho_ui/__init__.py +28 -0
- meho_ui/brand/__init__.py +94 -0
- meho_ui/brand/css/evoila-daisyui.css +77 -0
- meho_ui/brand/css/evoila-fonts.css +62 -0
- meho_ui/brand/css/evoila-tokens.css +71 -0
- meho_ui/brand/fonts/FONTS.md +64 -0
- meho_ui/brand/fonts/OFL-ibm-plex-mono.txt +93 -0
- meho_ui/brand/fonts/OFL-lato.txt +93 -0
- meho_ui/brand/fonts/OFL-rubik.txt +93 -0
- meho_ui/brand/fonts/ibm-plex-mono-latin-400.woff2 +0 -0
- meho_ui/brand/fonts/ibm-plex-mono-latin-500.woff2 +0 -0
- meho_ui/brand/fonts/lato-latin-400-italic.woff2 +0 -0
- meho_ui/brand/fonts/lato-latin-400.woff2 +0 -0
- meho_ui/brand/fonts/lato-latin-700-italic.woff2 +0 -0
- meho_ui/brand/fonts/lato-latin-700.woff2 +0 -0
- meho_ui/brand/fonts/rubik-latin-var.woff2 +0 -0
- meho_ui/brand/fonts.py +182 -0
- meho_ui/brand/tokens.py +257 -0
- meho_ui/py.typed +0 -0
- meho_ui/shell/__init__.py +21 -0
- meho_ui/testkit/__init__.py +14 -0
- meho_ui-0.2.0.dist-info/METADATA +69 -0
- meho_ui-0.2.0.dist-info/RECORD +25 -0
- meho_ui-0.2.0.dist-info/WHEEL +4 -0
- meho_ui-0.2.0.dist-info/licenses/LICENSE +202 -0
meho_ui/__init__.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# Copyright (c) 2026 evoila Group
|
|
3
|
+
|
|
4
|
+
"""Shared UI foundation for the MEHO web interfaces.
|
|
5
|
+
|
|
6
|
+
Three packages, each filled by a later phase of the frontend build plan:
|
|
7
|
+
|
|
8
|
+
``meho_ui.brand``
|
|
9
|
+
Design tokens, the light DaisyUI theme, and the fonts.
|
|
10
|
+
|
|
11
|
+
``meho_ui.shell``
|
|
12
|
+
The component set, the page frame, and the top bar.
|
|
13
|
+
|
|
14
|
+
``meho_ui.testkit``
|
|
15
|
+
Playwright fixtures and helpers for browser tests.
|
|
16
|
+
|
|
17
|
+
All three are empty at ``0.1.0`` on purpose. This release exists so the
|
|
18
|
+
repo, its packaging and its tag-based release flow are proven before
|
|
19
|
+
anything depends on them -- see ``docs/packages.md`` for what fills each
|
|
20
|
+
one and which ticket does it.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
__all__ = ["__version__"]
|
|
24
|
+
|
|
25
|
+
#: Kept in step with ``project.version`` in ``pyproject.toml`` by hand.
|
|
26
|
+
#: ``docs/releasing.md`` lists it as a release step, and
|
|
27
|
+
#: ``tests/test_packaging.py`` fails the build when the two drift.
|
|
28
|
+
__version__ = "0.2.0"
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# Copyright (c) 2026 evoila Group
|
|
3
|
+
|
|
4
|
+
"""Design tokens, the light theme, and the fonts.
|
|
5
|
+
|
|
6
|
+
**P1.1** landed the tokens and the theme. The palette lives in
|
|
7
|
+
:mod:`meho_ui.brand.tokens`, which is the single source of truth; the two
|
|
8
|
+
stylesheets are generated from it by ``scripts/build_brand_css.py`` and a
|
|
9
|
+
test fails if they drift.
|
|
10
|
+
|
|
11
|
+
Still to come:
|
|
12
|
+
|
|
13
|
+
**P1.2** landed the fonts: Rubik, Lato and IBM Plex Mono as self-hosted
|
|
14
|
+
woff2 with their licences, so no app makes an outside font request. The
|
|
15
|
+
manifest and the ``@font-face`` rules are in :mod:`meho_ui.brand.fonts`.
|
|
16
|
+
|
|
17
|
+
Still to come:
|
|
18
|
+
* **P6.1** -- the single pinned copy of HTMX, Alpine and the live-update
|
|
19
|
+
add-on, with a checksum list, replacing the per-app copies.
|
|
20
|
+
|
|
21
|
+
Two stylesheets, because the three apps cannot consume one:
|
|
22
|
+
|
|
23
|
+
:func:`daisyui_theme_css`
|
|
24
|
+
A ``[data-theme="evoila"]`` block using DaisyUI 5's own variable
|
|
25
|
+
names. meho and Automation take this one.
|
|
26
|
+
|
|
27
|
+
:func:`tokens_css`
|
|
28
|
+
The palette as ``--evoila-*`` custom properties, plus the type scale
|
|
29
|
+
and the focus ring. Knowledge takes this one: it carries no DaisyUI.
|
|
30
|
+
|
|
31
|
+
Both are also importable as files, which is what a Tailwind build wants::
|
|
32
|
+
|
|
33
|
+
from meho_ui.brand import daisyui_theme_path
|
|
34
|
+
|
|
35
|
+
# in the app's own CSS: @import "...";
|
|
36
|
+
print(daisyui_theme_path())
|
|
37
|
+
|
|
38
|
+
Three brand values are adjusted so the theme passes WCAG AA. What was
|
|
39
|
+
published, what is rendered, and why, are all in
|
|
40
|
+
:mod:`meho_ui.brand.tokens` and in ``docs/brand.md``.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
from __future__ import annotations
|
|
44
|
+
|
|
45
|
+
from pathlib import Path
|
|
46
|
+
|
|
47
|
+
from meho_ui.brand import fonts, tokens
|
|
48
|
+
|
|
49
|
+
__all__ = [
|
|
50
|
+
"daisyui_theme_css",
|
|
51
|
+
"daisyui_theme_path",
|
|
52
|
+
"font_face_css",
|
|
53
|
+
"fonts",
|
|
54
|
+
"fonts_dir",
|
|
55
|
+
"tokens",
|
|
56
|
+
"tokens_css",
|
|
57
|
+
"tokens_css_path",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
_CSS_DIR = Path(__file__).resolve().parent / "css"
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def daisyui_theme_path() -> Path:
|
|
64
|
+
"""Return the path of the DaisyUI 5 theme stylesheet."""
|
|
65
|
+
return _CSS_DIR / "evoila-daisyui.css"
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def tokens_css_path() -> Path:
|
|
69
|
+
"""Return the path of the plain custom-property stylesheet."""
|
|
70
|
+
return _CSS_DIR / "evoila-tokens.css"
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def daisyui_theme_css() -> str:
|
|
74
|
+
"""Return the DaisyUI 5 theme stylesheet."""
|
|
75
|
+
return daisyui_theme_path().read_text(encoding="utf-8")
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def tokens_css() -> str:
|
|
79
|
+
"""Return the plain custom-property stylesheet."""
|
|
80
|
+
return tokens_css_path().read_text(encoding="utf-8")
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def fonts_dir() -> Path:
|
|
84
|
+
"""Return the directory of woff2 files and licences to serve statically."""
|
|
85
|
+
return fonts.fonts_dir()
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def font_face_css(base_url: str = fonts.DEFAULT_BASE_URL) -> str:
|
|
89
|
+
"""Return the ``@font-face`` rules, pointed at *base_url*.
|
|
90
|
+
|
|
91
|
+
Use this rather than the generated file when the app serves the fonts
|
|
92
|
+
somewhere other than :data:`meho_ui.brand.fonts.DEFAULT_BASE_URL`.
|
|
93
|
+
"""
|
|
94
|
+
return fonts.font_face_css(base_url)
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* Generated by scripts/build_brand_css.py from meho_ui.brand.tokens.
|
|
2
|
+
* Do not edit by hand: `uv run python scripts/build_brand_css.py --check`
|
|
3
|
+
* fails, and so does the test suite.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* DaisyUI 5 slot names are fixed by the framework; the values are ours.
|
|
7
|
+
* Unlayered on purpose so it beats the plugin's own @layer base output. */
|
|
8
|
+
[data-theme="evoila"] {
|
|
9
|
+
color-scheme: light;
|
|
10
|
+
|
|
11
|
+
--color-base-100: #FFFFFF;
|
|
12
|
+
--color-base-200: #F4F2F2;
|
|
13
|
+
--color-base-300: #B7D5EE;
|
|
14
|
+
--color-base-content: #545866;
|
|
15
|
+
--color-primary: #1D39AA;
|
|
16
|
+
--color-primary-content: #FFFFFF;
|
|
17
|
+
--color-secondary: #1276D1;
|
|
18
|
+
--color-secondary-content: #FFFFFF;
|
|
19
|
+
--color-accent: #0FD8A2;
|
|
20
|
+
--color-accent-content: #1B2C56;
|
|
21
|
+
--color-neutral: #1B2C56;
|
|
22
|
+
--color-neutral-content: #FFFFFF;
|
|
23
|
+
--color-info: #1D39AA;
|
|
24
|
+
--color-info-content: #FFFFFF;
|
|
25
|
+
--color-success: #0FD8A2;
|
|
26
|
+
--color-success-content: #1B2C56;
|
|
27
|
+
--color-warning: #E8A317;
|
|
28
|
+
--color-warning-content: #1B2C56;
|
|
29
|
+
--color-error: #D62828;
|
|
30
|
+
--color-error-content: #FFFFFF;
|
|
31
|
+
|
|
32
|
+
/* DaisyUI reads these under its own names. */
|
|
33
|
+
--radius-selector: 0.5rem;
|
|
34
|
+
--radius-field: 0.5rem;
|
|
35
|
+
--radius-box: 0.875rem;
|
|
36
|
+
--size-selector: 0.25rem;
|
|
37
|
+
--size-field: 0.25rem;
|
|
38
|
+
--border: 1px;
|
|
39
|
+
--depth: 0;
|
|
40
|
+
--noise: 0;
|
|
41
|
+
|
|
42
|
+
/* The same tokens the plain form carries, so a component
|
|
43
|
+
* written against either stylesheet behaves the same. */
|
|
44
|
+
--evoila-radius-selector: 0.5rem;
|
|
45
|
+
--evoila-radius-field: 0.5rem;
|
|
46
|
+
--evoila-radius-box: 0.875rem;
|
|
47
|
+
--evoila-size-selector: 0.25rem;
|
|
48
|
+
--evoila-size-field: 0.25rem;
|
|
49
|
+
--evoila-border: 1px;
|
|
50
|
+
--evoila-depth: 0;
|
|
51
|
+
--evoila-noise: 0;
|
|
52
|
+
|
|
53
|
+
--evoila-space-3xs: 0.125rem;
|
|
54
|
+
--evoila-space-2xs: 0.25rem;
|
|
55
|
+
--evoila-space-xs: 0.5rem;
|
|
56
|
+
--evoila-space-sm: 0.75rem;
|
|
57
|
+
--evoila-space-md: 1rem;
|
|
58
|
+
--evoila-space-lg: 1.5rem;
|
|
59
|
+
--evoila-space-xl: 2rem;
|
|
60
|
+
--evoila-space-2xl: 3rem;
|
|
61
|
+
--evoila-space-3xl: 4rem;
|
|
62
|
+
|
|
63
|
+
--evoila-font-display: "Rubik", ui-sans-serif, system-ui, sans-serif;
|
|
64
|
+
--evoila-font-sans: "Lato", ui-sans-serif, system-ui, sans-serif;
|
|
65
|
+
--evoila-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
66
|
+
--evoila-text-xs: 0.75rem;
|
|
67
|
+
--evoila-text-sm: 0.875rem;
|
|
68
|
+
--evoila-text-base: 1rem;
|
|
69
|
+
--evoila-text-lg: 1.125rem;
|
|
70
|
+
--evoila-text-xl: 1.25rem;
|
|
71
|
+
--evoila-text-2xl: 1.5rem;
|
|
72
|
+
--evoila-text-3xl: 1.875rem;
|
|
73
|
+
|
|
74
|
+
--evoila-focus-ring-width: 3px;
|
|
75
|
+
--evoila-focus-ring-color: #1D39AA;
|
|
76
|
+
--evoila-focus-ring-offset: 2px;
|
|
77
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* Generated by scripts/build_brand_css.py from meho_ui.brand.tokens.
|
|
2
|
+
* Do not edit by hand: `uv run python scripts/build_brand_css.py --check`
|
|
3
|
+
* fails, and so does the test suite.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* Generated from meho_ui.brand.fonts. Self-hosted: no outside requests. */
|
|
7
|
+
|
|
8
|
+
@font-face {
|
|
9
|
+
font-family: "Rubik";
|
|
10
|
+
src: url("/ui/static/fonts/rubik-latin-var.woff2") format("woff2");
|
|
11
|
+
font-weight: 300 900;
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-display: swap;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: "Lato";
|
|
18
|
+
src: url("/ui/static/fonts/lato-latin-400.woff2") format("woff2");
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-display: swap;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@font-face {
|
|
25
|
+
font-family: "Lato";
|
|
26
|
+
src: url("/ui/static/fonts/lato-latin-700.woff2") format("woff2");
|
|
27
|
+
font-weight: 700;
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-display: swap;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@font-face {
|
|
33
|
+
font-family: "Lato";
|
|
34
|
+
src: url("/ui/static/fonts/lato-latin-400-italic.woff2") format("woff2");
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
font-style: italic;
|
|
37
|
+
font-display: swap;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@font-face {
|
|
41
|
+
font-family: "Lato";
|
|
42
|
+
src: url("/ui/static/fonts/lato-latin-700-italic.woff2") format("woff2");
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
font-style: italic;
|
|
45
|
+
font-display: swap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@font-face {
|
|
49
|
+
font-family: "IBM Plex Mono";
|
|
50
|
+
src: url("/ui/static/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-display: swap;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: "IBM Plex Mono";
|
|
58
|
+
src: url("/ui/static/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
|
|
59
|
+
font-weight: 500;
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-display: swap;
|
|
62
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* Generated by scripts/build_brand_css.py from meho_ui.brand.tokens.
|
|
2
|
+
* Do not edit by hand: `uv run python scripts/build_brand_css.py --check`
|
|
3
|
+
* fails, and so does the test suite.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* The brand palette as published, with the same tokens the DaisyUI
|
|
7
|
+
* form carries. Two published colours cannot be used as printed;
|
|
8
|
+
* each ships a `-readable` value beside it, and every colour used as
|
|
9
|
+
* a background ships the foreground that is readable on it.
|
|
10
|
+
*
|
|
11
|
+
* Never set text in: green, warning. Both fail WCAG AA at every size
|
|
12
|
+
* (1.85:1 and 2.17:1 on white). They are badge and icon fills, and
|
|
13
|
+
* their `-content` value is the text that goes on top. */
|
|
14
|
+
:root {
|
|
15
|
+
--evoila-green: #0FD8A2;
|
|
16
|
+
--evoila-light-blue: #1279D6;
|
|
17
|
+
--evoila-blue: #1D39AA;
|
|
18
|
+
--evoila-headline: #1B2C56;
|
|
19
|
+
--evoila-body: #6B7183;
|
|
20
|
+
--evoila-bg: #F4F2F2;
|
|
21
|
+
--evoila-bg-accent: #B7D5EE;
|
|
22
|
+
--evoila-error: #D62828;
|
|
23
|
+
--evoila-warning: #E8A317;
|
|
24
|
+
|
|
25
|
+
/* Use these, not the published value above, wherever the
|
|
26
|
+
* colour carries or backs text. See docs/brand.md. */
|
|
27
|
+
--evoila-body-readable: #545866;
|
|
28
|
+
--evoila-light-blue-readable: #1276D1;
|
|
29
|
+
|
|
30
|
+
/* The foreground that is readable on each background. */
|
|
31
|
+
--evoila-blue-content: #FFFFFF;
|
|
32
|
+
--evoila-light-blue-content: #FFFFFF;
|
|
33
|
+
--evoila-green-content: #1B2C56;
|
|
34
|
+
--evoila-headline-content: #FFFFFF;
|
|
35
|
+
--evoila-error-content: #FFFFFF;
|
|
36
|
+
--evoila-warning-content: #1B2C56;
|
|
37
|
+
|
|
38
|
+
--evoila-radius-selector: 0.5rem;
|
|
39
|
+
--evoila-radius-field: 0.5rem;
|
|
40
|
+
--evoila-radius-box: 0.875rem;
|
|
41
|
+
--evoila-size-selector: 0.25rem;
|
|
42
|
+
--evoila-size-field: 0.25rem;
|
|
43
|
+
--evoila-border: 1px;
|
|
44
|
+
--evoila-depth: 0;
|
|
45
|
+
--evoila-noise: 0;
|
|
46
|
+
|
|
47
|
+
--evoila-space-3xs: 0.125rem;
|
|
48
|
+
--evoila-space-2xs: 0.25rem;
|
|
49
|
+
--evoila-space-xs: 0.5rem;
|
|
50
|
+
--evoila-space-sm: 0.75rem;
|
|
51
|
+
--evoila-space-md: 1rem;
|
|
52
|
+
--evoila-space-lg: 1.5rem;
|
|
53
|
+
--evoila-space-xl: 2rem;
|
|
54
|
+
--evoila-space-2xl: 3rem;
|
|
55
|
+
--evoila-space-3xl: 4rem;
|
|
56
|
+
|
|
57
|
+
--evoila-font-display: "Rubik", ui-sans-serif, system-ui, sans-serif;
|
|
58
|
+
--evoila-font-sans: "Lato", ui-sans-serif, system-ui, sans-serif;
|
|
59
|
+
--evoila-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
60
|
+
--evoila-text-xs: 0.75rem;
|
|
61
|
+
--evoila-text-sm: 0.875rem;
|
|
62
|
+
--evoila-text-base: 1rem;
|
|
63
|
+
--evoila-text-lg: 1.125rem;
|
|
64
|
+
--evoila-text-xl: 1.25rem;
|
|
65
|
+
--evoila-text-2xl: 1.5rem;
|
|
66
|
+
--evoila-text-3xl: 1.875rem;
|
|
67
|
+
|
|
68
|
+
--evoila-focus-ring-width: 3px;
|
|
69
|
+
--evoila-focus-ring-color: #1D39AA;
|
|
70
|
+
--evoila-focus-ring-offset: 2px;
|
|
71
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Vendored webfonts — the evoila brand typography
|
|
2
|
+
|
|
3
|
+
Self-hosted woff2, latin subset. Shipped inside the `meho_ui` wheel and
|
|
4
|
+
copied by each app into whatever it serves statically. No CDN, no
|
|
5
|
+
`node_modules`, no outside request at render time.
|
|
6
|
+
|
|
7
|
+
Two reasons, both load-bearing rather than aesthetic:
|
|
8
|
+
|
|
9
|
+
- **The console is installed in customer networks**, some with no route
|
|
10
|
+
to the public internet. A `fonts.googleapis.com` link renders an
|
|
11
|
+
unstyled page there, at first paint of an operations tool.
|
|
12
|
+
- **A font request tells a third party who is using the console, and
|
|
13
|
+
when.** That request log is not something to hand out.
|
|
14
|
+
|
|
15
|
+
All three families are under the **SIL Open Font License 1.1**. The
|
|
16
|
+
ticket recorded this as "believed to be"; it is now checked against the
|
|
17
|
+
licence text shipped here, by `tests/test_brand_fonts.py`, on every
|
|
18
|
+
commit. OFL is a file-level licence that travels with the font files
|
|
19
|
+
rather than with the repository's code licence, so vendoring OFL fonts
|
|
20
|
+
inside an Apache-2.0 package is fine as long as each family's OFL text
|
|
21
|
+
ships beside them — which the `OFL-*.txt` files do.
|
|
22
|
+
|
|
23
|
+
## The files
|
|
24
|
+
|
|
25
|
+
| File | Family | Style | Weight | Source | SHA256 |
|
|
26
|
+
| --- | --- | --- | --- | --- | --- |
|
|
27
|
+
| `rubik-latin-var.woff2` | Rubik | normal | variable 300–900 | fonts.gstatic.com (Google Fonts v31, latin) | `691cd1d9b4c0cdf31a1dcf04259c86f92c85e69f6622abab7964d81e36890691` |
|
|
28
|
+
| `lato-latin-400.woff2` | Lato | normal | 400 | fonts.gstatic.com (Google Fonts v25, latin) | `918b7dc3e2e2d015c16ce08b57bcb64d2253bafc1707658f361e72865498e537` |
|
|
29
|
+
| `lato-latin-700.woff2` | Lato | normal | 700 | fonts.gstatic.com (Google Fonts v25, latin) | `c447dd7677b419db7b21dbdfc6277c7816a913ffda76fd2e52702df538de0e49` |
|
|
30
|
+
| `lato-latin-400-italic.woff2` | Lato | italic | 400 | fonts.gstatic.com (Google Fonts v25, latin) | `bca1d88ada544d9c80872d4da27133fab6d347361fa26e932b47ec9559088fd0` |
|
|
31
|
+
| `lato-latin-700-italic.woff2` | Lato | italic | 700 | fonts.gstatic.com (Google Fonts v25, latin) | `6c84348296ebe2e2a0830c3962eb02156419d9bc76371c2eadaf7329d827d550` |
|
|
32
|
+
| `ibm-plex-mono-latin-400.woff2` | IBM Plex Mono | normal | 400 | copied from the console's vendored pair | `c36f509c0a8f9f85f29cb44bc8701d8a9e0b14c499e77a884f789ead7093a7ac` |
|
|
33
|
+
| `ibm-plex-mono-latin-500.woff2` | IBM Plex Mono | normal | 500 | copied from the console's vendored pair | `a76f53ca6612e7b3828eec2311098675b7f9849ae4169a8bcef6302aec02a6c0` |
|
|
34
|
+
|
|
35
|
+
Licences: `OFL-rubik.txt` (© 2015 The Rubik Project Authors),
|
|
36
|
+
`OFL-lato.txt` (© 2010–2014 tyPoland Lukasz Dziedzic), and
|
|
37
|
+
`OFL-ibm-plex-mono.txt` (© 2017 IBM Corp., Reserved Font Name "Plex"),
|
|
38
|
+
each fetched from the canonical `google/fonts` OFL directory.
|
|
39
|
+
|
|
40
|
+
## Three choices worth knowing
|
|
41
|
+
|
|
42
|
+
**Rubik is one variable file, Lato is four static ones.** Rubik ships a
|
|
43
|
+
300–900 weight axis, so the 400 and 500 the brand asks for come from a
|
|
44
|
+
single request. Lato has no variable version on its canonical source, so
|
|
45
|
+
its four faces — regular, bold, and both italics — are four files.
|
|
46
|
+
|
|
47
|
+
**IBM Plex Mono was copied, not re-fetched.** The console already
|
|
48
|
+
vendored this exact pair, and its SHA256 is recorded in its own
|
|
49
|
+
`FONTS.md`. Copying keeps the bytes identical across the apps through the
|
|
50
|
+
transition and inherits provenance that was already reviewed; a fresh
|
|
51
|
+
download could have picked up a newer Google Fonts revision and made the
|
|
52
|
+
same family render differently in two apps mid-migration.
|
|
53
|
+
|
|
54
|
+
**Latin subset only.** The console's text is English. A fuller subset is
|
|
55
|
+
a deliberate later decision, not an oversight — it would roughly triple
|
|
56
|
+
these files.
|
|
57
|
+
|
|
58
|
+
## Changing a font
|
|
59
|
+
|
|
60
|
+
Bump the file **and** its SHA256 row here **and** the entry in
|
|
61
|
+
`meho_ui.brand.fonts.FONTS`, in one commit. The checksum test fails
|
|
62
|
+
otherwise, which is the point: a font file is opaque, and a truncated
|
|
63
|
+
download or a quiet re-subset renders as a fallback that nobody notices
|
|
64
|
+
until a customer says the console looks different.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
|
|
5
|
+
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright (c) 2010-2014 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato"
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2015 The Rubik Project Authors (https://github.com/googlefonts/rubik)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|