# dezky branding for the default Authentik brand.
# - branding_logo points at a dezky SVG injected into the server's web bundle
#   by the dezky-rebrand initContainer (see authentik/README "rebrand").
# - colors (accent, button, carbon background) via custom CSS (CSS vars cross the
#   shadow boundary; selectors can't, so the logo had to be a real file).
# - "Powered by authentik" -> "Powered by Dezky" is done by the same
#   initContainer sed'ing the bundle (the footer is light-DOM, unreachable by
#   brand CSS).
version: 1
metadata:
  name: dezky-brand
  labels:
    blueprints.goauthentik.io/instantiate: "true"
entries:
  - model: authentik_brands.brand
    state: present
    identifiers:
      domain: authentik-default
    attrs:
      branding_title: dezky
      branding_logo: /static/dist/assets/icons/dezky-logo.svg
      branding_favicon: /static/dist/assets/icons/dezky-favicon.svg
      branding_default_flow_background: /static/dist/assets/icons/dezky-bg.svg
      branding_custom_css: |
        :root, :host {
          --ak-accent: #D4FF3A;
          --pf-v5-global--primary-color--100: #D4FF3A;
          --pf-global--primary-color--100: #D4FF3A;
          --pf-global--link--Color: #D4FF3A;
          --ak-flow-background: #0A0A0A !important;
        }
        .pf-c-background-image, .pf-c-background-image__src { background: #0A0A0A !important; }
        img.pf-c-background-image__src { display: none !important; }
        .pf-c-button.pf-m-primary,
        .pf-v5-c-button.pf-m-primary,
        .pf-v6-c-button.pf-m-primary {
          background-color: #D4FF3A !important;
          color: #0A0A0A !important;
          border-color: #D4FF3A !important;
        }
        a, .pf-c-button.pf-m-link, .pf-v5-c-button.pf-m-link { color: #D4FF3A !important; }

  - model: authentik_flows.flow
    state: present
    identifiers:
      slug: default-authentication-flow
    attrs:
      title: Welcome to Dezky
