/* Paint Ink for Gitea. Built against Gitea v1.27.3 theme variables. Generated by palette/build.mjs from tokens/variants/ink.json. Edit the tokens, not this file. Colors from Flexoki by Steph Ango, stephango.com/flexoki (MIT). Layout from the Tangled theme. Install: {CustomPath}/public/assets/css/ */ gitea-theme-meta-info { --theme-display-name: "Paint Ink"; --theme-color-scheme: "dark"; } /* Fonts: Inter + IBM Plex Mono (both OFL), as in the Tangled theme. Installed copies are used first; otherwise drop the woff2 files in {CustomPath}/public/assets/fonts/. If you skip the fonts, delete these @font-face blocks; system fonts take over. */ @font-face { font-family: "InterVariable"; src: local("InterVariable"), local("Inter Variable"), local("Inter"), url("../fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; } @font-face { font-family: "InterVariable"; src: local("InterVariable Italic"), local("Inter Variable Italic"), local("Inter Italic"), url("../fonts/InterVariable-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; } @font-face { font-family: "IBMPlexMono"; src: local("IBM Plex Mono"), local("IBMPlexMono"), url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: "IBMPlexMono"; src: local("IBM Plex Mono Bold"), local("IBMPlexMono-Bold"), url("../fonts/IBMPlexMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; } :root { --fonts-proportional: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; --fonts-monospace: "IBMPlexMono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace, var(--fonts-emoji); } :root { --is-dark-theme: true; /* primary: accent */ --color-primary: #66a0c8; --color-primary-contrast: #12181e; --color-primary-dark-1: #75a8cc; --color-primary-dark-2: #84b1d1; --color-primary-dark-3: #93b9d5; --color-primary-dark-4: #a2c1d9; --color-primary-dark-5: #b3cbde; --color-primary-dark-6: #c6d6e3; --color-primary-dark-7: #d7dfe7; --color-primary-light-1: #5d91b5; --color-primary-light-2: #5482a2; --color-primary-light-3: #4b7390; --color-primary-light-4: #41627b; --color-primary-light-5: #334c5f; --color-primary-light-6: #253542; --color-primary-light-7: #1a242c; --color-primary-alpha-10: #66a0c81a; --color-primary-alpha-20: #66a0c833; --color-primary-alpha-30: #66a0c84d; --color-primary-alpha-40: #66a0c866; --color-primary-alpha-50: #66a0c880; --color-primary-alpha-60: #66a0c899; --color-primary-alpha-70: #66a0c8b3; --color-primary-alpha-80: #66a0c8cc; --color-primary-alpha-90: #66a0c8e6; --color-primary-hover: var(--color-primary-light-1); --color-primary-active: var(--color-primary-light-2); /* secondary: borders */ --color-secondary: #373e45; --color-secondary-dark-1: #40474e; --color-secondary-dark-2: #495057; --color-secondary-dark-3: #565c63; --color-secondary-dark-4: #646a71; --color-secondary-dark-5: #6f767c; --color-secondary-dark-6: #7b8188; --color-secondary-dark-7: #878d93; --color-secondary-dark-8: #93999f; --color-secondary-dark-9: #9aa0a6; --color-secondary-dark-10: #a6acb2; --color-secondary-dark-11: #b3b8be; --color-secondary-dark-12: #bec3c8; --color-secondary-dark-13: #c3c8cd; --color-secondary-light-1: #252b31; --color-secondary-light-2: #21272e; --color-secondary-light-3: #1b2127; --color-secondary-light-4: #161c22; --color-secondary-alpha-10: #373e451a; --color-secondary-alpha-20: #373e4533; --color-secondary-alpha-30: #373e454d; --color-secondary-alpha-40: #373e4566; --color-secondary-alpha-50: #373e4580; --color-secondary-alpha-60: #373e4599; --color-secondary-alpha-70: #373e45b3; --color-secondary-alpha-80: #373e45cc; --color-secondary-alpha-90: #373e45e6; --color-secondary-button: var(--color-secondary-dark-4); --color-secondary-hover: var(--color-secondary-dark-3); --color-secondary-active: var(--color-secondary-dark-2); /* console: actions logs, same as the Zed terminal */ --color-console-fg: #bdc3ca; --color-console-fg-subtle: #9fa5ac; --color-console-bg: #161c22; --color-console-border: #252b31; --color-console-hover-bg: #20272d; --color-console-active-bg: #262c33; --color-console-menu-bg: #1b2127; --color-console-menu-border: #373e45; --color-console-link: #66a0c8; /* named colors: the hues; olive, violet and brown are mixed */ --color-red: #e0796e; --color-orange: #eaa77c; --color-yellow: #dbc777; --color-olive: #bfc176; --color-green: #a2ba75; --color-teal: #73c6be; --color-blue: #6fb2df; --color-violet: #96a5e7; --color-purple: #a79eec; --color-pink: #e091bb; --color-brown: #a1715d; --color-black: #252b31; /* light variants */ --color-red-light: #f09c92; --color-orange-light: #e8bda3; --color-yellow-light: #e8da9a; --color-olive-light: #d4d699; --color-green-light: #bfd197; --color-teal-light: #9bdad2; --color-blue-light: #9ecfea; --color-violet-light: #b8c3f0; --color-purple-light: #c4bcf3; --color-pink-light: #e3afcb; --color-brown-light: #e89c79; --color-black-light: #373e45; /* dark 1 variants (button hover) */ --color-red-dark-1: #c96f66; --color-orange-dark-1: #d29772; --color-yellow-dark-1: #c4b36e; --color-olive-dark-1: #abae6d; --color-green-dark-1: #92a86c; --color-teal-dark-1: #68b2ac; --color-blue-dark-1: #65a1c9; --color-violet-dark-1: #8795d0; --color-purple-dark-1: #968fd5; --color-pink-dark-1: #c984a9; --color-brown-dark-1: #916757; --color-black-dark-1: #23292f; /* dark 2 variants (button press) */ --color-red-dark-2: #b7675f; --color-orange-dark-2: #be8b6b; --color-yellow-dark-2: #b2a467; --color-olive-dark-2: #9c9f66; --color-green-dark-2: #859a65; --color-teal-dark-2: #60a39e; --color-blue-dark-2: #5d93b8; --color-violet-dark-2: #7c89bf; --color-purple-dark-2: #8983c3; --color-pink-dark-2: #b7799c; --color-brown-dark-2: #856051; --color-black-dark-2: #21272d; /* ansi: the terminal colors from shared.json */ --color-ansi-black: #252b31; --color-ansi-red: #e0796e; --color-ansi-green: #a2ba75; --color-ansi-yellow: #dbc777; --color-ansi-blue: #6fb2df; --color-ansi-magenta: #a79eec; --color-ansi-cyan: #73c6be; --color-ansi-white: #bdc3ca; --color-ansi-bright-black: #79838d; --color-ansi-bright-red: #f09c92; --color-ansi-bright-green: #bfd197; --color-ansi-bright-yellow: #e8da9a; --color-ansi-bright-blue: #9ecfea; --color-ansi-bright-magenta: #c4bcf3; --color-ansi-bright-cyan: #9bdad2; --color-ansi-bright-white: #e1e5ea; /* 16-color series (charts) */ --color-series-16-0: #a2ba75; --color-series-16-1: #73c6be; --color-series-16-2: #e0796e; --color-series-16-3: #dbc777; --color-series-16-4: #a79eec; --color-series-16-5: #6fb2df; --color-series-16-6: #eaa77c; --color-series-16-7: #e091bb; --color-series-16-8: #bfd197; --color-series-16-9: #9bdad2; --color-series-16-10: #f09c92; --color-series-16-11: #e8da9a; --color-series-16-12: #c4bcf3; --color-series-16-13: #9ecfea; --color-series-16-14: #e8bda3; --color-series-16-15: #e3afcb; /* other colors */ --color-grey: #79838d; --color-grey-light: #9fa5ac; --color-gold: #dbc777; --color-white: #ffffff; --color-diff-added-fg: #a2ba75; --color-diff-added-linenum-bg: #2e3833; --color-diff-added-row-bg: #242c2c; --color-diff-added-row-border: #2e3833; --color-diff-added-word-bg: #3e4a3d; --color-diff-moved-row-bg: #2a2e2d; --color-diff-moved-row-border: #615e47; --color-diff-removed-fg: #e0796e; --color-diff-removed-linenum-bg: #3a2e31; --color-diff-removed-row-bg: #2c272b; --color-diff-removed-row-border: #3a2e31; --color-diff-removed-word-bg: #51393a; --color-diff-inactive: #1b2127; --color-error-border: #654241; --color-error-bg: #332a2e; --color-error-bg-active: #4a3537; --color-error-bg-hover: #3e3032; --color-error-text: #e0796e; --color-success-border: #4b5945; --color-success-bg: #29322f; --color-success-text: #a2ba75; --color-warning-border: #675247; --color-warning-bg: #333030; --color-warning-text: #eaa77c; --color-info-border: #39566a; --color-info-bg: #23313c; --color-info-text: #6fb2df; --color-priority-border: #4e4f6f; --color-priority-bg: #2a2e3e; --color-priority-text: #a79eec; --color-red-badge: #e0796e; --color-red-badge-bg: #e0796e1a; --color-red-badge-hover-bg: #e0796e4d; --color-green-badge: #a2ba75; --color-green-badge-bg: #a2ba751a; --color-green-badge-hover-bg: #a2ba754d; --color-yellow-badge: #dbc777; --color-yellow-badge-bg: #dbc7771a; --color-yellow-badge-hover-bg: #dbc7774d; --color-orange-badge: #eaa77c; --color-orange-badge-bg: #eaa77c1a; --color-orange-badge-hover-bg: #eaa77c4d; --color-git: #f05133; --color-logo: #609926; /* target-based colors: page = bg.base (Zed's chrome), boxes and code = bg.editor */ --color-body: #12181e; --color-box-header: #1b2127; --color-box-body: #161c22; --color-box-body-highlight: #20272d; --color-text-dark: #edeff2; --color-text: #e1e5ea; --color-text-light: #bfc5cb; --color-text-light-1: #9fa5ac; --color-text-light-2: #858f99; --color-text-light-3: #79838d; --color-footer: var(--color-nav-bg); --color-timeline: #373e45; --color-input-text: var(--color-text-dark); --color-input-background: #161c22; --color-input-toggle-background: #373e45; --color-input-border: var(--color-secondary-dark-1); --color-light: #12181e28; --color-light-border: #e1e5ea28; --color-hover: #e1e5ea14; --color-hover-opaque: #20272d; --color-active: #e1e5ea24; --color-menu: #1b2127; --color-card: #161c22; --color-markup-table-row: #e1e5ea0a; --color-markup-code-block: #1b2127; --color-markup-code-inline: #e1e5ea1a; --color-button: #1b2127; --color-code-bg: #161c22; --color-shadow: #00000059; --color-shadow-opaque: #040709; --color-secondary-bg: #1b2127; --color-expand-button: #2b3138; --color-placeholder-text: var(--color-text-light-3); --color-editor-line-highlight: #20272d99; --color-editor-selection: #66a0c83d; --color-project-column-bg: var(--color-secondary-light-2); --color-caret: #66a0c8; --color-reaction-bg: #e1e5ea12; --color-reaction-hover-bg: var(--color-primary-light-4); --color-reaction-active-bg: var(--color-primary-light-5); --color-tooltip-text: #e1e5ea; --color-tooltip-bg: #070a0ef0; --color-nav-bg: #1b2127; --color-nav-hover-bg: #20272d; --color-nav-text: var(--color-text); --color-secondary-nav-bg: #12181e; --color-label-text: var(--color-text); --color-label-bg: #79838d4b; --color-label-hover-bg: #79838da0; --color-label-active-bg: #79838d; --color-accent: var(--color-primary-light-1); --color-small-accent: var(--color-primary-light-5); --color-highlight-fg: #dbc777; --color-highlight-bg: #313430; --color-overlay-backdrop: #020405c0; --color-danger: var(--color-red); --color-transparency-grid-light: #2a2a2a; --color-transparency-grid-dark: #1a1a1a; --color-workflow-edge-hover: #747b82; /* syntax: the same roles as Zed and bat */ --color-syntax-keyword: #a79eec; --color-syntax-bool: #eaa77c; --color-syntax-control: #a79eec; --color-syntax-name: #6fb2df; --color-syntax-type: #dbc777; --color-syntax-number: #eaa77c; --color-syntax-operator: #9ea4aa; --color-syntax-regexp: #73c6be; --color-syntax-string: #a2ba75; --color-syntax-comment: #79838d; --color-syntax-invalid: #e0796e; --color-syntax-link: #6fb2df; --color-syntax-tag: #e0796e; --color-syntax-attribute: #eaa77c; --color-syntax-property: #e0796e; --color-syntax-variable: #e0796e; --color-syntax-string-special: #73c6be; --color-syntax-escape: #73c6be; --color-syntax-entity: #73c6be; --color-syntax-preproc: #a79eec; --color-syntax-preproc-file: #a2ba75; --color-syntax-decorator: #eaa77c; --color-syntax-namespace: #dbc777; --color-syntax-name-pseudo: #dbc777; --color-syntax-comment-special: #858f99; --color-syntax-text: #bdc3ca; --color-syntax-text-alt: #bdc3ca; --color-syntax-punctuation: #9ea4aa; --color-syntax-whitespace: #373e45; --color-syntax-diff-fg: #e1e5ea; --color-syntax-deleted-bg: #332a2e; --color-syntax-inserted-bg: #29322f; --color-syntax-emph: #a79eec; --color-syntax-strong: #eaa77c; --color-syntax-heading: #e0796e; --color-syntax-subheading: #e0796e; --color-syntax-output: #79838d; --color-syntax-prompt: #a79eec; --color-syntax-traceback: #e0796e; --color-syntax-matching-bracket-bg: #66a0c840; --color-syntax-nonmatching-bracket-bg: #e0796e48; accent-color: var(--color-accent); color-scheme: dark; /* used by the layout rules below */ --paint-on-color: #12181e; --paint-btn-edge: #12181e; --paint-btn-edge-hover: #161c22; --paint-btn-hover-bg: #20272d; --paint-color-edge: #12181e40; --paint-color-edge-hover: #12181e59; --paint-focus: #66a0c88c; --paint-selection: #66a0c84d; --paint-syntax-builtin: #73c6be; --paint-card-shadow: 0 1px 1px rgb(0 0 0 / 0.25); } /* invert emojis that are hard to read otherwise */ .emoji[aria-label="check mark"], .emoji[aria-label="currency exchange"], .emoji[aria-label="TOP arrow"], .emoji[aria-label="END arrow"], .emoji[aria-label="ON! arrow"], .emoji[aria-label="SOON arrow"], .emoji[aria-label="heavy dollar sign"], .emoji[aria-label="copyright"], .emoji[aria-label="registered"], .emoji[aria-label="trade mark"], .emoji[aria-label="multiply"], .emoji[aria-label="plus"], .emoji[aria-label="minus"], .emoji[aria-label="divide"], .emoji[aria-label="curly loop"], .emoji[aria-label="double curly loop"], .emoji[aria-label="wavy dash"], .emoji[aria-label="paw prints"], .emoji[aria-label="musical note"], .emoji[aria-label="musical notes"] { filter: invert(100%) hue-rotate(180deg); } /* ---------- Layout touches from the Tangled theme. Colors all come from the variables above ---------- */ /* Navbar: flat card, no rule line */ #navbar { border-bottom: none; box-shadow: var(--paint-card-shadow); } /* Links: underlined inside rendered markdown */ .markup a:not(.anchor) { text-decoration-line: underline; font-weight: var(--font-weight-medium); } /* Buttons: "keycap" look (2px inset bottom edge, presses down on click) */ .ui.button { box-shadow: inset 0 -2px 0 0 var(--paint-btn-edge); transition: background-color 150ms, box-shadow 150ms, color 150ms; } .ui.button:hover, .ui.basic.button:hover, .ui.basic.buttons .button:hover { background: var(--paint-btn-hover-bg); box-shadow: inset 0 -2px 0 0 var(--paint-btn-edge-hover); } .ui.button:active, .ui.active.button { box-shadow: inset 0 2px 2px 0 var(--paint-btn-edge); } .ui.button:not(.dropdown):active { transform: translateY(2px); } .ui.labeled.button:not(.icon), .ui.labeled.button:not(.icon):hover, .ui.labeled.button:not(.icon):active { box-shadow: none; transform: none; background: none; } /* Primary, red and green buttons: same keycap edge, darkened */ .ui.primary.button, .ui.primary.buttons .button, .ui.red.button, .ui.red.buttons .button, .ui.green.button, .ui.green.buttons .button { box-shadow: inset 0 -2px 0 0 var(--paint-color-edge); } .ui.primary.button:hover, .ui.primary.buttons .button:hover, .ui.red.button:hover, .ui.red.buttons .button:hover, .ui.green.button:hover, .ui.green.buttons .button:hover { box-shadow: inset 0 -2px 0 0 var(--paint-color-edge-hover); } .ui.primary.button:active, .ui.primary.buttons .button:active, .ui.red.button:active, .ui.red.buttons .button:active, .ui.green.button:active, .ui.green.buttons .button:active { box-shadow: inset 0 2px 2px 0 var(--paint-color-edge-hover); } /* outlined variants stay outlined */ .ui.basic.primary.button, .ui.basic.primary.buttons .button, .ui.basic.red.button, .ui.basic.red.buttons .button, .ui.basic.green.button, .ui.basic.green.buttons .button { background: var(--color-button); box-shadow: inset 0 -2px 0 0 var(--paint-btn-edge); } /* Dark text on colored backgrounds */ .ui.red.button, .ui.red.buttons .button, .ui.green.button, .ui.green.buttons .button, .ui.button.toggle.active, .ui.button.toggle.active:hover, .ui.ui.ui.red.label, a.ui.ui.ui.red.label:hover, .ui.ui.ui.orange.label, a.ui.ui.ui.orange.label:hover, .ui.ui.ui.yellow.label, a.ui.ui.ui.yellow.label:hover, .ui.ui.ui.green.label, a.ui.ui.ui.green.label:hover, .ui.ui.ui.purple.label, a.ui.ui.ui.purple.label:hover, .runner-container .task-status-success, .runner-container .task-status-failure, .runner-container .task-status-running, .runner-container .task-status-cancelled, .runner-container .task-status-blocked, .toastify { color: var(--paint-on-color); } input[type="checkbox"]::before { background: var(--color-primary-contrast); } ::selection, relative-time::part(root)::selection { background: var(--paint-selection); color: var(--color-text-dark); } /* Inputs: accent focus ring, as in Zed */ .ui.input.focus > input, input:not([type="checkbox"], [type="radio"]):focus, textarea:focus, .ui.input input:focus, .ui.form input:not([type="checkbox"], [type="radio"]):focus, .ui.form select:focus, .ui.form textarea:focus, .ui.search > .prompt:focus { border-color: var(--paint-focus); } /* Code: builtins get their own color, comments are italic (as in Zed and bat) */ .chroma .nb { color: var(--paint-syntax-builtin); } .chroma .c, .chroma .c1, .chroma .ch, .chroma .cm, .chroma .cs, .code-editor-container .tok-comment { font-style: italic; } /* Commit hashes and other code-ish chips in mono */ .ui.sha.label, a.ui.sha.label, .sha.label .shortsha { font-family: var(--fonts-monospace); }