Created on 24 June 2025, about 1 month ago

Problem/Motivation

I used a `gin-custom.css` file stored in `sites/default/files` to change the default font og the Gin Admin Theme. It worked in version 4.0.6. I upgraded the Gin theme to version 5.0.2 and it it stopped working.

Steps to reproduce

Steps to reproduce is simple. A `gin-custom.css` with font declarations and a directory with the fonts in the `sites/default/files/fonts` directory. Ugrade from 4.0.6 to 5.0.2 and the standard Inter font will be presented in the browser.

Proposed resolution

I asked my AI bot in Warp (sorry, I'm a designer and no coder) and it answered:

"1. Fonts exist and are accesssible
2. CSS file exists and is accessible
3. Gin 5.0 has a "duplicate key" error in gin.libraries.yml preventing the cystom CSS library from loading."

Proposed by the bot was create `gin_custom_library.yml`:

fonts:
  css:
    theme:
      css/fonts.css: {}

I leave by this...

Thanks for reading!

πŸ› Bug report
Status

Active

Version

5.0

Component

User interface

Created by

πŸ‡³πŸ‡±Netherlands sproets

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024