/* Paint Moss for Gitea. Built against Gitea v1.27.3 theme variables. Generated by palette/build.mjs from tokens/variants/moss.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 Moss"; --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: #a0af54; --color-primary-contrast: #16180e; --color-primary-dark-1: #a8b667; --color-primary-dark-2: #b0bc78; --color-primary-dark-3: #b8c389; --color-primary-dark-4: #c0c999; --color-primary-dark-5: #c9d1ac; --color-primary-dark-6: #d4d9c2; --color-primary-dark-7: #dee1d4; --color-primary-light-1: #919e4d; --color-primary-light-2: #818e45; --color-primary-light-3: #737d3e; --color-primary-light-4: #616a35; --color-primary-light-5: #4b522a; --color-primary-light-6: #33381e; --color-primary-light-7: #222515; --color-primary-alpha-10: #a0af541a; --color-primary-alpha-20: #a0af5433; --color-primary-alpha-30: #a0af544d; --color-primary-alpha-40: #a0af5466; --color-primary-alpha-50: #a0af5480; --color-primary-alpha-60: #a0af5499; --color-primary-alpha-70: #a0af54b3; --color-primary-alpha-80: #a0af54cc; --color-primary-alpha-90: #a0af54e6; --color-primary-hover: var(--color-primary-light-1); --color-primary-active: var(--color-primary-light-2); /* secondary: borders */ --color-secondary: #3c3f33; --color-secondary-dark-1: #45483c; --color-secondary-dark-2: #4e5145; --color-secondary-dark-3: #5a5d52; --color-secondary-dark-4: #696b60; --color-secondary-dark-5: #74766c; --color-secondary-dark-6: #7f8278; --color-secondary-dark-7: #8b8d84; --color-secondary-dark-8: #979990; --color-secondary-dark-9: #9ea097; --color-secondary-dark-10: #aaaca4; --color-secondary-dark-11: #b7b8b0; --color-secondary-dark-12: #c1c3bb; --color-secondary-dark-13: #c7c8c1; --color-secondary-light-1: #292c21; --color-secondary-light-2: #25281d; --color-secondary-light-3: #1f2217; --color-secondary-light-4: #1a1c12; --color-secondary-alpha-10: #3c3f331a; --color-secondary-alpha-20: #3c3f3333; --color-secondary-alpha-30: #3c3f334d; --color-secondary-alpha-40: #3c3f3366; --color-secondary-alpha-50: #3c3f3380; --color-secondary-alpha-60: #3c3f3399; --color-secondary-alpha-70: #3c3f33b3; --color-secondary-alpha-80: #3c3f33cc; --color-secondary-alpha-90: #3c3f33e6; --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: #c2c4ba; --color-console-fg-subtle: #a3a69d; --color-console-bg: #1a1c12; --color-console-border: #292c21; --color-console-hover-bg: #25271d; --color-console-active-bg: #2a2d22; --color-console-menu-bg: #1f2217; --color-console-menu-border: #3c3f33; --color-console-link: #a0af54; /* named colors: the hues; olive, violet and brown are mixed */ --color-red: #e0775d; --color-orange: #e7a86e; --color-yellow: #ddc56c; --color-olive: #c3be6a; --color-green: #a9b767; --color-teal: #7ac4ad; --color-blue: #6fb1d7; --color-violet: #9aa3de; --color-purple: #ad9be2; --color-pink: #e58ea6; --color-brown: #a1714c; --color-black: #292c21; /* light variants */ --color-red-light: #f09b85; --color-orange-light: #e7be97; --color-yellow-light: #e9d891; --color-olive-light: #d7d38f; --color-green-light: #c4ce8c; --color-teal-light: #a0d9c4; --color-blue-light: #9ecee4; --color-violet-light: #bbc1e9; --color-purple-light: #c9b9eb; --color-pink-light: #e7adba; --color-brown-light: #e69c6a; --color-black-light: #3c3f33; /* dark 1 variants (button hover) */ --color-red-dark-1: #c96d54; --color-orange-dark-1: #cf9863; --color-yellow-dark-1: #c6b262; --color-olive-dark-1: #afab60; --color-green-dark-1: #99a55d; --color-teal-dark-1: #6fb19b; --color-blue-dark-1: #65a0c0; --color-violet-dark-1: #8b94c6; --color-purple-dark-1: #9c8dca; --color-pink-dark-1: #ce8195; --color-brown-dark-1: #926745; --color-black-dark-1: #272a1f; /* dark 2 variants (button press) */ --color-red-dark-2: #b8654d; --color-orange-dark-2: #bd8b5b; --color-yellow-dark-2: #b5a25a; --color-olive-dark-2: #a09d58; --color-green-dark-2: #8c9755; --color-teal-dark-2: #67a18d; --color-blue-dark-2: #5e93ae; --color-violet-dark-2: #7f88b4; --color-purple-dark-2: #8f81b7; --color-pink-dark-2: #bb7787; --color-brown-dark-2: #866040; --color-black-dark-2: #25281d; /* ansi: the terminal colors from shared.json */ --color-ansi-black: #292c21; --color-ansi-red: #e0775d; --color-ansi-green: #a9b767; --color-ansi-yellow: #ddc56c; --color-ansi-blue: #6fb1d7; --color-ansi-magenta: #ad9be2; --color-ansi-cyan: #7ac4ad; --color-ansi-white: #c2c4ba; --color-ansi-bright-black: #808475; --color-ansi-bright-red: #f09b85; --color-ansi-bright-green: #c4ce8c; --color-ansi-bright-yellow: #e9d891; --color-ansi-bright-blue: #9ecee4; --color-ansi-bright-magenta: #c9b9eb; --color-ansi-bright-cyan: #a0d9c4; --color-ansi-bright-white: #e4e5df; /* 16-color series (charts) */ --color-series-16-0: #a9b767; --color-series-16-1: #7ac4ad; --color-series-16-2: #e0775d; --color-series-16-3: #ddc56c; --color-series-16-4: #ad9be2; --color-series-16-5: #6fb1d7; --color-series-16-6: #e7a86e; --color-series-16-7: #e58ea6; --color-series-16-8: #c4ce8c; --color-series-16-9: #a0d9c4; --color-series-16-10: #f09b85; --color-series-16-11: #e9d891; --color-series-16-12: #c9b9eb; --color-series-16-13: #9ecee4; --color-series-16-14: #e7be97; --color-series-16-15: #e7adba; /* other colors */ --color-grey: #808475; --color-grey-light: #a3a69d; --color-gold: #ddc56c; --color-white: #ffffff; --color-diff-added-fg: #a9b767; --color-diff-added-linenum-bg: #333721; --color-diff-added-row-bg: #292c1b; --color-diff-added-row-border: #333721; --color-diff-added-word-bg: #43482b; --color-diff-moved-row-bg: #2e2d1c; --color-diff-moved-row-border: #645d36; --color-diff-removed-fg: #e0775d; --color-diff-removed-linenum-bg: #3d2d20; --color-diff-removed-row-bg: #2f261a; --color-diff-removed-row-border: #3d2d20; --color-diff-removed-word-bg: #543828; --color-diff-inactive: #1f2217; --color-error-border: #674130; --color-error-bg: #362a1d; --color-error-bg-active: #4c3425; --color-error-bg-hover: #412f21; --color-error-text: #e0775d; --color-success-border: #515833; --color-success-bg: #2e311e; --color-success-text: #a9b767; --color-warning-border: #685236; --color-warning-bg: #36301f; --color-warning-text: #e7a86e; --color-info-border: #3c565d; --color-info-bg: #27312d; --color-info-text: #6fb1d7; --color-priority-border: #524e62; --color-priority-bg: #2e2e2f; --color-priority-text: #ad9be2; --color-red-badge: #e0775d; --color-red-badge-bg: #e0775d1a; --color-red-badge-hover-bg: #e0775d4d; --color-green-badge: #a9b767; --color-green-badge-bg: #a9b7671a; --color-green-badge-hover-bg: #a9b7674d; --color-yellow-badge: #ddc56c; --color-yellow-badge-bg: #ddc56c1a; --color-yellow-badge-hover-bg: #ddc56c4d; --color-orange-badge: #e7a86e; --color-orange-badge-bg: #e7a86e1a; --color-orange-badge-hover-bg: #e7a86e4d; --color-git: #f05133; --color-logo: #609926; /* target-based colors: page = bg.base (Zed's chrome), boxes and code = bg.editor */ --color-body: #16180e; --color-box-header: #1f2217; --color-box-body: #1a1c12; --color-box-body-highlight: #25271d; --color-text-dark: #efefec; --color-text: #e4e5df; --color-text-light: #c3c5bd; --color-text-light-1: #a3a69d; --color-text-light-2: #8c9080; --color-text-light-3: #808475; --color-footer: var(--color-nav-bg); --color-timeline: #3c3f33; --color-input-text: var(--color-text-dark); --color-input-background: #1a1c12; --color-input-toggle-background: #3c3f33; --color-input-border: var(--color-secondary-dark-1); --color-light: #16180e28; --color-light-border: #e4e5df28; --color-hover: #e4e5df14; --color-hover-opaque: #25271d; --color-active: #e4e5df24; --color-menu: #1f2217; --color-card: #1a1c12; --color-markup-table-row: #e4e5df0a; --color-markup-code-block: #1f2217; --color-markup-code-inline: #e4e5df1a; --color-button: #1f2217; --color-code-bg: #1a1c12; --color-shadow: #00000059; --color-shadow-opaque: #060703; --color-secondary-bg: #1f2217; --color-expand-button: #2f3227; --color-placeholder-text: var(--color-text-light-3); --color-editor-line-highlight: #25271d99; --color-editor-selection: #a0af543d; --color-project-column-bg: var(--color-secondary-light-2); --color-caret: #a0af54; --color-reaction-bg: #e4e5df12; --color-reaction-hover-bg: var(--color-primary-light-4); --color-reaction-active-bg: var(--color-primary-light-5); --color-tooltip-text: #e4e5df; --color-tooltip-bg: #090a05f0; --color-nav-bg: #1f2217; --color-nav-hover-bg: #25271d; --color-nav-text: var(--color-text); --color-secondary-nav-bg: #16180e; --color-label-text: var(--color-text); --color-label-bg: #8084754b; --color-label-hover-bg: #808475a0; --color-label-active-bg: #808475; --color-accent: var(--color-primary-light-1); --color-small-accent: var(--color-primary-light-5); --color-highlight-fg: #ddc56c; --color-highlight-bg: #35331f; --color-overlay-backdrop: #030402c0; --color-danger: var(--color-red); --color-transparency-grid-light: #2a2a2a; --color-transparency-grid-dark: #1a1a1a; --color-workflow-edge-hover: #797c72; /* syntax: the same roles as Zed and bat */ --color-syntax-keyword: #ad9be2; --color-syntax-bool: #e7a86e; --color-syntax-control: #ad9be2; --color-syntax-name: #6fb1d7; --color-syntax-type: #ddc56c; --color-syntax-number: #e7a86e; --color-syntax-operator: #a2a49b; --color-syntax-regexp: #7ac4ad; --color-syntax-string: #a9b767; --color-syntax-comment: #808475; --color-syntax-invalid: #e0775d; --color-syntax-link: #6fb1d7; --color-syntax-tag: #e0775d; --color-syntax-attribute: #e7a86e; --color-syntax-property: #e0775d; --color-syntax-variable: #e0775d; --color-syntax-string-special: #7ac4ad; --color-syntax-escape: #7ac4ad; --color-syntax-entity: #7ac4ad; --color-syntax-preproc: #ad9be2; --color-syntax-preproc-file: #a9b767; --color-syntax-decorator: #e7a86e; --color-syntax-namespace: #ddc56c; --color-syntax-name-pseudo: #ddc56c; --color-syntax-comment-special: #8c9080; --color-syntax-text: #c2c4ba; --color-syntax-text-alt: #c2c4ba; --color-syntax-punctuation: #a2a49b; --color-syntax-whitespace: #3c3f33; --color-syntax-diff-fg: #e4e5df; --color-syntax-deleted-bg: #362a1d; --color-syntax-inserted-bg: #2e311e; --color-syntax-emph: #ad9be2; --color-syntax-strong: #e7a86e; --color-syntax-heading: #e0775d; --color-syntax-subheading: #e0775d; --color-syntax-output: #808475; --color-syntax-prompt: #ad9be2; --color-syntax-traceback: #e0775d; --color-syntax-matching-bracket-bg: #a0af5440; --color-syntax-nonmatching-bracket-bg: #e0775d48; accent-color: var(--color-accent); color-scheme: dark; /* used by the layout rules below */ --paint-on-color: #16180e; --paint-btn-edge: #16180e; --paint-btn-edge-hover: #1a1c12; --paint-btn-hover-bg: #25271d; --paint-color-edge: #16180e40; --paint-color-edge-hover: #16180e59; --paint-focus: #a0af548c; --paint-selection: #a0af544d; --paint-syntax-builtin: #7ac4ad; --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); }