Problem/Motivation
I had opened that issue already over in the Gin queue https://git.drupalcode.org/project/gin/-/work_items/3506329
There are color contrast and styling issues for buttons on edit pages for text format that are using ckeditor (for example admin/config/content/formats/manage/full_html?destination=/admin/config/content/formats)
Light mode
Button border (#e6e6e6) page background (#ffffff) 1.25:1
Button background (#eeeeee) page background (#ffffff) 1.16:1

Dark mode
In dark mode still a white background from light mode is being used. that what the available buttons are recognizeable but breaking the stylistic consistency of the dark mode. while the active toolbar has in addition to the white background the problem from light mode, light grey button against a white background.

due to the fact the purpose of the text format page is to rearrange available and active buttons by drag and drop and that kind of interactable items have to be recognizeable so a required minimum of 3:1 is necessary to meet SC1.4.11... in the context of a node edit form it is debateable if individual buttons have to be discernable.
Steps to reproduce
Go to appearance/settings/default_admin and switch between light and dark mode to see the output on a text format like admin/config/content/formats/manage/full_html?destination=/admin/config/content/formats
Proposed resolution
- Ensure that the buttons have a contrast of 3:1 against the background
- Adjust the background from white to the correct dark color in dark mode
Comments