How it works:
The sl-modes.css simply alters the lightness values if the attribute sl-dark-mode is set as "true" at the :root elemtent. The values are altered in a way to preserve contrast as much as possible and produce an appealing dark mode at the same time.