import Component from "@glimmer/component"; import { htmlSafe } from "@ember/template"; export default class ThemesGridPlaceholder extends Component { get themeColors() { if (this.args.theme.color_scheme) { return { primary: `#${this.args.theme.color_scheme.colors[0].hex}`, secondary: `#${this.args.theme.color_scheme.colors[1].hex}`, tertiary: `#${this.args.theme.color_scheme.colors[2].hex}`, quaternary: `#${this.args.theme.color_scheme.colors[3].hex}`, highlight: `#${this.args.theme.color_scheme.colors[6].hex}`, danger: `#${this.args.theme.color_scheme.colors[7].hex}`, success: `#${this.args.theme.color_scheme.colors[8].hex}`, love: `#${this.args.theme.color_scheme.colors[9].hex}`, }; } else { return { primary: "var(--primary)", secondary: "var(--secondary)", tertiary: "var(--tertiary)", quaternary: "var(--quaternary)", highlight: "var(--highlight)", danger: "var(--danger)", success: "var(--success)", love: "var(--love)", }; } } }