From ef248321aaf7bef9ae8f6ee62f4c3f5ab4b7f766 Mon Sep 17 00:00:00 2001 From: Adam Argyle Date: Wed, 22 Jan 2020 13:25:01 -0800 Subject: [PATCH] adding system-ui to the font-family list https://caniuse.com/#feat=font-family-system-ui if a browser supports system-ui, it'll choose the best font and won't cascade through the fallback list. this protects tailwind from it's static list not being as up to date with platforms fonts as time goes on. --- src/plugins/css/preflight.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/css/preflight.css b/src/plugins/css/preflight.css index e26039599..5bd3e7edb 100644 --- a/src/plugins/css/preflight.css +++ b/src/plugins/css/preflight.css @@ -63,7 +63,7 @@ ul { */ html { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */ + font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */ line-height: 1.5; /* 2 */ }