diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2023-04-04 10:20:52 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-04-11 20:03:15 +0000 |
commit | db412aaf26ffc6bfa83ec216cab97ddbb408e8d7 (patch) | |
tree | 8d3b89a67c088068eee2d6bb39959570cd041f69 /server | |
parent | ba00face3dc7fbab07c4526b8035a6f42ce2dc2d (diff) | |
download | sonarqube-db412aaf26ffc6bfa83ec216cab97ddbb408e8d7.tar.gz sonarqube-db412aaf26ffc6bfa83ec216cab97ddbb408e8d7.zip |
SONAR-18940 Embed Inter font
Diffstat (limited to 'server')
22 files changed, 137 insertions, 2 deletions
diff --git a/server/sonar-web/config/esbuild-config.js b/server/sonar-web/config/esbuild-config.js index b0a861f8fa2..3c1ec5150c1 100644 --- a/server/sonar-web/config/esbuild-config.js +++ b/server/sonar-web/config/esbuild-config.js @@ -56,7 +56,7 @@ module.exports = (release) => { return { entryPoints: ['src/main/js/app/index.ts'], tsconfig: './tsconfig.json', - external: ['/images/*'], + external: ['/images/*', '/fonts/*'], loader: { '.png': 'dataurl', '.md': 'text', diff --git a/server/sonar-web/public/fonts/Inter/Inter-Black.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Black.woff2 Binary files differnew file mode 100644 index 00000000000..68f64c9ed98 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-Black.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-BlackItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-BlackItalic.woff2 Binary files differnew file mode 100644 index 00000000000..1c9c7ca8b04 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-BlackItalic.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-Bold.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Bold.woff2 Binary files differnew file mode 100644 index 00000000000..2846f29cc8a --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-Bold.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-BoldItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-BoldItalic.woff2 Binary files differnew file mode 100644 index 00000000000..0b1fe8e1255 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-BoldItalic.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraBold.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraBold.woff2 Binary files differnew file mode 100644 index 00000000000..c24c2bdc2f0 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-ExtraBold.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraBoldItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraBoldItalic.woff2 Binary files differnew file mode 100644 index 00000000000..4a81dc79826 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-ExtraBoldItalic.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraLight.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraLight.woff2 Binary files differnew file mode 100644 index 00000000000..f2ea706fafa --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-ExtraLight.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraLightItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraLightItalic.woff2 Binary files differnew file mode 100644 index 00000000000..9af717ba91b --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-ExtraLightItalic.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-Italic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Italic.woff2 Binary files differnew file mode 100644 index 00000000000..a619fc54861 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-Italic.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-Light.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Light.woff2 Binary files differnew file mode 100644 index 00000000000..bc4be6658b0 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-Light.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-LightItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-LightItalic.woff2 Binary files differnew file mode 100644 index 00000000000..842b2dfcb77 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-LightItalic.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-Medium.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Medium.woff2 Binary files differnew file mode 100644 index 00000000000..f92498a2ecf --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-Medium.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-MediumItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-MediumItalic.woff2 Binary files differnew file mode 100644 index 00000000000..0e3019f4ae7 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-MediumItalic.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-Regular.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Regular.woff2 Binary files differnew file mode 100644 index 00000000000..6c2b6893d59 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-Regular.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-SemiBold.woff2 b/server/sonar-web/public/fonts/Inter/Inter-SemiBold.woff2 Binary files differnew file mode 100644 index 00000000000..611e90c958f --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-SemiBold.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-SemiBoldItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-SemiBoldItalic.woff2 Binary files differnew file mode 100644 index 00000000000..545685bd2c6 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-SemiBoldItalic.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-Thin.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Thin.woff2 Binary files differnew file mode 100644 index 00000000000..abbc3a5c962 --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-Thin.woff2 diff --git a/server/sonar-web/public/fonts/Inter/Inter-ThinItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ThinItalic.woff2 Binary files differnew file mode 100644 index 00000000000..ab0b2002a3a --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/Inter-ThinItalic.woff2 diff --git a/server/sonar-web/public/fonts/Inter/inter.css b/server/sonar-web/public/fonts/Inter/inter.css new file mode 100644 index 00000000000..f434cf0582d --- /dev/null +++ b/server/sonar-web/public/fonts/Inter/inter.css @@ -0,0 +1,134 @@ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 100; + font-display: swap; + src: url('/fonts/Inter/Inter-Thin.woff2?v=3.19') format('woff2'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 100; + font-display: swap; + src: url('/fonts/Inter/Inter-ThinItalic.woff2?v=3.19') format('woff2'); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 200; + font-display: swap; + src: url('/fonts/Inter/Inter-ExtraLight.woff2?v=3.19') format('woff2'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 200; + font-display: swap; + src: url('/fonts/Inter/Inter-ExtraLightItalic.woff2?v=3.19') format('woff2'); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 300; + font-display: swap; + src: url('/fonts/Inter/Inter-Light.woff2?v=3.19') format('woff2'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 300; + font-display: swap; + src: url('/fonts/Inter/Inter-LightItalic.woff2?v=3.19') format('woff2'); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('/fonts/Inter/Inter-Regular.woff2?v=3.19') format('woff2'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url('/fonts/Inter/Inter-Italic.woff2?v=3.19') format('woff2'); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('/fonts/Inter/Inter-Medium.woff2?v=3.19') format('woff2'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 500; + font-display: swap; + src: url('/fonts/Inter/Inter-MediumItalic.woff2?v=3.19') format('woff2'); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url('/fonts/Inter/Inter-SemiBold.woff2?v=3.19') format('woff2'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 600; + font-display: swap; + src: url('/fonts/Inter/Inter-SemiBoldItalic.woff2?v=3.19') format('woff2'); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('/fonts/Inter/Inter-Bold.woff2?v=3.19') format('woff2'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: url('/fonts/Inter/Inter-BoldItalic.woff2?v=3.19') format('woff2'); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 800; + font-display: swap; + src: url('/fonts/Inter/Inter-ExtraBold.woff2?v=3.19') format('woff2'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 800; + font-display: swap; + src: url('/fonts/Inter/Inter-ExtraBoldItalic.woff2?v=3.19') format('woff2'); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 900; + font-display: swap; + src: url('/fonts/Inter/Inter-Black.woff2?v=3.19') format('woff2'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 900; + font-display: swap; + src: url('/fonts/Inter/Inter-BlackItalic.woff2?v=3.19') format('woff2'); +} diff --git a/server/sonar-web/src/main/js/app/styles/init/base.css b/server/sonar-web/src/main/js/app/styles/init/base.css index 985e1baf773..ac1826c2bcd 100644 --- a/server/sonar-web/src/main/js/app/styles/init/base.css +++ b/server/sonar-web/src/main/js/app/styles/init/base.css @@ -17,7 +17,6 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - @tailwind base; @tailwind components; @tailwind utilities; diff --git a/server/sonar-web/src/main/js/app/styles/sonar.ts b/server/sonar-web/src/main/js/app/styles/sonar.ts index d4b3d4351d9..b62de46e3a6 100644 --- a/server/sonar-web/src/main/js/app/styles/sonar.ts +++ b/server/sonar-web/src/main/js/app/styles/sonar.ts @@ -20,6 +20,8 @@ /* * The esbuild postcss plugin fails to handle CSS `@import` */ +import '../../../../../public/fonts/Inter/inter.css'; + import './components/badges.css'; import './components/boxed-group.css'; import './components/columns.css'; |