refactor: Update font-family to Arimo for better readability and consistency
This commit is contained in:
parent
dc5ccd43ca
commit
8b2e2baeb4
BIN
src/assets/fonts/Arimo.ttf
Normal file
BIN
src/assets/fonts/Arimo.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,25 +1,19 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Inter";
|
font-family: "Arimo";
|
||||||
src: url("inter.ttf") format("truetype");
|
src: url("fonts/Arimo.ttf");
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
.arimo {
|
||||||
font-family: "Onest";
|
font-family: "Arimo", sans-serif !important;
|
||||||
src: url("onest.ttf") format("truetype");
|
|
||||||
}
|
|
||||||
|
|
||||||
.inter {
|
|
||||||
font-family: "Inter", sans-serif !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.onest {
|
|
||||||
font-family: "Onest", sans-serif !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.ant-select-selection-search-input {
|
.ant-select-selection-search-input {
|
||||||
border: none !important;
|
border: none !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
|
@ -19,7 +19,7 @@ function IndexOption() {
|
|||||||
algorithm:
|
algorithm:
|
||||||
mode === "dark" ? theme.darkAlgorithm : theme.defaultAlgorithm,
|
mode === "dark" ? theme.darkAlgorithm : theme.defaultAlgorithm,
|
||||||
token: {
|
token: {
|
||||||
fontFamily: i18n.language === "ru" ? "Onest" : "Inter"
|
fontFamily: "Arimo"
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
renderEmpty={() => (
|
renderEmpty={() => (
|
||||||
|
@ -20,7 +20,7 @@ function IndexSidepanel() {
|
|||||||
algorithm:
|
algorithm:
|
||||||
mode === "dark" ? theme.darkAlgorithm : theme.defaultAlgorithm,
|
mode === "dark" ? theme.darkAlgorithm : theme.defaultAlgorithm,
|
||||||
token: {
|
token: {
|
||||||
fontFamily: i18n.language === "ru" ? "Onest" : "Inter"
|
fontFamily: "Arimo"
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
renderEmpty={() => (
|
renderEmpty={() => (
|
||||||
|
@ -10,16 +10,13 @@ export const OptionRouting = () => {
|
|||||||
const { i18n } = useTranslation()
|
const { i18n } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div className={`${mode === "dark" ? "dark" : "light"} arimo`}>
|
||||||
className={`${mode === "dark" ? "dark" : "light"} ${
|
|
||||||
i18n.language === "ru" ? "onest" : "inter"
|
|
||||||
}`}>
|
|
||||||
<Suspense fallback={<PageAssistLoader />}>
|
<Suspense fallback={<PageAssistLoader />}>
|
||||||
{import.meta.env.BROWSER === "chrome" ? (
|
{import.meta.env.BROWSER === "chrome" ? (
|
||||||
<OptionRoutingChrome />
|
<OptionRoutingChrome />
|
||||||
) : (
|
) : (
|
||||||
<OptionRoutingFirefox />
|
<OptionRoutingFirefox />
|
||||||
)}
|
)}
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
@ -30,16 +27,13 @@ export const SidepanelRouting = () => {
|
|||||||
const { i18n } = useTranslation()
|
const { i18n } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div className={`${mode === "dark" ? "dark" : "light"} arimo`}>
|
||||||
className={`${mode === "dark" ? "dark" : "light"} ${
|
|
||||||
i18n.language === "ru" ? "onest" : "inter"
|
|
||||||
}`}>
|
|
||||||
<Suspense fallback={<PageAssistLoader />}>
|
<Suspense fallback={<PageAssistLoader />}>
|
||||||
{import.meta.env.BROWSER === "chrome" ? (
|
{import.meta.env.BROWSER === "chrome" ? (
|
||||||
<SidepanelRoutingChrome />
|
<SidepanelRoutingChrome />
|
||||||
) : (
|
) : (
|
||||||
<SidepanelRoutingFirefox />
|
<SidepanelRoutingFirefox />
|
||||||
)}
|
)}
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@ -3,5 +3,5 @@ module.exports = {
|
|||||||
mode: "jit",
|
mode: "jit",
|
||||||
darkMode: "class",
|
darkMode: "class",
|
||||||
content: ["./src/**/*.tsx"],
|
content: ["./src/**/*.tsx"],
|
||||||
plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography"),]
|
plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography")]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user