1 import { LocalUserSettingsView } from "lemmy-js-client";
2 import { Helmet } from "inferno-helmet";
3 import { Component } from "inferno";
6 localUserView: LocalUserSettingsView | undefined;
9 export class Theme extends Component<Props> {
11 let user = this.props.localUserView;
12 let hasTheme = user && user.local_user.theme !== "browser";
20 href={`/static/assets/css/themes/${user.local_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)"