|
@@ -1,22 +1,40 @@
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ * # Typography
|
|
|
+ * Note: Tailwind does not automatically escape font names.
|
|
|
+ * If a font name contains an invalid identifier (like a space), we wrap it in quotes to escape the invalid characters.
|
|
|
+ */
|
|
|
|
|
|
+
|
|
|
+ * System UI Font stack for primary usage.
|
|
|
+ * Optimised for built-in fonts of each major operating system, with support for emojis.
|
|
|
+ */
|
|
|
const systemUIFontStack = [
|
|
|
+
|
|
|
'-apple-system',
|
|
|
+
|
|
|
'BlinkMacSystemFont',
|
|
|
+
|
|
|
'"Segoe UI"',
|
|
|
'system-ui',
|
|
|
+
|
|
|
'Roboto',
|
|
|
+
|
|
|
'"Helvetica Neue"',
|
|
|
+
|
|
|
'Arial',
|
|
|
+
|
|
|
'sans-serif',
|
|
|
+
|
|
|
'Apple Color Emoji',
|
|
|
'"Segoe UI Emoji"',
|
|
|
'"Segoe UI Symbol"',
|
|
|
'"Noto Color Emoji"',
|
|
|
];
|
|
|
|
|
|
+
|
|
|
+ * System UI Font stack for mono-space usage.
|
|
|
+ * Optimised for built-in fonts of each major operating system, with support for emojis.
|
|
|
+ */
|
|
|
const monoFontStack = [
|
|
|
|
|
|
'ui-monospace',
|
|
@@ -49,8 +67,10 @@ const fontFamily = {
|
|
|
mono: monoFontStack,
|
|
|
};
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ * Key is equal to the pixel size of the rem value.
|
|
|
+ * These values are used in combinations create typography defaults
|
|
|
+ */
|
|
|
const fontSize = {
|
|
|
14: '0.875rem',
|
|
|
15: '0.9375rem',
|
|
@@ -70,7 +90,9 @@ const fontWeight = {
|
|
|
extrabold: 800,
|
|
|
};
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+ * These are set to ems to be relative to the font size.
|
|
|
+ */
|
|
|
const letterSpacing = {
|
|
|
tighter: '-0.05em',
|
|
|
tight: '-0.025em',
|