Produce a style string that includes foreground and background colors based on the given parameters and current light/dark mode.