I like this idea, although I think that they should be only one code, which might program both the foreground and background (and font styles if applicable), rather than separate codes for foreground and for background.
Anyone interested, ping me (address in profile) and encourage me to set up a repo to discuss and formulate a concrete proposal.