Skip to content

chore(cleanup): remove font customization from Settings → Theme #29

Closed

Description

@gkhngyk

What's wrong

The Settings → Theme page has a "Font" card letting users switch
between Geist, Inter, and Plus Jakarta Sans. We're cutting this — the
default font is good as-is, the picker adds surface area no one's
asking for, and it's the only place in the app that overrides
typography at runtime.

After this PR, the dashboard keeps rendering in the current default
(Inter, set in globals.css).

What to remove

Delete these files entirely:

  • web/src/components/settings/font-switch.tsx
  • web/src/components/providers/font-provider.tsx
  • web/src/stores/use-font-store.ts

Remove the references:

  • web/src/app/layout.tsx — drop the FontProvider import (line ~4)
    and the <FontProvider /> element (line ~75)
  • web/src/app/[locale]/(dashboard)/dashboard/settings/page.tsx —
    drop the FontSwitch import (line ~14) and the whole Font Card
    block (around line 141–149)
  • web/messages/en.json — drop the font and fontDescription keys

Don't touch

  • web/src/app/globals.css — already declares
    --font-sans: 'Inter', ... as the default. Leave it as is; this is
    what makes the page keep looking the same after removal.

How to verify

  1. Run the app, open /dashboard/settings → Theme tab
  2. The Theme card stays; the Font card is gone
  3. Visit any dashboard page (Insights, Brands, etc.) — text renders in
    the same font as before (Inter)
  4. yarn typecheck and yarn lint pass with zero errors

Leftover note: existing users will have a font-store key in their
browser localStorage. It's harmless — nothing reads it anymore and
it'll go away the next time they clear site data. No migration needed.

Contribution guide

See CONTRIBUTING.md.

Activity

  1. added
    good first issue
    help wanted
    on May 16, 2026
  2. nightcityblade commented on May 16, 2026

    @nightcityblade
    Contributor

    Hi, I'd like to work on this. I'll submit a PR shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions