aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2023-04-04 10:20:52 +0200
committersonartech <sonartech@sonarsource.com>2023-04-11 20:03:15 +0000
commitdb412aaf26ffc6bfa83ec216cab97ddbb408e8d7 (patch)
tree8d3b89a67c088068eee2d6bb39959570cd041f69 /server
parentba00face3dc7fbab07c4526b8035a6f42ce2dc2d (diff)
downloadsonarqube-db412aaf26ffc6bfa83ec216cab97ddbb408e8d7.tar.gz
sonarqube-db412aaf26ffc6bfa83ec216cab97ddbb408e8d7.zip
SONAR-18940 Embed Inter font
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/config/esbuild-config.js2
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-Black.woff2bin0 -> 102868 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-BlackItalic.woff2bin0 -> 108752 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-Bold.woff2bin0 -> 106140 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-BoldItalic.woff2bin0 -> 111808 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-ExtraBold.woff2bin0 -> 106108 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-ExtraBoldItalic.woff2bin0 -> 111708 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-ExtraLight.woff2bin0 -> 104232 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-ExtraLightItalic.woff2bin0 -> 111392 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-Italic.woff2bin0 -> 106876 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-Light.woff2bin0 -> 104332 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-LightItalic.woff2bin0 -> 111332 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-Medium.woff2bin0 -> 105924 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-MediumItalic.woff2bin0 -> 112184 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-Regular.woff2bin0 -> 98868 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-SemiBold.woff2bin0 -> 105804 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-SemiBoldItalic.woff2bin0 -> 112048 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-Thin.woff2bin0 -> 99632 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/Inter-ThinItalic.woff2bin0 -> 106496 bytes
-rw-r--r--server/sonar-web/public/fonts/Inter/inter.css134
-rw-r--r--server/sonar-web/src/main/js/app/styles/init/base.css1
-rw-r--r--server/sonar-web/src/main/js/app/styles/sonar.ts2
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
new file mode 100644
index 00000000000..68f64c9ed98
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-Black.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-BlackItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-BlackItalic.woff2
new file mode 100644
index 00000000000..1c9c7ca8b04
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-BlackItalic.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Bold.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Bold.woff2
new file mode 100644
index 00000000000..2846f29cc8a
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-Bold.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-BoldItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-BoldItalic.woff2
new file mode 100644
index 00000000000..0b1fe8e1255
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-BoldItalic.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraBold.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraBold.woff2
new file mode 100644
index 00000000000..c24c2bdc2f0
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-ExtraBold.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraBoldItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraBoldItalic.woff2
new file mode 100644
index 00000000000..4a81dc79826
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-ExtraBoldItalic.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraLight.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraLight.woff2
new file mode 100644
index 00000000000..f2ea706fafa
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-ExtraLight.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-ExtraLightItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ExtraLightItalic.woff2
new file mode 100644
index 00000000000..9af717ba91b
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-ExtraLightItalic.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Italic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Italic.woff2
new file mode 100644
index 00000000000..a619fc54861
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-Italic.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Light.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Light.woff2
new file mode 100644
index 00000000000..bc4be6658b0
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-Light.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-LightItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-LightItalic.woff2
new file mode 100644
index 00000000000..842b2dfcb77
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-LightItalic.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Medium.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Medium.woff2
new file mode 100644
index 00000000000..f92498a2ecf
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-Medium.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-MediumItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-MediumItalic.woff2
new file mode 100644
index 00000000000..0e3019f4ae7
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-MediumItalic.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Regular.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Regular.woff2
new file mode 100644
index 00000000000..6c2b6893d59
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-Regular.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-SemiBold.woff2 b/server/sonar-web/public/fonts/Inter/Inter-SemiBold.woff2
new file mode 100644
index 00000000000..611e90c958f
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-SemiBold.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-SemiBoldItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-SemiBoldItalic.woff2
new file mode 100644
index 00000000000..545685bd2c6
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-SemiBoldItalic.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-Thin.woff2 b/server/sonar-web/public/fonts/Inter/Inter-Thin.woff2
new file mode 100644
index 00000000000..abbc3a5c962
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-Thin.woff2
Binary files differ
diff --git a/server/sonar-web/public/fonts/Inter/Inter-ThinItalic.woff2 b/server/sonar-web/public/fonts/Inter/Inter-ThinItalic.woff2
new file mode 100644
index 00000000000..ab0b2002a3a
--- /dev/null
+++ b/server/sonar-web/public/fonts/Inter/Inter-ThinItalic.woff2
Binary files differ
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';