Skip to content

Commit 21d6868

Browse files
committed
feat(i18n): add Arabic font support
1 parent 7d69561 commit 21d6868

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
@@ -232,6 +232,12 @@ export default defineNuxtConfig({
232232
preload: true,
233233
global: true,
234234
},
235+
{
236+
name: 'IBM Plex Sans Arabic',
237+
weights: ['400', '500', '600'],
238+
global: true,
239+
subsets: ['arabic'],
240+
},
235241
],
236242
},
237243

uno.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export default defineConfig({
4141
theme: {
4242
spacing: { DEFAULT: '4px' },
4343
font: {
44-
mono: "'Geist Mono', monospace",
45-
sans: "'Geist', system-ui, -apple-system, sans-serif",
44+
mono: "'Geist Mono', 'IBM Plex Sans Arabic', monospace",
45+
sans: "'Geist', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif",
4646
},
4747
text: {
4848
'2xs': { fontSize: '0.6875rem' }, // 11px

0 commit comments

Comments
 (0)