From bef51873b250e641a4dc414cbc893c099de765a1 Mon Sep 17 00:00:00 2001 From: Benjamin Leonard Date: Thu, 13 Oct 2022 16:29:20 +0100 Subject: [PATCH 1/2] Add code token --- styles/src/tokens.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/styles/src/tokens.json b/styles/src/tokens.json index 27a858bf..b412539f 100644 --- a/styles/src/tokens.json +++ b/styles/src/tokens.json @@ -52,6 +52,19 @@ }, "type": "typography" }, + "code": { + "value": { + "fontFamily": "$fontFamilies.gt-america-mono", + "fontWeight": "Regular OCC", + "lineHeight": "16", + "fontSize": "12", + "letterSpacing": "0", + "paragraphSpacing": "0", + "textCase": "none", + "textDecoration": "none" + }, + "type": "typography" + }, "md": { "value": { "fontFamily": "$fontFamilies.gt-america-mono", @@ -2156,4 +2169,4 @@ "main" ] } -} +} \ No newline at end of file From 49b16c7ad9122cf6bd6bff1dc138e35501fe268c Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:29:58 +0000 Subject: [PATCH 2/2] Update themes from token file --- styles/dist/tailwind-tokens.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/styles/dist/tailwind-tokens.js b/styles/dist/tailwind-tokens.js index 40e0c64a..bec40209 100644 --- a/styles/dist/tailwind-tokens.js +++ b/styles/dist/tailwind-tokens.js @@ -18,6 +18,13 @@ 'font-size': "0.75rem", 'letter-spacing': "0.04rem", 'text-transform': "uppercase", + }, + '.text-mono-code': { + 'font-family': "\"GT America Mono\", monospace", +'font-weight': 400, +'line-height': "1rem", +'font-size': "0.75rem", +'letter-spacing': "0rem", }, '.text-mono-md': { 'font-family': "\"GT America Mono\", monospace",