diff --git a/README.md b/README.md index b16794b..fa8df38 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ -# gitea-colors +# Gitea Colors -A collection of Gitea themes that tweaks the default theme. \ No newline at end of file +## About + +This is a collection of Gitea themes that primarily changes the colors of the default theme. It also +makes a few modifications to the layouts of the default theme and introduces custom fonts. + +## Gitea Compatibility + +The latest version of this theme has been tested to work fine with Gitea version **1.27.2** diff --git a/custom/public/assets/css/gitea-colors.css b/custom/public/assets/css/gitea-colors.css new file mode 100644 index 0000000..61b8acd --- /dev/null +++ b/custom/public/assets/css/gitea-colors.css @@ -0,0 +1,875 @@ +:root { + --fonts-regular: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + --fonts-monospace: "Monaco", "Fira Mono", Menlo, Consolas, "Liberation Mono", monospace; + --fonts-proportional: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + --fonts-heading: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif; +} + +html, body { + font-family: var(--fonts-regular); + font-size: 14px; +} + +/* === +Styles for the navigation that appears at the top of every page. +=== */ + +#navbar { + background-color: var(--color5) !important; + color: var(--color7); + border: none !important; + padding: 0.4rem 0.7rem; +} + +#navbar .item { + color: var(--color7); + font-weight: 600; +} + +#navbar .item:hover { + background-color: var(--color7) !important; + color: var(--color5); +} + +/* === +Styles for the the secondary navigation that appears below the main navigation on certain pages. +=== */ + +.secondary-nav { + background-color: var(--color3) !important; + color: var(--color1); + border: none !important; +} + +.secondary-nav .overflow-menu-items { + margin-top: 0rem; +} + +.secondary-nav .item { + color: var(--color5) !important; +} + +.secondary-nav .active.item { + background-color: var(--color7) !important; + color: var(--color5) !important; + border: none !important; +} + +.secondary-nav .active.item:hover { + color: var(--color6) !important; +} + +.secondary-nav .item:hover { + color: var(--color6) !important; +} + +/* === +Styles for the organization pages. +=== */ + +.org.secondary-nav { + padding-top: 0.1px; + margin-top: 0px !important; + background-color: var(--color3) !important; + color: var(--color1); + border: none !important; +} + +.org .flex-container { + margin-bottom: var(--page-spacing); +} + +.org .org-name { + color: var(--color1); + font-family: var(--fonts-heading); + font-weight: 600 !important; +} + +.page-content.organization.profile .item { + padding: 1rem !important; + border: none !important; +} + +.page-content.organization.profile .item-title { + font-family: var(--fonts-heading); + font-size: 1.4rem !important; +} + +/* === +Styles for the repository list page. +=== */ + +.explore.repositories .item { + padding: 1rem !important; + border: none !important; +} + +.explore.repositories .item-leading { + margin-top: 0.2rem; +} + +.explore.repositories .item-header { + padding-bottom: 0.6rem; +} + +.explore.repositories .item-title { + font-family: var(--fonts-heading); + font-size: 1.4rem !important; +} + +.explore.repositories .item-title a.name { + color: var(--color4) !important; +} + +.explore.repositories .item-title a.name:hover { + color: var(--color3) !important; +} + +.explore.repositories .item-trailing { + font-family: var(--fonts-heading); + font-size: 1rem !important; +} + +.explore.repositories .item-trailing a { + color: var(--color4) !important; +} + +.explore.repositories .item-trailing a:hover { + color: var(--color3) !important; +} + +/* === +Styles for the Users/Organizations list page. +==*/ + +.explore.users .item { + padding: 1rem !important; + border: none !important; +} + +.explore.users .item-leading { + margin-right: 0.3rem; +} + +.explore.users .item-title { + font-family: var(--fonts-heading); + font-size: 1.4rem !important; + padding-bottom: 0.6rem; +} + +.explore.users .item-title a.name { + color: var(--color4) !important; +} + +.explore.users .item-title a.name:hover { + color: var(--color3) !important; +} + + + + + + + + + + +/* === +Styles for the repository header that appears at the top of every repository page. The header is +placed within the secondary navigation bar. +== */ + +.repo-header { + padding-bottom: 1rem; +} + +.repo-header .header-h1 { + font-family: var(--fonts-heading); + font-weight: 600 !important; +} + +.repo-header .header-h1 a { + color: var(--color1); +} + + + + + + +/* === */ + +.page-content.home { + display: flex; + flex-direction: column; + justify-content: center; + height: 100%; +} + +.page-content.home h1 { + font-family: var(--fonts-heading); + font-size: 3rem; + font-weight: 900; +} + +.page-content.home h2 { + font-family: var(--fonts-heading); + font-size: 1.8rem; + font-weight: 600; +} + +/*=== +Common UI widgets and elements that are used throughout the Gitea web interface. +===*/ + +.ui.primary.button { + background-color: var(--color3) !important; + color: var(--color1) !important; + border: none !important; +} + +.ui.top.header { + background-color: var(--color1) !important; +} + +/* === +THE STANDARD GITEA AUTO THEME patched in places +=== */ + +@media (prefers-color-scheme: light) { + gitea-theme-meta-info { + --theme-display-name: "Light"; + --theme-color-scheme: "light"; + } + + :root { + --is-dark-theme: false; + --color-primary: var(--color3); /*#4183c4;*/ + --color-primary-contrast: #ffffff; + --color-primary-dark-1: #3876b3; + --color-primary-dark-2: #31699f; + --color-primary-dark-3: #2b5c8b; + --color-primary-dark-4: #254f77; + --color-primary-dark-5: #193450; + --color-primary-dark-6: #0c1a28; + --color-primary-dark-7: #04080c; + --color-primary-light-1: #548fca; + --color-primary-light-2: #679cd0; + --color-primary-light-3: #7aa8d6; + --color-primary-light-4: #8db5dc; + --color-primary-light-5: #b3cde7; + --color-primary-light-6: #d9e6f3; + --color-primary-light-7: #f4f8fb; + --color-primary-alpha-10: #4183c419; + --color-primary-alpha-20: #4183c433; + --color-primary-alpha-30: #4183c44b; + --color-primary-alpha-40: #4183c466; + --color-primary-alpha-50: #4183c480; + --color-primary-alpha-60: #4183c499; + --color-primary-alpha-70: #4183c4b3; + --color-primary-alpha-80: #4183c4cc; + --color-primary-alpha-90: #4183c4e1; + --color-primary-hover: var(--color-primary-dark-1); + --color-primary-active: var(--color-primary-dark-2); + --color-secondary: #d0d7de; + --color-secondary-dark-1: #c7ced5; + --color-secondary-dark-2: #b9c0c7; + --color-secondary-dark-3: #99a0a7; + --color-secondary-dark-4: #899097; + --color-secondary-dark-5: #7a8188; + --color-secondary-dark-6: #6a7178; + --color-secondary-dark-7: #5b6269; + --color-secondary-dark-8: #4b5259; + --color-secondary-dark-9: #3c434a; + --color-secondary-dark-10: #2c333a; + --color-secondary-dark-11: #1d242b; + --color-secondary-dark-12: #0d141b; + --color-secondary-dark-13: #00040b; + --color-secondary-light-1: #dee5ec; + --color-secondary-light-2: #e4ebf2; + --color-secondary-light-3: #ebf2f9; + --color-secondary-light-4: #f1f8ff; + --color-secondary-alpha-10: #d0d7de19; + --color-secondary-alpha-20: #d0d7de33; + --color-secondary-alpha-30: #d0d7de4b; + --color-secondary-alpha-40: #d0d7de66; + --color-secondary-alpha-50: #d0d7de80; + --color-secondary-alpha-60: #d0d7de99; + --color-secondary-alpha-70: #d0d7deb3; + --color-secondary-alpha-80: #d0d7decc; + --color-secondary-alpha-90: #d0d7dee1; + --color-secondary-button: var(--color-secondary-dark-4); + --color-secondary-hover: var(--color-secondary-dark-5); + --color-secondary-active: var(--color-secondary-dark-6); + --color-console-fg: #0d1117; + --color-console-fg-subtle: #40474d; + --color-console-bg: #ffffff; + --color-console-border: #d0d7de; + --color-console-hover-bg: #f1f3f5; + --color-console-active-bg: #d0d7de; + --color-console-menu-bg: #f8f9fb; + --color-console-menu-border: #d0d7de; + --color-console-link: #5c656d; + --color-red: #db2828; + --color-orange: #f2711c; + --color-yellow: #fbbd08; + --color-olive: #b5cc18; + --color-green: #21ba45; + --color-teal: #00b5ad; + --color-blue: #2185d0; + --color-violet: #6435c9; + --color-purple: #a333c8; + --color-pink: #e03997; + --color-brown: #a5673f; + --color-black: #1d2328; + --color-red-light: #e45e5e; + --color-orange-light: #f59555; + --color-yellow-light: #fcce46; + --color-olive-light: #d3e942; + --color-green-light: #46de6a; + --color-teal-light: #08fff4; + --color-blue-light: #51a5e3; + --color-violet-light: #8b67d7; + --color-purple-light: #bb64d8; + --color-pink-light: #e86bb1; + --color-brown-light: #c58b66; + --color-black-light: #4b5b68; + --color-red-dark-1: #c82121; + --color-orange-dark-1: #e6630d; + --color-yellow-dark-1: #e5ac04; + --color-olive-dark-1: #a3b816; + --color-green-dark-1: #1ea73e; + --color-teal-dark-1: #00a39c; + --color-blue-dark-1: #1e78bb; + --color-violet-dark-1: #5a30b5; + --color-purple-dark-1: #932eb4; + --color-pink-dark-1: #db228a; + --color-brown-dark-1: #955d39; + --color-black-dark-1: #2c3339; + --color-red-dark-2: #b11e1e; + --color-orange-dark-2: #cc580c; + --color-yellow-dark-2: #cc9903; + --color-olive-dark-2: #91a313; + --color-green-dark-2: #1a9537; + --color-teal-dark-2: #00918a; + --color-blue-dark-2: #1a6aa6; + --color-violet-dark-2: #502aa1; + --color-purple-dark-2: #8229a0; + --color-pink-dark-2: #c21e7b; + --color-brown-dark-2: #845232; + --color-black-dark-2: #131619; + --color-ansi-black: #1e2327; + --color-ansi-red: #cc4848; + --color-ansi-green: #87ab63; + --color-ansi-yellow: #cc9903; + --color-ansi-blue: #3a8ac6; + --color-ansi-magenta: #d22e8b; + --color-ansi-cyan: #00918a; + --color-ansi-white: var(--color-console-fg-subtle); + --color-ansi-bright-black: #46494d; + --color-ansi-bright-red: #d15a5a; + --color-ansi-bright-green: #93b373; + --color-ansi-bright-yellow: #eaaf03; + --color-ansi-bright-blue: #4e96cc; + --color-ansi-bright-magenta: #d74397; + --color-ansi-bright-cyan: #00b6ad; + --color-ansi-bright-white: var(--color-console-fg); + --color-series-16-0: #7db233; + --color-series-16-1: #499a37; + --color-series-16-2: #ce4751; + --color-series-16-3: #8f9121; + --color-series-16-4: #ac32a6; + --color-series-16-5: #7445e9; + --color-series-16-6: #c67d28; + --color-series-16-7: #4db392; + --color-series-16-8: #aa4d30; + --color-series-16-9: #2a6f84; + --color-series-16-10: #c45327; + --color-series-16-11: #3d965c; + --color-series-16-12: #792a93; + --color-series-16-13: #439d73; + --color-series-16-14: #103aad; + --color-series-16-15: #982e85; + --color-grey: #697077; + --color-grey-light: #7c838a; + --color-gold: #a1882b; + --color-white: #ffffff; + --color-diff-added-fg: #177231; + --color-diff-added-linenum-bg: #d1f8d9; + --color-diff-added-row-bg: #e6ffed; + --color-diff-added-row-border: #e6ffed; + --color-diff-added-word-bg: #acf2bd; + --color-diff-moved-row-bg: #f1f8d1; + --color-diff-moved-row-border: #d0e27f; + --color-diff-removed-fg: #c61f2b; + --color-diff-removed-linenum-bg: #ffcecb; + --color-diff-removed-row-bg: #ffeef0; + --color-diff-removed-row-border: #f1c0c0; + --color-diff-removed-word-bg: #fdb8c0; + --color-diff-inactive: #f0f2f4; + --color-error-border: #ff818266; + --color-error-bg: #ffebe9; + --color-error-bg-active: #ffcecb; + --color-error-bg-hover: #ffdcd7; + --color-error-text: #d1242f; + --color-success-border: #4ac26b66; + --color-success-bg: #dafbe1; + --color-success-text: #1a7f37; + --color-warning-border: #d4a72c66; + --color-warning-bg: #fff8c5; + --color-warning-text: #9a6700; + --color-info-border: #54aeff66; + --color-info-bg: #ddf4ff; + --color-info-text: #0969da; + --color-priority-border: #b9a1ff66; + --color-priority-bg: #f3e7ff; + --color-priority-text: #8250df; + --color-red-badge: #db2828; + --color-red-badge-bg: #db28281a; + --color-red-badge-hover-bg: #db28284d; + --color-green-badge: #21ba45; + --color-green-badge-bg: #21ba451a; + --color-green-badge-hover-bg: #21ba454d; + --color-yellow-badge: #fbbd08; + --color-yellow-badge-bg: #fbbd081a; + --color-yellow-badge-hover-bg: #fbbd084d; + --color-orange-badge: #f2711c; + --color-orange-badge-bg: #f2711c1a; + --color-orange-badge-hover-bg: #f2711c4d; + --color-git: #f05133; + --color-logo: #609926; + --color-body: #ffffff; + --color-box-header: #f1f3f5; + --color-box-body: #ffffff; + --color-box-body-highlight: #ecf5fd; + --color-text-dark: #01050a; + --color-text: #181c21; + --color-text-light: #30363b; + --color-text-light-1: #40474d; + --color-text-light-2: #5b6167; + --color-text-light-3: #747c84; + --color-footer: var(--color-nav-bg); + --color-timeline: #d0d7de; + --color-input-text: var(--color-text-dark); + --color-input-background: #fff; + --color-input-toggle-background: #d0d7de; + --color-input-border: var(--color-secondary-dark-1); + --color-light: #00001706; + --color-light-border: #0000171d; + --color-hover: #00001708; + --color-hover-opaque: #f1f3f5; + --color-active: #00001714; + --color-menu: #f8f9fb; + --color-card: #f8f9fb; + --color-markup-table-row: #0030600a; + --color-markup-code-block: #00306010; + --color-markup-code-inline: #00306012; + --color-button: #f8f9fb; + --color-code-bg: #fafdff; + --color-shadow: #00001726; + --color-shadow-opaque: #c7ced5; + --color-secondary-bg: #f2f5f8; + --color-expand-button: #cfe8fa; + --color-placeholder-text: var(--color-text-light-3); + --color-editor-line-highlight: var(--color-secondary-alpha-30); + --color-editor-selection: var(--color-primary-alpha-30); + --color-project-column-bg: var(--color-secondary-light-4); + --color-caret: var(--color-text-dark); + --color-reaction-bg: #0000170a; + --color-reaction-hover-bg: var(--color-primary-light-5); + --color-reaction-active-bg: var(--color-primary-light-6); + --color-tooltip-text: #fbfdff; + --color-tooltip-bg: #000017f0; + --color-nav-bg: #f6f7fa; + --color-nav-hover-bg: var(--color-secondary-light-1); + --color-nav-text: var(--color_text); + --color-secondary-nav-bg: #f9fafb; + --color-label-text: var(--color-text); + --color-label-bg: #949da64b; + --color-label-hover-bg: #949da6a0; + --color-label-active-bg: #949da6ff; + --color-accent: var(--color-primary-light-1); + --color-small-accent: var(--color-primary-light-6); + --color-highlight-fg: #eed200; + --color-highlight-bg: #f5efc5; + --color-overlay-backdrop: #080808c0; + --color-danger: var(--color-red); + --color-transparency-grid-light: #fafafa; + --color-transparency-grid-dark: #e2e2e2; + --color-workflow-edge-hover: #b1b7bd; + --color-syntax-keyword: #a73a00; + --color-syntax-bool: #076872; + --color-syntax-control: #7d5700; + --color-syntax-name: #785900; + --color-syntax-type: #ae2368; + --color-syntax-number: #105ead; + --color-syntax-operator: #a73a00; + --color-syntax-regexp: #773dc5; + --color-syntax-string: #456800; + --color-syntax-comment: #506070; + --color-syntax-invalid: #c00000; + --color-syntax-link: var(--color-primary); + --color-syntax-tag: #a73a00; + --color-syntax-attribute: #6f41c5; + --color-syntax-property: #2060a0; + --color-syntax-variable: #944a00; + --color-syntax-string-special: #7d5700; + --color-syntax-escape: #785900; + --color-syntax-entity: #6f41c5; + --color-syntax-preproc: #2d6a4b; + --color-syntax-preproc-file: #105ead; + --color-syntax-decorator: #2d6a4b; + --color-syntax-namespace: #555555; + --color-syntax-name-pseudo: #6f41c5; + --color-syntax-comment-special: #773dc5; + --color-syntax-text: inherit; + --color-syntax-text-alt: #47525b; + --color-syntax-punctuation: inherit; + --color-syntax-whitespace: #bbbbbb; + --color-syntax-diff-fg: #000000; + --color-syntax-deleted-bg: #ffdddd; + --color-syntax-inserted-bg: #ddffdd; + --color-syntax-emph: #8b5000; + --color-syntax-strong: inherit; + --color-syntax-heading: #7d5700; + --color-syntax-subheading: #456800; + --color-syntax-output: #506070; + --color-syntax-prompt: #944a00; + --color-syntax-traceback: #c00000; + --color-syntax-matching-bracket-bg: #00b5ad38; + --color-syntax-nonmatching-bracket-bg: #db282838; + accent-color: var(--color-accent); + color-scheme: light; + } +} +@media (prefers-color-scheme: dark) { + gitea-theme-meta-info { + --theme-display-name: "Dark"; + --theme-color-scheme: "dark"; + } + :root { + --is-dark-theme: true; + --color-primary: #4183c4; + --color-primary-contrast: #ffffff; + --color-primary-dark-1: #548fca; + --color-primary-dark-2: #679cd0; + --color-primary-dark-3: #7aa8d6; + --color-primary-dark-4: #8db5dc; + --color-primary-dark-5: #b3cde7; + --color-primary-dark-6: #d9e6f3; + --color-primary-dark-7: #f4f8fb; + --color-primary-light-1: #3876b3; + --color-primary-light-2: #31699f; + --color-primary-light-3: #2b5c8b; + --color-primary-light-4: #254f77; + --color-primary-light-5: #193450; + --color-primary-light-6: #0c1a28; + --color-primary-light-7: #04080c; + --color-primary-alpha-10: #4183c419; + --color-primary-alpha-20: #4183c433; + --color-primary-alpha-30: #4183c44b; + --color-primary-alpha-40: #4183c466; + --color-primary-alpha-50: #4183c480; + --color-primary-alpha-60: #4183c499; + --color-primary-alpha-70: #4183c4b3; + --color-primary-alpha-80: #4183c4cc; + --color-primary-alpha-90: #4183c4e1; + --color-primary-hover: var(--color-primary-light-1); + --color-primary-active: var(--color-primary-light-2); + --color-secondary: #3f4248; + --color-secondary-dark-1: #46494f; + --color-secondary-dark-2: #4f5259; + --color-secondary-dark-3: #5e626a; + --color-secondary-dark-4: #6f747d; + --color-secondary-dark-5: #7d828c; + --color-secondary-dark-6: #8b8f98; + --color-secondary-dark-7: #999da4; + --color-secondary-dark-8: #a8abb1; + --color-secondary-dark-9: #aeb1b8; + --color-secondary-dark-10: #bbbec3; + --color-secondary-dark-11: #c8cacf; + --color-secondary-dark-12: #d2d4d7; + --color-secondary-dark-13: #d5d6d9; + --color-secondary-light-1: #35373c; + --color-secondary-light-2: #2c2e32; + --color-secondary-light-3: #1f2124; + --color-secondary-light-4: #191a1c; + --color-secondary-alpha-10: #3f424819; + --color-secondary-alpha-20: #3f424833; + --color-secondary-alpha-30: #3f42484b; + --color-secondary-alpha-40: #3f424866; + --color-secondary-alpha-50: #3f424880; + --color-secondary-alpha-60: #3f424899; + --color-secondary-alpha-70: #3f4248b3; + --color-secondary-alpha-80: #3f4248cc; + --color-secondary-alpha-90: #3f4248e1; + --color-secondary-button: var(--color-secondary-dark-4); + --color-secondary-hover: var(--color-secondary-dark-3); + --color-secondary-active: var(--color-secondary-dark-2); + --color-console-fg: #f8f8f8; + --color-console-fg-subtle: #c1c3c8; + --color-console-bg: #191a1c; + --color-console-border: #313338; + --color-console-hover-bg: #2a2c30; + --color-console-active-bg: #313338; + --color-console-menu-bg: #292b2e; + --color-console-menu-border: #46494f; + --color-console-link: #969aa1; + --color-red: #cc4848; + --color-orange: #cc580c; + --color-yellow: #cc9903; + --color-olive: #91a313; + --color-green: #87ab63; + --color-teal: #00918a; + --color-blue: #3a8ac6; + --color-violet: #906ae1; + --color-purple: #b259d0; + --color-pink: #d22e8b; + --color-brown: #a47252; + --color-black: #202225; + --color-red-light: #d15a5a; + --color-orange-light: #f6a066; + --color-yellow-light: #eaaf03; + --color-olive-light: #abc016; + --color-green-light: #93b373; + --color-teal-light: #00b6ad; + --color-blue-light: #4e96cc; + --color-violet-light: #9b79e4; + --color-purple-light: #ba6ad5; + --color-pink-light: #d74397; + --color-brown-light: #b08061; + --color-black-light: #45484e; + --color-red-dark-1: #c23636; + --color-orange-dark-1: #f38236; + --color-yellow-dark-1: #b88a03; + --color-olive-dark-1: #839311; + --color-green-dark-1: #7a9e55; + --color-teal-dark-1: #00837c; + --color-blue-dark-1: #347cb3; + --color-violet-dark-1: #7b4edb; + --color-purple-dark-1: #a742c9; + --color-pink-dark-1: #be297d; + --color-brown-dark-1: #94674a; + --color-black-dark-1: #2e3033; + --color-red-dark-2: #ad3030; + --color-orange-dark-2: #f16e17; + --color-yellow-dark-2: #a37a02; + --color-olive-dark-2: #74820f; + --color-green-dark-2: #6c8c4c; + --color-teal-dark-2: #00746e; + --color-blue-dark-2: #2e6e9f; + --color-violet-dark-2: #6733d6; + --color-purple-dark-2: #9834b9; + --color-pink-dark-2: #a9246f; + --color-brown-dark-2: #835b42; + --color-black-dark-2: #292b2e; + --color-ansi-black: #202225; + --color-ansi-red: #cc4848; + --color-ansi-green: #87ab63; + --color-ansi-yellow: #cc9903; + --color-ansi-blue: #3a8ac6; + --color-ansi-magenta: #d22e8b; + --color-ansi-cyan: #00918a; + --color-ansi-white: var(--color-console-fg-subtle); + --color-ansi-bright-black: #45484e; + --color-ansi-bright-red: #d15a5a; + --color-ansi-bright-green: #93b373; + --color-ansi-bright-yellow: #eaaf03; + --color-ansi-bright-blue: #4e96cc; + --color-ansi-bright-magenta: #d74397; + --color-ansi-bright-cyan: #00b6ad; + --color-ansi-bright-white: var(--color-console-fg); + --color-series-16-0: #7db233; + --color-series-16-1: #499a37; + --color-series-16-2: #ce4751; + --color-series-16-3: #8f9121; + --color-series-16-4: #ac32a6; + --color-series-16-5: #7445e9; + --color-series-16-6: #c67d28; + --color-series-16-7: #4db392; + --color-series-16-8: #aa4d30; + --color-series-16-9: #2a6f84; + --color-series-16-10: #c45327; + --color-series-16-11: #3d965c; + --color-series-16-12: #792a93; + --color-series-16-13: #439d73; + --color-series-16-14: #103aad; + --color-series-16-15: #982e85; + --color-grey: #3d3f44; + --color-grey-light: #898d96; + --color-gold: #b1983b; + --color-white: #ffffff; + --color-diff-added-fg: #93b373; + --color-diff-added-linenum-bg: #274227; + --color-diff-added-row-bg: #203224; + --color-diff-added-row-border: #314a37; + --color-diff-added-word-bg: #3c653c; + --color-diff-moved-row-bg: #818044; + --color-diff-moved-row-border: #bcca6f; + --color-diff-removed-fg: #fb5f5b; + --color-diff-removed-linenum-bg: #482121; + --color-diff-removed-row-bg: #301e1e; + --color-diff-removed-row-border: #634343; + --color-diff-removed-word-bg: #6f3333; + --color-diff-inactive: #25272a; + --color-error-border: #763232; + --color-error-bg: #322226; + --color-error-bg-active: #49262a; + --color-error-bg-hover: #3c2427; + --color-error-text: #f85149; + --color-success-border: #225633; + --color-success-bg: #1c3329; + --color-success-text: #3fb950; + --color-warning-border: #5f481a; + --color-warning-bg: #342e1f; + --color-warning-text: #d29922; + --color-info-border: #254a7e; + --color-info-bg: #1b283a; + --color-info-text: #2f81f7; + --color-priority-border: #4a268d; + --color-priority-bg: #251c39; + --color-priority-text: #a371f7; + --color-red-badge: #db2828; + --color-red-badge-bg: #db28281a; + --color-red-badge-hover-bg: #db28284d; + --color-green-badge: #21ba45; + --color-green-badge-bg: #21ba451a; + --color-green-badge-hover-bg: #21ba454d; + --color-yellow-badge: #fbbd08; + --color-yellow-badge-bg: #fbbd081a; + --color-yellow-badge-hover-bg: #fbbd084d; + --color-orange-badge: #f2711c; + --color-orange-badge-bg: #f2711c1a; + --color-orange-badge-hover-bg: #f2711c4d; + --color-git: #f05133; + --color-logo: #609926; + --color-body: #1e1f20; + --color-box-header: #1b1c1e; + --color-box-body: #161718; + --color-box-body-highlight: #202124; + --color-text-dark: #f8f8f8; + --color-text: #d2d4d8; + --color-text-light: #c0c2c7; + --color-text-light-1: #aaadb4; + --color-text-light-2: #969aa1; + --color-text-light-3: #80858f; + --color-footer: var(--color-nav-bg); + --color-timeline: #383b40; + --color-input-text: var(--color-text-dark); + --color-input-background: #191a1c; + --color-input-toggle-background: #323438; + --color-input-border: var(--color-secondary-dark-1); + --color-light: #0b0b0c28; + --color-light-border: #f3f3f428; + --color-hover: #f3f3f419; + --color-hover-opaque: #232528; + --color-active: #f3f3f424; + --color-menu: #191a1c; + --color-card: #191a1c; + --color-markup-table-row: #f3f3f40f; + --color-markup-code-block: #f3f3f412; + --color-markup-code-inline: #f3f3f428; + --color-button: #191a1c; + --color-code-bg: #161718; + --color-shadow: #0b0b0c58; + --color-shadow-opaque: #0b0b0c; + --color-secondary-bg: #2e3033; + --color-expand-button: #333539; + --color-placeholder-text: var(--color-text-light-3); + --color-editor-line-highlight: var(--color-secondary-alpha-40); + --color-editor-selection: var(--color-primary-alpha-50); + --color-project-column-bg: var(--color-secondary-light-2); + --color-caret: var(--color-text); + --color-reaction-bg: #f3f3f412; + --color-reaction-hover-bg: var(--color-primary-light-4); + --color-reaction-active-bg: var(--color-primary-light-5); + --color-tooltip-text: #fafafa; + --color-tooltip-bg: #0b0b0cf0; + --color-nav-bg: #18191b; + --color-nav-hover-bg: var(--color-secondary-light-1); + --color-nav-text: var(--color-text); + --color-secondary-nav-bg: #1a1b1e; + --color-label-text: var(--color-text); + --color-label-bg: #7a7f8a4b; + --color-label-hover-bg: #7a7f8aa0; + --color-label-active-bg: #7a7f8aff; + --color-accent: var(--color-primary-light-1); + --color-small-accent: var(--color-primary-light-5); + --color-highlight-fg: #87651e; + --color-highlight-bg: #443a27; + --color-overlay-backdrop: #080808c0; + --color-danger: var(--color-red); + --color-transparency-grid-light: #2a2a2a; + --color-transparency-grid-dark: #1a1a1a; + --color-workflow-edge-hover: #666a73; + --color-syntax-keyword: #ff8854; + --color-syntax-bool: #25bbc9; + --color-syntax-control: #dd9e17; + --color-syntax-name: #fabd2f; + --color-syntax-type: #eb8cb3; + --color-syntax-number: #63b2dd; + --color-syntax-operator: #ff8854; + --color-syntax-regexp: #b89de4; + --color-syntax-string: #95b62a; + --color-syntax-comment: #8898b0; + --color-syntax-invalid: #ff8686; + --color-syntax-link: var(--color-primary); + --color-syntax-tag: #ff8854; + --color-syntax-attribute: #c792ff; + --color-syntax-property: #55afff; + --color-syntax-variable: #e29b33; + --color-syntax-string-special: #dd9e17; + --color-syntax-escape: #c7a618; + --color-syntax-entity: #c792ff; + --color-syntax-preproc: #4cbe7a; + --color-syntax-preproc-file: #63b2dd; + --color-syntax-decorator: #4cbe7a; + --color-syntax-namespace: #c9d1d9; + --color-syntax-name-pseudo: #c792ff; + --color-syntax-comment-special: #b89de4; + --color-syntax-text: #c9d1d9; + --color-syntax-text-alt: #b9bcc7; + --color-syntax-punctuation: #d2d4db; + --color-syntax-whitespace: #7f8699; + --color-syntax-diff-fg: #ffffff; + --color-syntax-deleted-bg: #5f3737; + --color-syntax-inserted-bg: #3a523a; + --color-syntax-emph: #d1a242; + --color-syntax-strong: #e29b33; + --color-syntax-heading: #dd9e17; + --color-syntax-subheading: #95b62a; + --color-syntax-output: #8898b0; + --color-syntax-prompt: #e29b33; + --color-syntax-traceback: #ff8686; + --color-syntax-matching-bracket-bg: #00918a48; + --color-syntax-nonmatching-bracket-bg: #cc484848; + accent-color: var(--color-accent); + color-scheme: dark; + } + .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); + } +} +gitea-theme-meta-info { + --theme-display-name: "Auto"; + --theme-color-scheme: "auto"; +} diff --git a/custom/public/assets/css/theme-color-blue.css b/custom/public/assets/css/theme-color-blue.css new file mode 100644 index 0000000..08dee62 --- /dev/null +++ b/custom/public/assets/css/theme-color-blue.css @@ -0,0 +1,10 @@ +:root { + --color1 : #F5FAFE; + --color2 : #CDE5FD; + --color3 : #009BFF; + --color4 : #1B3247; + --color5 : #F4F6F9; /* Crisp ice-white background */ + --color6 : #D8DEE9; /* Cool frost-grey UI panels */ + --color7 : #4C566A; /* Deep slate-grey accent */ + --color8 : #2E3440; /* Midnight polar-charcoal text */ +} diff --git a/custom/public/assets/css/theme-color-green.css b/custom/public/assets/css/theme-color-green.css new file mode 100644 index 0000000..5453e0d --- /dev/null +++ b/custom/public/assets/css/theme-color-green.css @@ -0,0 +1,10 @@ +:root { + --color1 : #F5FAF4; + --color2 : #E1EBE2; + --color3 : #5AB33B; + --color4 : #1C281F; + --color5 : #FAFDF2; /* Soft green-tinted cream background */ + --color6 : #EBEFE0; /* Muted pastel sage UI panels */ + --color7 : #66800B; /* Deep moss green accent */ + --color8 : #1F2604; /* Deep forest-black text */ +} \ No newline at end of file diff --git a/custom/public/assets/css/theme-color-orange.css b/custom/public/assets/css/theme-color-orange.css new file mode 100644 index 0000000..a5faa0a --- /dev/null +++ b/custom/public/assets/css/theme-color-orange.css @@ -0,0 +1,11 @@ +:root { + --color1 : #FCFAf4; /* Gentle warm cream background */ + --color2 : #EFEAD7; /* Muted pastel sand UI panels */ + --color3 : #AD8301; /* Deep gold accent */ + --color4 : #3D331A; /* Deep roasted tobacco text */ + + --color5 : #FCF9F7; /* Soft warm cream background */ + --color6 : #EFE4DE; /* Muted pastel clay UI panels */ + --color7 : #BC5215; /* Burnt terracotta accent */ + --color8 : #2E190E; /* Deep roasted coffee text */ +} \ No newline at end of file diff --git a/custom/public/assets/fonts/monaco/monaco.css b/custom/public/assets/fonts/monaco/monaco.css new file mode 100644 index 0000000..15f84d7 --- /dev/null +++ b/custom/public/assets/fonts/monaco/monaco.css @@ -0,0 +1,5 @@ +@font-face { + font-family: "Monaco"; font-style: normal; font-weight: 400; + src: url(monaco.ttf) format('truetype'); + font-display: swap; +} \ No newline at end of file diff --git a/custom/public/assets/fonts/monaco/monaco.ttf b/custom/public/assets/fonts/monaco/monaco.ttf new file mode 100644 index 0000000..af5df71 Binary files /dev/null and b/custom/public/assets/fonts/monaco/monaco.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-100.ttf b/custom/public/assets/fonts/poppins/poppins-100.ttf new file mode 100644 index 0000000..f5c0fdd Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-100.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-100i.ttf b/custom/public/assets/fonts/poppins/poppins-100i.ttf new file mode 100644 index 0000000..b910089 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-100i.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-200.ttf b/custom/public/assets/fonts/poppins/poppins-200.ttf new file mode 100644 index 0000000..ee62382 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-200.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-200i.ttf b/custom/public/assets/fonts/poppins/poppins-200i.ttf new file mode 100644 index 0000000..e392492 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-200i.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-300.ttf b/custom/public/assets/fonts/poppins/poppins-300.ttf new file mode 100644 index 0000000..2ab0221 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-300.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-300i.ttf b/custom/public/assets/fonts/poppins/poppins-300i.ttf new file mode 100644 index 0000000..6f9279d Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-300i.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-400.ttf b/custom/public/assets/fonts/poppins/poppins-400.ttf new file mode 100644 index 0000000..be06e7f Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-400.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-400i.ttf b/custom/public/assets/fonts/poppins/poppins-400i.ttf new file mode 100644 index 0000000..4620399 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-400i.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-500.ttf b/custom/public/assets/fonts/poppins/poppins-500.ttf new file mode 100644 index 0000000..e90e87e Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-500.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-500i.ttf b/custom/public/assets/fonts/poppins/poppins-500i.ttf new file mode 100644 index 0000000..d8a251c Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-500i.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-600.ttf b/custom/public/assets/fonts/poppins/poppins-600.ttf new file mode 100644 index 0000000..dabf7c2 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-600.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-600i.ttf b/custom/public/assets/fonts/poppins/poppins-600i.ttf new file mode 100644 index 0000000..29d5f74 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-600i.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-700.ttf b/custom/public/assets/fonts/poppins/poppins-700.ttf new file mode 100644 index 0000000..b94d47f Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-700.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-700i.ttf b/custom/public/assets/fonts/poppins/poppins-700i.ttf new file mode 100644 index 0000000..e2e6445 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-700i.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-800.ttf b/custom/public/assets/fonts/poppins/poppins-800.ttf new file mode 100644 index 0000000..8f008c3 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-800.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-800i.ttf b/custom/public/assets/fonts/poppins/poppins-800i.ttf new file mode 100644 index 0000000..b2a9bf5 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-800i.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-900.ttf b/custom/public/assets/fonts/poppins/poppins-900.ttf new file mode 100644 index 0000000..a9520b7 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-900.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins-900i.ttf b/custom/public/assets/fonts/poppins/poppins-900i.ttf new file mode 100644 index 0000000..ebfdd70 Binary files /dev/null and b/custom/public/assets/fonts/poppins/poppins-900i.ttf differ diff --git a/custom/public/assets/fonts/poppins/poppins.css b/custom/public/assets/fonts/poppins/poppins.css new file mode 100644 index 0000000..5f810af --- /dev/null +++ b/custom/public/assets/fonts/poppins/poppins.css @@ -0,0 +1,128 @@ +@font-face { + font-family: "Poppins"; + font-style: normal; + font-weight: 100; + src: url(poppins-100.ttf) format('truetype'); + font-display: swap; +} + +@font-face { + font-family: "Poppins"; + font-style: italic; + font-weight: 100; + src: url(poppins-100i.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: normal; + font-weight: 200; + src: url(poppins-200.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: italic; + font-weight: 200; + src: url(poppins-200i.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: normal; + font-weight: 300; + src: url(poppins-300.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: italic; + font-weight: 300; + src: url(poppins-300i.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: normal; + font-weight: 400; + src: url(poppins-400.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: italic; + font-weight: 400; + src: url(poppins-400i.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: normal; + font-weight: 500; + src: url(poppins-500.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: italic; + font-weight: 500; + src: url(poppins-500i.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: normal; + font-weight: 600; + src: url(poppins-600.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: italic; + font-weight: 600; + src: url(poppins-600i.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: normal; + font-weight: 700; + src: url(poppins-700.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: italic; + font-weight: 700; + src: url(poppins-700i.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: normal; + font-weight: 800; + src: url(poppins-800.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: italic; + font-weight: 800; + src: url(poppins-800i.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: normal; + font-weight: 900; + src: url(poppins-900.ttf) format('truetype'); + font-display: swap; +} +@font-face { + font-family: "Poppins"; + font-style: italic; + font-weight: 900; + src: url(poppins-900i.ttf) format('truetype'); + font-display: swap; +} + diff --git a/custom/public/assets/fonts/public-sans/public-sans-100.ttf b/custom/public/assets/fonts/public-sans/public-sans-100.ttf new file mode 100644 index 0000000..caa7e9a Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-100.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-100i.ttf b/custom/public/assets/fonts/public-sans/public-sans-100i.ttf new file mode 100644 index 0000000..35d346d Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-100i.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-200.ttf b/custom/public/assets/fonts/public-sans/public-sans-200.ttf new file mode 100644 index 0000000..da65671 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-200.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-200i.ttf b/custom/public/assets/fonts/public-sans/public-sans-200i.ttf new file mode 100644 index 0000000..5441105 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-200i.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-300.ttf b/custom/public/assets/fonts/public-sans/public-sans-300.ttf new file mode 100644 index 0000000..9685547 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-300.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-300i.ttf b/custom/public/assets/fonts/public-sans/public-sans-300i.ttf new file mode 100644 index 0000000..c27c5fe Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-300i.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-400.ttf b/custom/public/assets/fonts/public-sans/public-sans-400.ttf new file mode 100644 index 0000000..9bcc259 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-400.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-400i.ttf b/custom/public/assets/fonts/public-sans/public-sans-400i.ttf new file mode 100644 index 0000000..9d458ed Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-400i.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-500.ttf b/custom/public/assets/fonts/public-sans/public-sans-500.ttf new file mode 100644 index 0000000..73db1c5 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-500.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-500i.ttf b/custom/public/assets/fonts/public-sans/public-sans-500i.ttf new file mode 100644 index 0000000..dfa96ca Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-500i.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-600.ttf b/custom/public/assets/fonts/public-sans/public-sans-600.ttf new file mode 100644 index 0000000..9ee3fcb Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-600.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-600i.ttf b/custom/public/assets/fonts/public-sans/public-sans-600i.ttf new file mode 100644 index 0000000..f949c20 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-600i.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-700.ttf b/custom/public/assets/fonts/public-sans/public-sans-700.ttf new file mode 100644 index 0000000..7b6182c Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-700.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-700i.ttf b/custom/public/assets/fonts/public-sans/public-sans-700i.ttf new file mode 100644 index 0000000..21a8545 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-700i.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-800.ttf b/custom/public/assets/fonts/public-sans/public-sans-800.ttf new file mode 100644 index 0000000..44ea742 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-800.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-800i.ttf b/custom/public/assets/fonts/public-sans/public-sans-800i.ttf new file mode 100644 index 0000000..2966845 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-800i.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-900.ttf b/custom/public/assets/fonts/public-sans/public-sans-900.ttf new file mode 100644 index 0000000..3a62312 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-900.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-900i.ttf b/custom/public/assets/fonts/public-sans/public-sans-900i.ttf new file mode 100644 index 0000000..dc4cbbb Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-900i.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-varw.ttf b/custom/public/assets/fonts/public-sans/public-sans-varw.ttf new file mode 100644 index 0000000..711d314 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-varw.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans-varwi.ttf b/custom/public/assets/fonts/public-sans/public-sans-varwi.ttf new file mode 100644 index 0000000..31d6684 Binary files /dev/null and b/custom/public/assets/fonts/public-sans/public-sans-varwi.ttf differ diff --git a/custom/public/assets/fonts/public-sans/public-sans.css b/custom/public/assets/fonts/public-sans/public-sans.css new file mode 100644 index 0000000..f638c97 --- /dev/null +++ b/custom/public/assets/fonts/public-sans/public-sans.css @@ -0,0 +1,152 @@ +/* Public Sans Thin (100) */ +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-100.ttf') format('truetype'); + font-weight: 100; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-100i.ttf') format('truetype'); + font-weight: 100; + font-style: italic; + font-display: swap; +} + +/* Public Sans Extra Light (200) */ +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-200.ttf') format('truetype'); + font-weight: 200; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-200i.ttf') format('truetype'); + font-weight: 200; + font-style: italic; + font-display: swap; +} + +/* Public Sans Light (300) */ +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-300.ttf') format('truetype'); + font-weight: 300; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-300i.ttf') format('truetype'); + font-weight: 300; + font-style: italic; + font-display: swap; +} + +/* Public Sans Regular (400) */ +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-400.ttf') format('truetype'); + font-weight: 400; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-400i.ttf') format('truetype'); + font-weight: 400; + font-style: italic; + font-display: swap; +} + +/* Public Sans Medium (500) */ +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-500.ttf') format('truetype'); + font-weight: 500; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-500i.ttf') format('truetype'); + font-weight: 500; + font-style: italic; + font-display: swap; +} + +/* Public Sans Semi Bold (600) */ +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-600.ttf') format('truetype'); + font-weight: 600; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-600i.ttf') format('truetype'); + font-weight: 600; + font-style: italic; + font-display: swap; +} + +/* Public Sans Bold (700) */ +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-700.ttf') format('truetype'); + font-weight: 700; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-700i.ttf') format('truetype'); + font-weight: 700; + font-style: italic; + font-display: swap; +} + +/* Public Sans Extra Bold (800) */ +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-800.ttf') format('truetype'); + font-weight: 800; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-800i.ttf') format('truetype'); + font-weight: 800; + font-style: italic; + font-display: swap; +} + +/* Public Sans Black (900) */ +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-900.ttf') format('truetype'); + font-weight: 900; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Public Sans'; + src: url('public-sans-900i.ttf') format('truetype'); + font-weight: 900; + font-style: italic; + font-display: swap; +} diff --git a/custom/templates/custom/footer.tmpl b/custom/templates/custom/footer.tmpl new file mode 100644 index 0000000..e69de29 diff --git a/custom/templates/custom/header.tmpl b/custom/templates/custom/header.tmpl new file mode 100644 index 0000000..9682343 --- /dev/null +++ b/custom/templates/custom/header.tmpl @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/custom/templates/explore/user_list.tmpl b/custom/templates/explore/user_list.tmpl new file mode 100644 index 0000000..a6bb7a6 --- /dev/null +++ b/custom/templates/explore/user_list.tmpl @@ -0,0 +1,37 @@ +
+ {{range .Users}} + {{/* printf "%#v" . */}} +
+
+ {{ctx.AvatarUtils.Avatar . 48}} +
+
+
+ {{template "shared/user/name" .}} + {{if .Visibility.IsPrivate}} + {{ctx.Locale.Tr "repo.desc.private"}} + {{end}} +
+ {{if .Description}} +
{{.Description}}
+ {{end}} +
+ {{if .Location}} + {{svg "octicon-location"}}{{.Location}} + {{end}} + {{if and .Email (or (and $.ShowUserEmail $.IsSigned (not .KeepEmailPrivate)) $.PageIsAdminUsers)}} + + {{svg "octicon-mail"}} + {{.Email}} + + {{end}} + {{svg "octicon-calendar"}}{{ctx.Locale.Tr "user.joined_on" (DateUtils.AbsoluteShort .CreatedUnix)}} +
+
+
+ {{else}} +
+ {{ctx.Locale.Tr "search.no_results"}} +
+ {{end}} +
diff --git a/custom/templates/home.tmpl b/custom/templates/home.tmpl new file mode 100644 index 0000000..e7a5588 --- /dev/null +++ b/custom/templates/home.tmpl @@ -0,0 +1,15 @@ +{{template "base/head" .}} +
+
+
+ +
+

+ {{AppName}} +

+

{{MetaDescription}}

+
+
+
+
+{{template "base/footer" .}} diff --git a/custom/templates/org/header.tmpl b/custom/templates/org/header.tmpl new file mode 100644 index 0000000..4d0043a --- /dev/null +++ b/custom/templates/org/header.tmpl @@ -0,0 +1,40 @@ +
+
+
{{ctx.AvatarUtils.Avatar .Org 100}}
+
+
+
+ {{.Org.DisplayName}} + {{if .Org.Visibility.IsLimited}}{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}{{end}} + {{if .Org.Visibility.IsPrivate}}{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}{{end}} +
+
+ {{if .EnableFeed}} + + {{svg "octicon-rss" 24}} + + {{end}} + {{if .IsSigned}} + {{template "org/follow_unfollow" .}} + {{end}} +
+
+ {{if .RenderedDescription}} +
{{.RenderedDescription}}
+ {{end}} +
+ {{if .Org.Location}} +
{{svg "octicon-location"}} {{.Org.Location}}
+ {{end}} + {{if .Org.Website}} +
{{svg "octicon-link"}} {{.Org.Website}}
+ {{end}} + {{if and .IsSigned .Org.Email}} +
{{svg "octicon-mail"}} {{.Org.Email}}
+ {{end}} +
+
+
+ + {{template "org/menu" .}} +
\ No newline at end of file diff --git a/custom/templates/org/home.tmpl b/custom/templates/org/home.tmpl new file mode 100644 index 0000000..d1472a8 --- /dev/null +++ b/custom/templates/org/home.tmpl @@ -0,0 +1,101 @@ +{{template "base/head" .}} +
+ {{template "org/header" .}} + +
+
+
+ {{if .ProfileReadmeContent}} +
{{.ProfileReadmeContent}}
+ {{end}} + {{template "shared/repo/search" .}} +
+ {{if not .Repos}} +
+ {{svg "octicon-repo" 48}} +

{{ctx.Locale.Tr "org.repos.empty"}}

+

{{ctx.Locale.Tr "org.repos.empty_description"}}

+
+ {{else}} + {{template "shared/repo/list" .}} + {{template "base/paginate" .}} + {{end}} +
+ + {{if .ShowMemberAndTeamTab}} +
+ {{if .CanCreateOrgRepo}} +
+ {{ctx.Locale.Tr "new_repo"}} + {{if not .DisableNewPullMirrors}} + {{ctx.Locale.Tr "new_migrate"}} + {{end}} +
+
+ {{end}} + + {{if and .ShowMemberAndTeamTab .ShowOrgProfileReadmeSelector}} +
+ +
+ {{if .IsViewingOrgAsMember}}{{ctx.Locale.Tr "org.view_as_member_hint"}}{{else}}{{ctx.Locale.Tr "org.view_as_public_hint"}}{{end}} +
+
+ {{end}} + + {{if .NumMembers}} +

+ {{ctx.Locale.Tr "org.members"}} + {{.NumMembers}} {{svg "octicon-chevron-right"}} +

+ {{/* gap 8px below is specifically chosen to make sure a full line of avatars can exactly fit the segment width */}} +
+ {{range $memberUser := .OrgOverviewMembers}} + {{if or $.IsOrganizationMember (call $.IsPublicMember $memberUser.ID)}} + {{template "shared/user/avatarlink" dict "user" $memberUser "size" 32 "tooltip" true}} + {{end}} + {{end}} +
+ {{end}} + {{if .IsOrganizationMember}} +
+ {{ctx.Locale.Tr "org.teams"}} + {{.Org.NumTeams}} {{svg "octicon-chevron-right"}} +
+ + {{if .IsOrganizationOwner}} + + {{end}} + {{end}} +
+ {{end}} +
+
+
+{{template "base/footer" .}} diff --git a/custom/templates/repo/header.tmpl b/custom/templates/repo/header.tmpl new file mode 100644 index 0000000..9aab5c8 --- /dev/null +++ b/custom/templates/repo/header.tmpl @@ -0,0 +1,195 @@ +
+ {{with .Repository}} +
+
+ {{/* left part */}} +
+ {{template "repo/icon" .}} + +
+ {{if .IsArchived}} + {{ctx.Locale.Tr "repo.desc.archived"}} +
{{svg "octicon-archive" 18}}
+ {{end}} + {{if .IsPrivate}} + {{ctx.Locale.Tr "repo.desc.private"}} +
{{svg "octicon-lock" 18}}
+ {{else}} + {{if .Owner.Visibility.IsPrivate}} + {{ctx.Locale.Tr "repo.desc.internal"}} +
{{svg "octicon-shield-lock" 18}}
+ {{end}} + {{end}} + {{if $.Permission.HasAnyUnitPublicAccess}} + {{ctx.Locale.Tr "repo.desc.public_access"}} + {{end}} + {{if .IsTemplate}} + {{ctx.Locale.Tr "repo.desc.template"}} +
{{svg "octicon-repo-template" 18}}
+ {{end}} + {{if eq .ObjectFormatName "sha256"}} + {{ctx.Locale.Tr "repo.desc.sha256"}} + {{end}} +
+
+ {{if not (or .IsBeingCreated .IsBroken)}} + {{/* right part */}} +
+ {{if $.CanUserAcceptOrRejectTransfer}} + + + {{else if $.RepoTransfer}} +
+ +
+ {{end}} + {{if $.EnableFeed}} + {{/* An extra div-element is not necessary here, as this button does not secretly contain two buttons. */}} + + {{svg "octicon-rss" 16}} + + {{end}} + {{template "repo/header/watch" $}} + {{if not $.DisableStars}} + {{template "repo/header/star" $}} + {{end}} + {{if and (not .IsEmpty) ($.Permission.CanRead ctx.Consts.RepoUnitTypeCode)}} + {{template "repo/header/fork" $}} + {{end}} +
+ {{end}} +
+ + {{/* next line, secondary info */}} + {{if $.PullMirror}} +
+ {{ctx.Locale.Tr "repo.mirror_from"}} + {{$.PullMirror.RemoteAddress}} + {{if $.PullMirror.UpdatedUnix}}{{ctx.Locale.Tr "repo.mirror_sync"}} {{DateUtils.TimeSince $.PullMirror.UpdatedUnix}}{{end}} +
+ {{end}} + {{if .IsFork}}
{{ctx.Locale.Tr "repo.forked_from"}} {{.BaseRepo.FullName}}
{{end}} + {{if .IsGenerated}}
{{ctx.Locale.Tr "repo.generated_from"}} {{(.TemplateRepo ctx).FullName}}
{{end}} +
+ {{end}} + +
+ + {{if not (or .Repository.IsBeingCreated .Repository.IsBroken)}} +
+ {{if .Permission.CanRead ctx.Consts.RepoUnitTypeCode}} + + {{svg "octicon-code"}} {{ctx.Locale.Tr "repo.code"}} + + {{end}} + + {{if .Permission.CanRead ctx.Consts.RepoUnitTypeIssues}} + + {{svg "octicon-issue-opened"}} {{ctx.Locale.Tr "repo.issues"}} + {{if .Repository.NumOpenIssues}} + {{CountFmt .Repository.NumOpenIssues}} + {{end}} + + {{end}} + + {{if .Permission.CanRead ctx.Consts.RepoUnitTypeExternalTracker}} + + {{svg "octicon-link-external"}} {{ctx.Locale.Tr "repo.issues"}} + + {{end}} + + {{if and .Repository.CanEnablePulls (.Permission.CanRead ctx.Consts.RepoUnitTypePullRequests)}} + + {{svg "octicon-git-pull-request"}} {{ctx.Locale.Tr "repo.pulls"}} + {{if .Repository.NumOpenPulls}} + {{CountFmt .Repository.NumOpenPulls}} + {{end}} + + {{end}} + + {{if and .EnableActions (.Permission.CanRead ctx.Consts.RepoUnitTypeActions) (not .IsEmptyRepo)}} + + {{svg "octicon-play"}} {{ctx.Locale.Tr "actions.actions"}} + {{if .Repository.NumOpenActionRuns}} + {{CountFmt .Repository.NumOpenActionRuns}} + {{end}} + + {{end}} + + {{if .Permission.CanRead ctx.Consts.RepoUnitTypePackages}} + + {{svg "octicon-package"}} {{ctx.Locale.Tr "packages.title"}} + + {{end}} + + {{$projectsUnit := .Repository.MustGetUnit ctx ctx.Consts.RepoUnitTypeProjects}} + {{if and (not ctx.Consts.RepoUnitTypeProjects.UnitGlobalDisabled) (.Permission.CanRead ctx.Consts.RepoUnitTypeProjects) ($projectsUnit.ProjectsConfig.IsProjectsAllowed "repo")}} + + {{svg "octicon-project"}} {{ctx.Locale.Tr "repo.projects"}} + {{if .Repository.NumOpenProjects}} + {{CountFmt .Repository.NumOpenProjects}} + {{end}} + + {{end}} + + {{if and (.Permission.CanRead ctx.Consts.RepoUnitTypeReleases) (not .IsEmptyRepo)}} + + {{svg "octicon-tag"}} {{ctx.Locale.Tr "repo.releases"}} + {{if .NumReleases}} + {{CountFmt .NumReleases}} + {{end}} + + {{end}} + + {{if .Permission.CanRead ctx.Consts.RepoUnitTypeWiki}} + + {{svg "octicon-book"}} {{ctx.Locale.Tr "repo.wiki"}} + + {{end}} + + {{if .Permission.CanRead ctx.Consts.RepoUnitTypeExternalWiki}} + + {{svg "octicon-link-external"}} {{ctx.Locale.Tr "repo.wiki"}} + + {{end}} + + {{if and (.Permission.CanReadAny ctx.Consts.RepoUnitTypePullRequests ctx.Consts.RepoUnitTypeIssues ctx.Consts.RepoUnitTypeReleases ctx.Consts.RepoUnitTypeCode) (not .IsEmptyRepo)}} + + {{svg "octicon-pulse"}} {{ctx.Locale.Tr "repo.activity"}} + + {{end}} + + {{template "custom/extra_tabs" .}} + + {{if .Permission.IsAdmin}} + + + {{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}} + + {{end}} +
+ {{else}} +
+ {{if(and .Repository.IsBeingCreated (.Permission.CanRead ctx.Consts.RepoUnitTypeCode))}} + + {{svg "octicon-clock"}} {{ctx.Locale.Tr "repo.migration_status"}} + + {{end}} + + {{if .Permission.IsAdmin}} + + {{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}} + + {{end}} +
+ {{end}} +
+
+
+
diff --git a/custom/templates/shared/repo/list.tmpl b/custom/templates/shared/repo/list.tmpl new file mode 100644 index 0000000..9645b5d --- /dev/null +++ b/custom/templates/shared/repo/list.tmpl @@ -0,0 +1,79 @@ +
+ {{range .Repos}} +
+
+ {{if $.ShowRepoOwnerAvatar}} + {{ctx.AvatarUtils.Avatar .Owner 24}} + {{else}} + {{template "repo/icon" .}} + {{end}} +
+
+
+
+ {{if and $.ShowRepoOwnerOnList .Owner}} + {{.Owner.Name}} ► + {{end}} + {{.Name}} + + {{if .IsArchived}} + {{ctx.Locale.Tr "repo.desc.archived"}} + {{end}} + {{if .IsPrivate}} + {{ctx.Locale.Tr "repo.desc.private"}} + {{else}} + {{if .Owner.Visibility.IsPrivate}} + {{ctx.Locale.Tr "repo.desc.internal"}} + {{end}} + {{end}} + {{if .IsTemplate}} + {{ctx.Locale.Tr "repo.desc.template"}} + {{end}} + {{if eq .ObjectFormatName "sha256"}} + {{ctx.Locale.Tr "repo.desc.sha256"}} + {{end}} + +
+ +
+ {{$description := .DescriptionHTML ctx}} + {{if $description}} +
{{$description}}
+ {{end}} + {{if .Topics}} +
+ {{range .Topics}} + {{if ne . ""}}{{.}}{{end}} + {{end}} +
+ {{end}} +
{{ctx.Locale.Tr "org.repo_updated"}} {{DateUtils.TimeSince .UpdatedUnix}}
+
+
+ {{else}} +
+ {{ctx.Locale.Tr "search.no_results"}} +
+ {{end}} +
diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..74f049d --- /dev/null +++ b/deploy.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +# This script is used to deploy the gitea-colors project. + +set -eu + +SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) +RSYNC="rsync -av --delete" + +rsync_files() { + + mkdir -p "$1/custom/local" + $RSYNC --exclude-from="$SCRIPT_DIR/rsync-exclude" "$SCRIPT_DIR/custom/local" "$1/custom/" + + mkdir -p "$1/custom/options" + $RSYNC --exclude-from="$SCRIPT_DIR/rsync-exclude" "$SCRIPT_DIR/custom/options" "$1/custom/" + + mkdir -p "$1/custom/public" + $RSYNC --exclude-from="$SCRIPT_DIR/rsync-exclude" "$SCRIPT_DIR/custom/public" "$1/custom/" + + mkdir -p "$1/custom/templates" + $RSYNC --exclude-from="$SCRIPT_DIR/rsync-exclude" "$SCRIPT_DIR/custom/templates" "$1/custom/" +} + +if [ "$#" -ne 1 ]; then + echo "Usage: $0 DESTINATION" >&2 + exit 1 +fi + +rsync_files "$1" \ No newline at end of file diff --git a/rsync-exclude b/rsync-exclude new file mode 100644 index 0000000..87b8000 --- /dev/null +++ b/rsync-exclude @@ -0,0 +1,3 @@ +.git/ +deploy.sh +rsync-exclude