Casdoor集成市场

Mono | 登录主题

Mono

Pure black and white: a hairline-bordered card over a fading grid, with a white button and nothing else competing for attention. CSS only, so organization admins can install it.

Casdoor 官方核验深色黑白纯 CSS
Mono 登录页

会改哪些设置

主题dark
圆角6px
表单位置居中
表单CSS是
表单CSS(移动端)是

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

套用到应用

  1. 在下面填好应用,调整主题的设置,然后复制 JSON。
  2. 在 Casdoor 控制台打开 应用,编辑这个应用,点击顶部的 导入JSON,粘贴 JSON 后点 确定。
  3. 点击 保存。下次打开登录页时就会用上这个主题。
{
  "name": "<应用名称>",
  "organization": "<组织>",
  "themeData": {
    "themeType": "dark",
    "colorPrimary": "#ededed",
    "borderRadius": 6,
    "isCompact": false,
    "isEnabled": true
  },
  "formOffset": 2,
  "formCss": "<style>\n.login-background {\n  color-scheme: dark;\n  --background: 0 0% 0%;\n  --foreground: 0 0% 93%;\n  --card: 0 0% 4%;\n  --card-foreground: 0 0% 93%;\n  --popover: 0 0% 4%;\n  --popover-foreground: 0 0% 93%;\n  --muted: 0 0% 9%;\n  --muted-foreground: 0 0% 63%;\n  --accent: 0 0% 13%;\n  --accent-foreground: 0 0% 93%;\n  --border: 0 0% 16%;\n  --input: 0 0% 20%;\n  --ring: 0 0% 93%;\n  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;\n  background-color: #000000;\n}\n.login-background > div:first-child,\n.login-content,\n#footer {\n  position: relative;\n  z-index: 1;\n}\n.login-background::before {\n  content: '';\n  position: absolute;\n  inset: 0;\n  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);\n  background-size: 56px 56px;\n  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000000 30%, transparent 75%);\n  mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000000 30%, transparent 75%);\n}\n.login-content > div {\n  max-width: 400px;\n}\n.login-panel {\n  border: 1px solid #262626;\n  border-radius: 12px;\n  background: #0a0a0a;\n  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 30px 80px rgba(0, 0, 0, 0.7);\n}\n.signin-methods > div {\n  border: 1px solid #262626;\n  background: #0a0a0a;\n}\n.signin-methods [role='tab'][data-state='active'] {\n  background: #262626 !important;\n  color: #ededed;\n  box-shadow: none !important;\n}\n.login-form label {\n  color: #a1a1a1;\n  font-weight: 500;\n}\n.login-form input:not([type='checkbox']):not([type='radio']) {\n  height: 40px;\n  border: 1px solid #333333;\n  border-radius: 6px;\n  background: #0a0a0a;\n  color: #ededed;\n  box-shadow: none;\n}\n.login-form input:not([type='checkbox']):not([type='radio']):focus {\n  border-color: #ededed;\n  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);\n}\n.login-form [role='checkbox'] {\n  border-color: #525252;\n  border-radius: 4px;\n}\n.login-form [role='checkbox'][data-state='checked'] {\n  background: #ededed;\n  border-color: #ededed;\n  color: #0a0a0a;\n}\n.login-form a {\n  color: #ededed;\n  text-decoration: underline;\n  text-underline-offset: 3px;\n  text-decoration-color: #525252;\n}\n.login-form .login-button {\n  height: 40px;\n  border-radius: 6px;\n  background: #ededed;\n  color: #0a0a0a;\n  font-weight: 500;\n  box-shadow: none;\n}\n.login-form .login-button:hover {\n  background: #cccccc;\n}\n#footer {\n  color: #737373;\n}\n.login-form .login-forget-password {\n  width: 100%;\n}\n</style>",
  "formCssMobile": "<style>\n.login-background {\n  color-scheme: dark;\n  --background: 0 0% 0%;\n  --foreground: 0 0% 93%;\n  --card: 0 0% 4%;\n  --card-foreground: 0 0% 93%;\n  --popover: 0 0% 4%;\n  --popover-foreground: 0 0% 93%;\n  --muted: 0 0% 9%;\n  --muted-foreground: 0 0% 63%;\n  --accent: 0 0% 13%;\n  --accent-foreground: 0 0% 93%;\n  --border: 0 0% 16%;\n  --input: 0 0% 20%;\n  --ring: 0 0% 93%;\n  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;\n  background-color: #000000;\n}\n.login-background > div:first-child,\n.login-content,\n#footer {\n  position: relative;\n  z-index: 1;\n}\n.login-panel {\n  border-color: #262626;\n  background: #000000;\n  box-shadow: none;\n}\n.signin-methods > div {\n  border: 1px solid #262626;\n  background: #0a0a0a;\n}\n.signin-methods [role='tab'][data-state='active'] {\n  background: #262626 !important;\n  color: #ededed;\n  box-shadow: none !important;\n}\n.login-form label {\n  color: #a1a1a1;\n  font-weight: 500;\n}\n.login-form input:not([type='checkbox']):not([type='radio']) {\n  height: 40px;\n  border: 1px solid #333333;\n  border-radius: 6px;\n  background: #0a0a0a;\n  color: #ededed;\n  box-shadow: none;\n}\n.login-form input:not([type='checkbox']):not([type='radio']):focus {\n  border-color: #ededed;\n  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);\n}\n.login-form [role='checkbox'] {\n  border-color: #525252;\n  border-radius: 4px;\n}\n.login-form [role='checkbox'][data-state='checked'] {\n  background: #ededed;\n  border-color: #ededed;\n  color: #0a0a0a;\n}\n.login-form a {\n  color: #ededed;\n  text-decoration: underline;\n  text-underline-offset: 3px;\n  text-decoration-color: #525252;\n}\n.login-form .login-button {\n  height: 40px;\n  border-radius: 6px;\n  background: #ededed;\n  color: #0a0a0a;\n  font-weight: 500;\n  box-shadow: none;\n}\n.login-form .login-button:hover {\n  background: #cccccc;\n}\n#footer {\n  color: #737373;\n}\n.login-form .login-forget-password {\n  width: 100%;\n}\n</style>"
}