CSS var
Variablen sind ein Teil der CSS Spezifikation und heißen CSS Custom Properties
:root { --text-color: #fff; --text-groesse: 1.5rem; }
Überall dort, wo ich jetzt wiederholend eine bestimmte Textfarbe benötige, verwende ich nun:
.bla { color: var(--text-color); }