User:This, that and the other/langcodes/style.css

*:lang(fa) { color: red; }

*[lang=fa] { background: lightcyan; }
*[lang^=fa-] { background: lightgreen; }