/* Paint Wine for Gitea. Built against Gitea v1.27.3 theme variables. Generated by palette/build.mjs from tokens/variants/wine.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 Wine"; --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: #e47da8; --color-primary-contrast: #1e1419; --color-primary-dark-1: #e68aaf; --color-primary-dark-2: #e896b7; --color-primary-dark-3: #e9a2be; --color-primary-dark-4: #eaaec5; --color-primary-dark-5: #eabcce; --color-primary-dark-6: #eaccd8; --color-primary-dark-7: #eadae1; --color-primary-light-1: #ce7198; --color-primary-light-2: #b86688; --color-primary-light-3: #a35b79; --color-primary-light-4: #8a4e67; --color-primary-light-5: #6a3d50; --color-primary-light-6: #482b37; --color-primary-light-7: #2f1d25; --color-primary-alpha-10: #e47da81a; --color-primary-alpha-20: #e47da833; --color-primary-alpha-30: #e47da84d; --color-primary-alpha-40: #e47da866; --color-primary-alpha-50: #e47da880; --color-primary-alpha-60: #e47da899; --color-primary-alpha-70: #e47da8b3; --color-primary-alpha-80: #e47da8cc; --color-primary-alpha-90: #e47da8e6; --color-primary-hover: var(--color-primary-light-1); --color-primary-active: var(--color-primary-light-2); /* secondary: borders */ --color-secondary: #453940; --color-secondary-dark-1: #4e4249; --color-secondary-dark-2: #574b52; --color-secondary-dark-3: #63575e; --color-secondary-dark-4: #71666c; --color-secondary-dark-5: #7c7177; --color-secondary-dark-6: #877d83; --color-secondary-dark-7: #93898e; --color-secondary-dark-8: #9e959a; --color-secondary-dark-9: #a59ca1; --color-secondary-dark-10: #b1a8ad; --color-secondary-dark-11: #bdb4b9; --color-secondary-dark-12: #c7bfc4; --color-secondary-dark-13: #cdc5c9; --color-secondary-light-1: #31262c; --color-secondary-light-2: #2e2329; --color-secondary-light-3: #271d23; --color-secondary-light-4: #22171d; --color-secondary-alpha-10: #4539401a; --color-secondary-alpha-20: #45394033; --color-secondary-alpha-30: #4539404d; --color-secondary-alpha-40: #45394066; --color-secondary-alpha-50: #45394080; --color-secondary-alpha-60: #45394099; --color-secondary-alpha-70: #453940b3; --color-secondary-alpha-80: #453940cc; --color-secondary-alpha-90: #453940e6; --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: #cabfc4; --color-console-fg-subtle: #aaa2a6; --color-console-bg: #22171d; --color-console-border: #31262c; --color-console-hover-bg: #2d2228; --color-console-active-bg: #33282e; --color-console-menu-bg: #271d23; --color-console-menu-border: #453940; --color-console-link: #e47da8; /* named colors: the hues; olive, violet and brown are mixed */ --color-red: #e57268; --color-orange: #f0a17b; --color-yellow: #ebbe6e; --color-olive: #cfb96a; --color-green: #b3b365; --color-teal: #77c4b6; --color-blue: #75afdd; --color-violet: #a49fe0; --color-purple: #b896e2; --color-pink: #e78bb0; --color-brown: #a96b59; --color-black: #31262c; /* light variants */ --color-red-light: #f4978d; --color-orange-light: #efb8a1; --color-yellow-light: #f5d392; --color-olive-light: #e1cf8f; --color-green-light: #cdca8b; --color-teal-light: #9ed8ca; --color-blue-light: #a1cce8; --color-violet-light: #c1beeb; --color-purple-light: #d0b6ec; --color-pink-light: #eaaac3; --color-brown-light: #ee9676; --color-black-light: #453940; /* dark 1 variants (button hover) */ --color-red-dark-1: #cf6860; --color-orange-dark-1: #d89171; --color-yellow-dark-1: #d4ab65; --color-olive-dark-1: #bba662; --color-green-dark-1: #a2a15d; --color-teal-dark-1: #6fb0a4; --color-blue-dark-1: #6c9ec7; --color-violet-dark-1: #958fca; --color-purple-dark-1: #a788cb; --color-pink-dark-1: #d07e9f; --color-brown-dark-1: #9a6152; --color-black-dark-1: #2f242a; /* dark 2 variants (button press) */ --color-red-dark-2: #bd6059; --color-orange-dark-2: #c68568; --color-yellow-dark-2: #c29c5f; --color-olive-dark-2: #ac985b; --color-green-dark-2: #959357; --color-teal-dark-2: #68a197; --color-blue-dark-2: #6690b5; --color-violet-dark-2: #8a83b8; --color-purple-dark-2: #997cb9; --color-pink-dark-2: #bf7392; --color-brown-dark-2: #8d5a4d; --color-black-dark-2: #2d2328; /* ansi: the terminal colors from shared.json */ --color-ansi-black: #31262c; --color-ansi-red: #e57268; --color-ansi-green: #b3b365; --color-ansi-yellow: #ebbe6e; --color-ansi-blue: #75afdd; --color-ansi-magenta: #b896e2; --color-ansi-cyan: #77c4b6; --color-ansi-white: #cabfc4; --color-ansi-bright-black: #8c7d85; --color-ansi-bright-red: #f4978d; --color-ansi-bright-green: #cdca8b; --color-ansi-bright-yellow: #f5d392; --color-ansi-bright-blue: #a1cce8; --color-ansi-bright-magenta: #d0b6ec; --color-ansi-bright-cyan: #9ed8ca; --color-ansi-bright-white: #e9e2e6; /* 16-color series (charts) */ --color-series-16-0: #b3b365; --color-series-16-1: #77c4b6; --color-series-16-2: #e57268; --color-series-16-3: #ebbe6e; --color-series-16-4: #b896e2; --color-series-16-5: #75afdd; --color-series-16-6: #f0a17b; --color-series-16-7: #e78bb0; --color-series-16-8: #cdca8b; --color-series-16-9: #9ed8ca; --color-series-16-10: #f4978d; --color-series-16-11: #f5d392; --color-series-16-12: #d0b6ec; --color-series-16-13: #a1cce8; --color-series-16-14: #efb8a1; --color-series-16-15: #eaaac3; /* other colors */ --color-grey: #8c7d85; --color-grey-light: #aaa2a6; --color-gold: #ebbe6e; --color-white: #ffffff; --color-diff-added-fg: #b3b365; --color-diff-added-linenum-bg: #3c322c; --color-diff-added-row-bg: #312726; --color-diff-added-row-border: #3c322c; --color-diff-added-word-bg: #4c4435; --color-diff-moved-row-bg: #362827; --color-diff-moved-row-border: #6f5740; --color-diff-removed-fg: #e57268; --color-diff-removed-linenum-bg: #44282b; --color-diff-removed-row-bg: #362126; --color-diff-removed-row-border: #44282b; --color-diff-removed-word-bg: #5a3234; --color-diff-inactive: #271d23; --color-error-border: #6d3b3c; --color-error-bg: #3d2529; --color-error-bg-active: #532f31; --color-error-bg-hover: #482a2d; --color-error-text: #e57268; --color-success-border: #5a533c; --color-success-bg: #362d29; --color-success-text: #b3b365; --color-warning-border: #714c43; --color-warning-bg: #3e2a2b; --color-warning-text: #f0a17b; --color-info-border: #465266; --color-info-bg: #302c37; --color-info-text: #75afdd; --color-priority-border: #5c4868; --color-priority-bg: #372938; --color-priority-text: #b896e2; --color-red-badge: #e57268; --color-red-badge-bg: #e572681a; --color-red-badge-hover-bg: #e572684d; --color-green-badge: #b3b365; --color-green-badge-bg: #b3b3651a; --color-green-badge-hover-bg: #b3b3654d; --color-yellow-badge: #ebbe6e; --color-yellow-badge-bg: #ebbe6e1a; --color-yellow-badge-hover-bg: #ebbe6e4d; --color-orange-badge: #f0a17b; --color-orange-badge-bg: #f0a17b1a; --color-orange-badge-hover-bg: #f0a17b4d; --color-git: #f05133; --color-logo: #609926; /* target-based colors: page = bg.base (Zed's chrome), boxes and code = bg.editor */ --color-body: #1e1419; --color-box-header: #271d23; --color-box-body: #22171d; --color-box-body-highlight: #2d2228; --color-text-dark: #f2eef0; --color-text: #e9e2e6; --color-text-light: #c9c2c6; --color-text-light-1: #aaa2a6; --color-text-light-2: #988891; --color-text-light-3: #8c7d85; --color-footer: var(--color-nav-bg); --color-timeline: #453940; --color-input-text: var(--color-text-dark); --color-input-background: #22171d; --color-input-toggle-background: #453940; --color-input-border: var(--color-secondary-dark-1); --color-light: #1e141928; --color-light-border: #e9e2e628; --color-hover: #e9e2e614; --color-hover-opaque: #2d2228; --color-active: #e9e2e624; --color-menu: #271d23; --color-card: #22171d; --color-markup-table-row: #e9e2e60a; --color-markup-code-block: #271d23; --color-markup-code-inline: #e9e2e61a; --color-button: #271d23; --color-code-bg: #22171d; --color-shadow: #00000059; --color-shadow-opaque: #090507; --color-secondary-bg: #271d23; --color-expand-button: #382c33; --color-placeholder-text: var(--color-text-light-3); --color-editor-line-highlight: #2d222899; --color-editor-selection: #e47da83d; --color-project-column-bg: var(--color-secondary-light-2); --color-caret: #e47da8; --color-reaction-bg: #e9e2e612; --color-reaction-hover-bg: var(--color-primary-light-4); --color-reaction-active-bg: var(--color-primary-light-5); --color-tooltip-text: #e9e2e6; --color-tooltip-bg: #0e080bf0; --color-nav-bg: #271d23; --color-nav-hover-bg: #2d2228; --color-nav-text: var(--color-text); --color-secondary-nav-bg: #1e1419; --color-label-text: var(--color-text); --color-label-bg: #8c7d854b; --color-label-hover-bg: #8c7d85a0; --color-label-active-bg: #8c7d85; --color-accent: var(--color-primary-light-1); --color-small-accent: var(--color-primary-light-5); --color-highlight-fg: #ebbe6e; --color-highlight-bg: #3d2e2a; --color-overlay-backdrop: #050304c0; --color-danger: var(--color-red); --color-transparency-grid-light: #2a2a2a; --color-transparency-grid-dark: #1a1a1a; --color-workflow-edge-hover: #81777c; /* syntax: the same roles as Zed and bat */ --color-syntax-keyword: #b896e2; --color-syntax-bool: #f0a17b; --color-syntax-control: #b896e2; --color-syntax-name: #75afdd; --color-syntax-type: #ebbe6e; --color-syntax-number: #f0a17b; --color-syntax-operator: #a9a0a5; --color-syntax-regexp: #77c4b6; --color-syntax-string: #b3b365; --color-syntax-comment: #8c7d85; --color-syntax-invalid: #e57268; --color-syntax-link: #75afdd; --color-syntax-tag: #e57268; --color-syntax-attribute: #f0a17b; --color-syntax-property: #e57268; --color-syntax-variable: #e57268; --color-syntax-string-special: #77c4b6; --color-syntax-escape: #77c4b6; --color-syntax-entity: #77c4b6; --color-syntax-preproc: #b896e2; --color-syntax-preproc-file: #b3b365; --color-syntax-decorator: #f0a17b; --color-syntax-namespace: #ebbe6e; --color-syntax-name-pseudo: #ebbe6e; --color-syntax-comment-special: #988891; --color-syntax-text: #cabfc4; --color-syntax-text-alt: #cabfc4; --color-syntax-punctuation: #a9a0a5; --color-syntax-whitespace: #453940; --color-syntax-diff-fg: #e9e2e6; --color-syntax-deleted-bg: #3d2529; --color-syntax-inserted-bg: #362d29; --color-syntax-emph: #b896e2; --color-syntax-strong: #f0a17b; --color-syntax-heading: #e57268; --color-syntax-subheading: #e57268; --color-syntax-output: #8c7d85; --color-syntax-prompt: #b896e2; --color-syntax-traceback: #e57268; --color-syntax-matching-bracket-bg: #e47da840; --color-syntax-nonmatching-bracket-bg: #e5726848; accent-color: var(--color-accent); color-scheme: dark; /* used by the layout rules below */ --paint-on-color: #1e1419; --paint-btn-edge: #1e1419; --paint-btn-edge-hover: #22171d; --paint-btn-hover-bg: #2d2228; --paint-color-edge: #1e141940; --paint-color-edge-hover: #1e141959; --paint-focus: #e47da88c; --paint-selection: #e47da84d; --paint-syntax-builtin: #77c4b6; --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); }