Skip to content

Commit 921c5d1

Browse files
Improve font definitions
1 parent 895592b commit 921c5d1

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

front-end/uib-brand.css

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* https://unifyned.com/colors.html extends the above
2020
* https://chromatichq.com/insights/understanding-and-using-hsl-your-css gives calculations for the color wheel
2121
*
22-
* @version: 2024-12-30
22+
* @version: 2025-04-28
2323
* @author: Julian Knight (TotallyInformation)
2424
* @license: Apache 2.0
2525
* @created: 2022-05-02
@@ -52,9 +52,15 @@
5252
* NOTE: no space between : and text!
5353
*/
5454
--uib-css: uib-brand;
55+
56+
/* For nicer emoji's use this as the font-family */
57+
--emoji-fonts: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Twemoji Mozilla", "EmojiOne Color", "Android Emoji";
58+
5559
/* Sans-serif is much easier to read on-screen */
56-
/* --font-family: sans-serif; */
57-
--font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
60+
/* Update 2025-04-28 to use https://github.com/system-fonts/modern-font-stacks - incl better emoji's as well */
61+
--font-family: system-ui, sans-serif, var(--emoji-fonts);
62+
--code-font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace, var(--emoji-fonts);
63+
--cursive-font-family: 'Segoe Print', 'Bradley Hand', Chilanka, TSCu_Comic, casual, cursive, var(--emoji-fonts);
5864

5965
--brand-hue: 200;
6066
--text-hue: var(--brand-hue);
@@ -84,11 +90,6 @@
8490
/* For the .grid-fit class, the minimum child element size */
8591
--grid-fit-min: 15rem;
8692

87-
/* For nicer emoji's use this as the font-family */
88-
--emoji-fonts: "Twemoji Mozilla", "Apple Color Emoji", "Segoe UI Emoji",
89-
"Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji",
90-
sans-serif;
91-
9293
/*#region --- Brand --- */
9394
--brand: hsl(
9495
var(--brand-hue)

0 commit comments

Comments
 (0)