Skip to content

Commit e88c6e4

Browse files
abaza738ghostdevvautofix-ci[bot]
authored
feat(i18n): add Arabic font support (#1511)
Co-authored-by: Willow (GHOST) <git@willow.sh> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 1106764 commit e88c6e4

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

lunaria/styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export const BaseStyles = html`
77
--ln-font-fallback:
88
-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji,
99
Segoe UI Emoji;
10-
--ln-font-body: 'Geist', var(--ln-font-fallback);
11-
--ln-font-mono: 'Geist Mono', monospace;
10+
--ln-font-body: 'Geist', 'IBM Plex Sans Arabic', var(--ln-font-fallback);
11+
--ln-font-mono: 'Geist Mono', 'IBM Plex Sans Arabic', monospace;
1212
1313
/* Light theme colors */
1414
--ln-color-white: #f9fafb;

nuxt.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,12 @@ export default defineNuxtConfig({
277277
preload: true,
278278
global: true,
279279
},
280+
{
281+
name: 'IBM Plex Sans Arabic',
282+
weights: ['400', '500', '600'],
283+
global: true,
284+
subsets: ['arabic'],
285+
},
280286
],
281287
},
282288

uno.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export default defineConfig({
4343
theme: {
4444
spacing: { DEFAULT: '4px' },
4545
font: {
46-
mono: "'Geist Mono', monospace",
47-
sans: "'Geist', system-ui, -apple-system, sans-serif",
46+
mono: "'Geist Mono', 'IBM Plex Sans Arabic', monospace",
47+
sans: "'Geist', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif",
4848
},
4949
text: {
5050
'2xs': { fontSize: '0.6875rem' }, // 11px

0 commit comments

Comments
 (0)