Some custom themes use code to generate the face definitions programmatically, which uses other variables like this.
I'd like to export all plain face settings as if they are shown in the buffer created by customize-face
to an Elisp file like
(custom-set-faces
'(citar-highlight ((t :bold nil)))
'(code-cells-header-line ((t :inherit font-lock-comment-face)))
'(comint-highlight-prompt ((t nil)))
'(diff-refine-added ((t (:background "#bbffbb" :inherit diff-refine-changed))))
'(diff-refine-removed ((t (:inherit diff-refine-changed :background "#ffcccc" :strike-through nil))))
'(telega-msg-heading ((t (:background "gray94" :family "FZYouHeiS"))))
;; ...
)
with all variables evaluated and replaced by plain color strings, font names, etc. How can I do that?