1 import { UserSafeSettings } from "lemmy-js-client";
2 import { Helmet } from "inferno-helmet";
3 import { Component } from "inferno";
6 user: UserSafeSettings | undefined;
9 export class Theme extends Component<Props> {
11 const { user } = this.props;
12 const hasUserTheme = user && user.theme !== "browser";
20 href={`/static/assets/css/themes/${user.theme}.min.css`}
27 href="/static/assets/css/themes/litely.min.css"
29 media="(prefers-color-scheme: light)"
34 href="/static/assets/css/themes/darkly.min.css"
36 media="(prefers-color-scheme: no-preference), (prefers-color-scheme: dark)"