Merge branch 'tajawal' into 'main'
Use Tajawal font for Arabic Closes #1361 See merge request soapbox-pub/soapbox!2788
This commit is contained in:
commit
f715e3567c
5 changed files with 70 additions and 0 deletions
|
@ -49,6 +49,7 @@
|
|||
"@floating-ui/react": "^0.26.0",
|
||||
"@fontsource/inter": "^5.0.0",
|
||||
"@fontsource/roboto-mono": "^5.0.0",
|
||||
"@fontsource/tajawal": "^5.0.8",
|
||||
"@gamestdio/websocket": "^0.3.2",
|
||||
"@lexical/clipboard": "^0.12.2",
|
||||
"@lexical/hashtag": "^0.12.2",
|
||||
|
|
|
@ -18,6 +18,7 @@ import 'line-awesome/dist/font-awesome-line-awesome/css/all.css';
|
|||
import 'react-datepicker/dist/react-datepicker.css';
|
||||
|
||||
import './iframe';
|
||||
import './styles/i18n.css';
|
||||
import './styles/application.scss';
|
||||
import './styles/tailwind.css';
|
||||
|
||||
|
|
62
src/styles/i18n.css
Normal file
62
src/styles/i18n.css
Normal file
|
@ -0,0 +1,62 @@
|
|||
@font-face {
|
||||
font-family: 'Soapbox i18n';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 200;
|
||||
src: url('@fontsource/tajawal/files/tajawal-arabic-200-normal.woff2') format('woff2'), url('@fontsource/tajawal/files/tajawal-arabic-200-normal.woff') format('woff');
|
||||
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Soapbox i18n';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 300;
|
||||
src: url('@fontsource/tajawal/files/tajawal-arabic-300-normal.woff2') format('woff2'), url('@fontsource/tajawal/files/tajawal-arabic-300-normal.woff') format('woff');
|
||||
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Soapbox i18n';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 400;
|
||||
src: url('@fontsource/tajawal/files/tajawal-arabic-400-normal.woff2') format('woff2'), url('@fontsource/tajawal/files/tajawal-arabic-400-normal.woff') format('woff');
|
||||
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Soapbox i18n';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 500;
|
||||
src: url('@fontsource/tajawal/files/tajawal-arabic-500-normal.woff2') format('woff2'), url('@fontsource/tajawal/files/tajawal-arabic-500-normal.woff') format('woff');
|
||||
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Soapbox i18n';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 700;
|
||||
src: url('@fontsource/tajawal/files/tajawal-arabic-700-normal.woff2') format('woff2'), url('@fontsource/tajawal/files/tajawal-arabic-700-normal.woff') format('woff');
|
||||
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Soapbox i18n';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 800;
|
||||
src: url('@fontsource/tajawal/files/tajawal-arabic-800-normal.woff2') format('woff2'), url('@fontsource/tajawal/files/tajawal-arabic-800-normal.woff') format('woff');
|
||||
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Soapbox i18n';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
font-weight: 900;
|
||||
src: url('@fontsource/tajawal/files/tajawal-arabic-900-normal.woff2') format('woff2'), url('@fontsource/tajawal/files/tajawal-arabic-900-normal.woff') format('woff');
|
||||
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
|
||||
}
|
|
@ -21,6 +21,7 @@ module.exports = {
|
|||
},
|
||||
fontFamily: {
|
||||
'sans': [
|
||||
'Soapbox i18n',
|
||||
'Inter',
|
||||
'ui-sans-serif',
|
||||
'system-ui',
|
||||
|
|
|
@ -1436,6 +1436,11 @@
|
|||
resolved "https://registry.yarnpkg.com/@fontsource/roboto-mono/-/roboto-mono-5.0.8.tgz#9b3df61f884f46e12d3eca46e75517fde58da68e"
|
||||
integrity sha512-vjnNX8zQCSp4HadUJ3gpZiizCsK/ROjgGMpd4bcRxuyiTNGGMaznmKbhqdyVeFVap1sX8h2Qu380awaotey/mQ==
|
||||
|
||||
"@fontsource/tajawal@^5.0.8":
|
||||
version "5.0.8"
|
||||
resolved "https://registry.yarnpkg.com/@fontsource/tajawal/-/tajawal-5.0.8.tgz#cd8a593ec5062b283b093b56ee5d38b6b97fa93d"
|
||||
integrity sha512-KILlXB6B8YYcssz3pccPs/4s1XcXwTWogCtE4Ag3oTpK+81DIQLc2b9o77UiBP4yC17MmqeOp1lvoaJQP80RoA==
|
||||
|
||||
"@formatjs/ecma402-abstract@1.11.4":
|
||||
version "1.11.4"
|
||||
resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.11.4.tgz#b962dfc4ae84361f9f08fbce411b4e4340930eda"
|
||||
|
|
Loading…
Reference in a new issue