﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29936	Improved font customization in the admin	Antonio Cavedoni	nobody	"The admin is pretty flexible when it comes to formatting. One can extend the `extrastyle` block in the  `admin/base_site.html` (which is actually defined in `admin/base.html`) and override / inject whatever one may need in the stylesheet. However, when it comes to customizing the fonts in the admin, there currently is a big limitation due to the way the admin fonts (Roboto) are being loaded. `admin/css/base.css` is referenced in a non-extendable section of `admin/base.html`, and the first thing it does is to `@import fonts.css`, which in turn loads a bunch of woff files for Roboto. If one were to customize the fonts in their admin, they would still find themselves loading these woffs, even if unused.

So I propose we remove the `@import` in `admin/css/base.css` and replace it with a `<link rel=""stylesheet"">` inside an overridable block in `base.html`. Right now I called it `adminfonts` for lack of a better name. 

With that in place, a project can extend `base_site.html`, empty out `adminfonts` and add whatever color / font customizations in the existing `extrastyle` block.

This change would also offer some greater flexibility for users to at least improve the situation for themselves when it comes to Django’s default international font challenges—see issue #29122, for instance."	Cleanup/optimization	closed	contrib.admin	2.1	Normal	invalid	css roboto fonts woff font	elky	Accepted	1	0	0	0	0	1
