Casdoor集成市场

Backdrop | 登录主题

Backdrop

整页铺上你自己的图片并略微调暗,上面是一张磨砂玻璃卡片。自带一张黄昏山景,填任意图片地址即可换成你的。组织管理员可以安装。

Casdoor 官方核验深色背景图毛玻璃
Backdrop 登录页

会改哪些设置

主题dark
圆角12px
表单位置居中
表单CSS是
表单CSS(移动端)是
背景图URL是

这些都在 Casdoor 应用的 界面定制 标签页里,套用主题之后还可以继续调整。

套用到应用

  1. 在下面填好应用,调整主题的设置,然后复制 JSON。
  2. 在 Casdoor 控制台打开 应用,编辑这个应用,点击顶部的 导入JSON,粘贴 JSON 后点 确定。
  3. 点击 保存。下次打开登录页时就会用上这个主题。
{
  "name": "<应用名称>",
  "organization": "<组织>",
  "themeData": {
    "themeType": "dark",
    "colorPrimary": "#f97316",
    "borderRadius": 12,
    "isCompact": false,
    "isEnabled": true
  },
  "formOffset": 2,
  "formBackgroundUrl": "https://cdn.jsdelivr.net/gh/casdoor/casdoor-integrations@master/integrations/theme/backdrop/background.jpg",
  "formBackgroundUrlMobile": "https://cdn.jsdelivr.net/gh/casdoor/casdoor-integrations@master/integrations/theme/backdrop/background.jpg",
  "formCss": "<style>\n.login-background {\n  color-scheme: dark;\n  --background: 230 30% 10%;\n  --foreground: 0 0% 100%;\n  --card: 230 30% 14%;\n  --card-foreground: 0 0% 100%;\n  --popover: 230 30% 14%;\n  --popover-foreground: 0 0% 100%;\n  --muted: 230 20% 22%;\n  --muted-foreground: 0 0% 85%;\n  --accent: 230 20% 26%;\n  --accent-foreground: 0 0% 100%;\n  --border: 230 20% 40%;\n  --input: 230 20% 50%;\n  --ring: 0 0% 100%;\n  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;\n  background-color: #14162e;\n}\n.login-background::before {\n  content: '';\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(180deg, rgba(8, 10, 28, 0.25) 0%, rgba(8, 10, 28, 0.5) 100%);\n}\n.login-topbar,\n.login-content,\n#footer {\n  position: relative;\n  z-index: 1;\n}\n.login-content > div {\n  max-width: 430px;\n}\n.login-panel {\n  border-radius: 24px;\n}\n.login-topbar button {\n  color: #ffffff;\n}\n.login-panel {\n  border: 1px solid rgba(255, 255, 255, 0.28);\n  background: rgba(255, 255, 255, 0.12);\n  color: #ffffff;\n  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);\n  backdrop-filter: blur(22px) saturate(150%);\n  -webkit-backdrop-filter: blur(22px) saturate(150%);\n}\n.signin-methods > div {\n  border: 1px solid rgba(255, 255, 255, 0.18);\n  background: rgba(255, 255, 255, 0.1);\n}\n.signin-methods [role='tab'] {\n  color: rgba(255, 255, 255, 0.75);\n}\n.signin-methods [role='tab'][data-state='active'] {\n  background: rgba(255, 255, 255, 0.92) !important;\n  color: #14162e;\n  box-shadow: none !important;\n}\n.login-form label {\n  color: rgba(255, 255, 255, 0.92);\n  font-weight: 500;\n}\n.login-form input:not([type='checkbox']):not([type='radio']) {\n  height: 46px;\n  border: 1px solid rgba(255, 255, 255, 0.3);\n  border-radius: 12px;\n  background: rgba(255, 255, 255, 0.12);\n  color: #ffffff;\n  box-shadow: none;\n}\n.login-form input:not([type='checkbox']):not([type='radio'])::placeholder {\n  color: rgba(255, 255, 255, 0.6);\n}\n.login-form input:not([type='checkbox']):not([type='radio']):focus {\n  border-color: #ffffff;\n  background: rgba(255, 255, 255, 0.18);\n  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);\n}\n.login-password button {\n  color: rgba(255, 255, 255, 0.8);\n}\n.login-form [role='checkbox'] {\n  border-color: rgba(255, 255, 255, 0.7);\n  border-radius: 5px;\n}\n.login-form [role='checkbox'][data-state='checked'] {\n  background: #f97316;\n  border-color: #f97316;\n  color: #ffffff;\n}\n.login-form a {\n  color: #ffffff;\n  font-weight: 600;\n  text-decoration: underline;\n  text-decoration-color: rgba(255, 255, 255, 0.5);\n  text-underline-offset: 3px;\n}\n.login-form .login-button {\n  height: 48px;\n  border-radius: 12px;\n  background: #f97316;\n  color: #ffffff;\n  font-size: 15px;\n  font-weight: 600;\n  box-shadow: 0 12px 28px -10px #f97316;\n}\n.login-form .login-button:hover {\n  background: #f97316;\n  filter: brightness(1.1);\n}\n.login-form .login-signup-link,\n.login-form .login-forget-password label {\n  color: rgba(255, 255, 255, 0.85);\n}\n#footer {\n  background: rgba(10, 12, 30, 0.45);\n  color: rgba(255, 255, 255, 0.85);\n}\n.login-form .login-forget-password {\n  width: 100%;\n}\n</style>",
  "formCssMobile": "<style>\n.login-background {\n  color-scheme: dark;\n  --background: 230 30% 10%;\n  --foreground: 0 0% 100%;\n  --card: 230 30% 14%;\n  --card-foreground: 0 0% 100%;\n  --popover: 230 30% 14%;\n  --popover-foreground: 0 0% 100%;\n  --muted: 230 20% 22%;\n  --muted-foreground: 0 0% 85%;\n  --accent: 230 20% 26%;\n  --accent-foreground: 0 0% 100%;\n  --border: 230 20% 40%;\n  --input: 230 20% 50%;\n  --ring: 0 0% 100%;\n  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;\n  background-color: #14162e;\n}\n.login-background::before {\n  content: '';\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(180deg, rgba(8, 10, 28, 0.25) 0%, rgba(8, 10, 28, 0.5) 100%);\n}\n.login-topbar,\n.login-content,\n#footer {\n  position: relative;\n  z-index: 1;\n}\n.login-panel {\n  border-radius: 20px;\n}\n.login-topbar button {\n  color: #ffffff;\n}\n.login-panel {\n  border: 1px solid rgba(255, 255, 255, 0.28);\n  background: rgba(255, 255, 255, 0.12);\n  color: #ffffff;\n  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);\n  backdrop-filter: blur(22px) saturate(150%);\n  -webkit-backdrop-filter: blur(22px) saturate(150%);\n}\n.signin-methods > div {\n  border: 1px solid rgba(255, 255, 255, 0.18);\n  background: rgba(255, 255, 255, 0.1);\n}\n.signin-methods [role='tab'] {\n  color: rgba(255, 255, 255, 0.75);\n}\n.signin-methods [role='tab'][data-state='active'] {\n  background: rgba(255, 255, 255, 0.92) !important;\n  color: #14162e;\n  box-shadow: none !important;\n}\n.login-form label {\n  color: rgba(255, 255, 255, 0.92);\n  font-weight: 500;\n}\n.login-form input:not([type='checkbox']):not([type='radio']) {\n  height: 46px;\n  border: 1px solid rgba(255, 255, 255, 0.3);\n  border-radius: 12px;\n  background: rgba(255, 255, 255, 0.12);\n  color: #ffffff;\n  box-shadow: none;\n}\n.login-form input:not([type='checkbox']):not([type='radio'])::placeholder {\n  color: rgba(255, 255, 255, 0.6);\n}\n.login-form input:not([type='checkbox']):not([type='radio']):focus {\n  border-color: #ffffff;\n  background: rgba(255, 255, 255, 0.18);\n  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);\n}\n.login-password button {\n  color: rgba(255, 255, 255, 0.8);\n}\n.login-form [role='checkbox'] {\n  border-color: rgba(255, 255, 255, 0.7);\n  border-radius: 5px;\n}\n.login-form [role='checkbox'][data-state='checked'] {\n  background: #f97316;\n  border-color: #f97316;\n  color: #ffffff;\n}\n.login-form a {\n  color: #ffffff;\n  font-weight: 600;\n  text-decoration: underline;\n  text-decoration-color: rgba(255, 255, 255, 0.5);\n  text-underline-offset: 3px;\n}\n.login-form .login-button {\n  height: 48px;\n  border-radius: 12px;\n  background: #f97316;\n  color: #ffffff;\n  font-size: 15px;\n  font-weight: 600;\n  box-shadow: 0 12px 28px -10px #f97316;\n}\n.login-form .login-button:hover {\n  background: #f97316;\n  filter: brightness(1.1);\n}\n.login-form .login-signup-link,\n.login-form .login-forget-password label {\n  color: rgba(255, 255, 255, 0.85);\n}\n#footer {\n  background: rgba(10, 12, 30, 0.45);\n  color: rgba(255, 255, 255, 0.85);\n}\n.login-form .login-forget-password {\n  width: 100%;\n}\n</style>"
}