I'll update the Farsi font and scrollbar styling to match the Dark Souls Gothic aesthetic.
Now let me update the LearnPanel scrollbar and the textarea fields to use the Amiri font for Persian/Arabic input:
Now let me add a utility to detect Persian/Arabic text, then update the textareas to use the Amiri font when appropriate:
Now update the EncodePanel to use the Persian font detection:
Let me use a more reliable inline style approach for the font switching:
Now update EncodePanel to use getInputClass on both textareas:
Now update the output textarea in EncodePanel:
Now update the DecodePanel:
Now update the LearnPanel scrollbar and add a Persian example:
Now let me update the main content area in App.tsx to use the gothic-scrollbar utility so the scrollbar is consistent:
Let me also ensure the main section wrapper gets the scrollbar class:
In Tailwind CSS v4, custom utility classes need to be defined using @utility. Let me fix the CSS:
Tailwind v4 @utility doesn't support pseudo-classes like :hover. Let me use plain CSS with @layer components instead:
Build succeeded. Let me verify the key files are consistent:
Everything is clean and consistent. Here's a summary of the changes I made:
✅ Changes Applied
1. Persian/Farsi Font — Amiri
2. Gothic Scrollbar (Global + Tome of Knowledge)
src/index.css: A unified gothic-scrollbar utility class with:
- Thin, dark track (
#0c0a09) bordered by a #44403c line
- Thumb with a gold → dark gold gradient (
#b49358 → #735d33)
- Hover state shifts to a fire-orange glow (
#e15c22)
- Applied globally via
* { scrollbar-width: thin; ... } and explicitly on the LearnPanel via the gothic-scrollbar class
LearnPanel.tsx: The overflow container now uses gothic-scrollbar instead of the generic custom-scrollbar.
Files built: index.html, src/index.css, src/utils/language.ts, src/components/EncodePanel.tsx, src/components/DecodePanel.tsx, src/components/LearnPanel.tsx