mirror of
https://github.com/catppuccin/gitea.git
synced 2026-02-03 18:34:02 +08:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cecfa246aa | ||
|
|
fe15a3ac01 | ||
|
|
ae313516b5 | ||
|
|
e92449e106 | ||
|
|
fbe4fcf3b2 | ||
|
|
11bd7b77ec | ||
|
|
c1c223fe50 | ||
|
|
7c0fe1b1f1 | ||
|
|
c5fd42c35a | ||
|
|
6bae7a8fed |
39
.github/workflows/release-please.yml
vendored
Normal file
39
.github/workflows/release-please.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
name: release-please
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
release-please:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: google-github-actions/release-please-action@v3
|
||||
id: release
|
||||
with:
|
||||
release-type: simple
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: denoland/setup-deno@v1
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
with:
|
||||
deno-version: v1.x
|
||||
|
||||
- run: deno task build
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
|
||||
- name: Create tarball
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
run: tar czf catppuccin-gitea.tar.gz --directory=./dist .
|
||||
|
||||
- name: Upload Release Artifacts
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run:
|
||||
gh release upload ${{ steps.release.outputs.tag_name }} ./artifact/some-build-artifact.zip
|
||||
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@@ -1,21 +0,0 @@
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: v1.x
|
||||
- run: deno task build
|
||||
- name: Create tarball
|
||||
run: tar czf catppuccin-gitea.tar.gz --directory=./dist .
|
||||
- name: Add zips to release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: ./catppuccin-gitea.tar.gz
|
||||
20
CHANGELOG.md
Normal file
20
CHANGELOG.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Changelog
|
||||
|
||||
## [0.4.1](https://github.com/catppuccin/gitea/compare/v0.4.0...v0.4.1) (2023-08-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **commits:** signed commit background ([fe15a3a](https://github.com/catppuccin/gitea/commit/fe15a3ac012e0bcbfd57bcdb3e83382164c7e9f3)), closes [#13](https://github.com/catppuccin/gitea/issues/13)
|
||||
|
||||
## [0.4.0](https://github.com/catppuccin/gitea/compare/v0.3.1...v0.4.0) (2023-08-23)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* monaco editor styling ([11bd7b7](https://github.com/catppuccin/gitea/commit/11bd7b77ece1d761828ffeb87a053e78acc050a2))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* tag labels style ([c1c223f](https://github.com/catppuccin/gitea/commit/c1c223fe50c7286bc023d2798761293f25cfc080))
|
||||
4
build.ts
4
build.ts
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env -S deno run -A
|
||||
|
||||
import * as path from "std/path";
|
||||
import * as sass from "sass";
|
||||
import ctp from "npm:@catppuccin/palette";
|
||||
@@ -49,6 +50,9 @@ for (const flavor of flavors) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO:
|
||||
// refactor this part out to a common import, since ctp/ctp & ctp/userstyles
|
||||
// are both using the same base function
|
||||
const updateReadme = ({
|
||||
readme,
|
||||
section,
|
||||
|
||||
138
src/_monaco.scss
Normal file
138
src/_monaco.scss
Normal file
@@ -0,0 +1,138 @@
|
||||
.monaco-editor {
|
||||
// selected text
|
||||
.selected-text {
|
||||
background-color: $surface0 !important;
|
||||
}
|
||||
// line numbers
|
||||
.margin-view-overlays .line-numbers {
|
||||
color: $subtext0 !important;
|
||||
}
|
||||
.line-numbers.active-line-number {
|
||||
color: $accent !important;
|
||||
}
|
||||
|
||||
// current / cursor line
|
||||
.view-overlays .current-line,
|
||||
.margin-view-overlays .current-line-margin {
|
||||
background-color: #{if(
|
||||
$isDark,
|
||||
color.mix($surface0, $base, 64%),
|
||||
color.mix($mantle, $base, 70%)
|
||||
)} !important;
|
||||
}
|
||||
|
||||
// Note: all of the hotpink stuff is there so it's easily visible, since these editor scope mappings are a mess
|
||||
|
||||
// plaintext
|
||||
.mtk1 {
|
||||
color: $text !important;
|
||||
}
|
||||
.mtk2 {
|
||||
color: #ff69b4 !important;
|
||||
}
|
||||
// decorators
|
||||
.mtk3 {
|
||||
color: $peach !important;
|
||||
}
|
||||
// shell arguments
|
||||
.mtk4 {
|
||||
color: $teal !important;
|
||||
}
|
||||
// css constants & pre-defineds
|
||||
.mtk5 {
|
||||
color: $text !important;
|
||||
}
|
||||
// keywords
|
||||
.mtk6 {
|
||||
color: $mauve !important;
|
||||
}
|
||||
// numbers
|
||||
.mtk7 {
|
||||
color: $peach !important;
|
||||
}
|
||||
// comments
|
||||
.mtk8 {
|
||||
color: $overlay2 !important;
|
||||
}
|
||||
// sometimes a keyword, apparently
|
||||
.mtk9 {
|
||||
color: $mauve !important;
|
||||
}
|
||||
// braces, brackets, parentheses
|
||||
.mtk10 {
|
||||
color: $subtext0 !important;
|
||||
}
|
||||
// arrow brackets & equal signs in HTML
|
||||
.mtk11 {
|
||||
color: $teal !important;
|
||||
}
|
||||
// @ sign in javascript ¯\_(ツ)_/¯
|
||||
.mtk12 {
|
||||
color: $teal !important;
|
||||
}
|
||||
.mtk13 {
|
||||
color: #ff69b4 !important;
|
||||
}
|
||||
.mtk14 {
|
||||
color: #ff69b4 !important;
|
||||
}
|
||||
// regex, css classnames, and HTML keywords (huh)
|
||||
.mtk15 {
|
||||
color: $mauve !important;
|
||||
}
|
||||
// shebangs
|
||||
.mtk16 {
|
||||
color: $overlay2 !important;
|
||||
}
|
||||
.mtk17 {
|
||||
color: #ff69b4 !important;
|
||||
}
|
||||
.mtk18 {
|
||||
color: #ff69b4 !important;
|
||||
}
|
||||
// glob operator i guess
|
||||
.mtk19 {
|
||||
color: $teal !important;
|
||||
}
|
||||
.mtk20 {
|
||||
color: #ff69b4 !important;
|
||||
}
|
||||
// strings
|
||||
.mtk21 {
|
||||
color: $green !important;
|
||||
}
|
||||
.mtk22 {
|
||||
color: #ff69b4 !important;
|
||||
}
|
||||
// functions
|
||||
.mtk23 {
|
||||
color: $blue !important;
|
||||
}
|
||||
// shell variables
|
||||
.mtk24 {
|
||||
color: $peach !important;
|
||||
}
|
||||
// weird variables
|
||||
.mtk25 {
|
||||
color: $pink !important;
|
||||
}
|
||||
|
||||
.bracket-highlighting-0 {
|
||||
color: color.mix($text, $red, 40%) !important;
|
||||
}
|
||||
.bracket-highlighting-1 {
|
||||
color: color.mix($text, $peach, 40%) !important;
|
||||
}
|
||||
.bracket-highlighting-2 {
|
||||
color: color.mix($text, $yellow, 40%) !important;
|
||||
}
|
||||
.bracket-highlighting-3 {
|
||||
color: color.mix($text, $green, 40%) !important;
|
||||
}
|
||||
.bracket-highlighting-4 {
|
||||
color: color.mix($text, $blue, 40%) !important;
|
||||
}
|
||||
.bracket-highlighting-5 {
|
||||
color: color.mix($text, $mauve, 40%) !important;
|
||||
}
|
||||
}
|
||||
@@ -145,7 +145,7 @@ $lvl3: if($isDark, $base, $crust);
|
||||
--color-red-badge-bg: #{$lvl1};
|
||||
--color-red-badge-hover-bg: #{ctx_lighten($red, 5%)};
|
||||
--color-green-badge: #{$green};
|
||||
--color-green-badge-bg: #{$lvl1};
|
||||
--color-green-badge-bg: #{$green};
|
||||
--color-green-badge-hover-bg: #{ctx_lighten($green, 5%)};
|
||||
--color-yellow-badge: #{$yellow};
|
||||
--color-yellow-badge-bg: #{$lvl1};
|
||||
@@ -208,7 +208,10 @@ $lvl3: if($isDark, $base, $crust);
|
||||
--color-reaction-active-bg: var(--color-primary-alpha-40);
|
||||
--color-header-wrapper: #{$lvl2};
|
||||
--color-header-wrapper-transparent: #{color.change($lvl2, $alpha: 0)};
|
||||
--color-label-active-bg: #{$surface2};
|
||||
--color-label-text: #{$crust};
|
||||
--color-label-bg: #{$accent};
|
||||
--color-label-hover-bg: #{ctx_lighten($accent, 6%)};
|
||||
--color-label-active-bg: #{ctx_lighten($accent, 3%)};
|
||||
--color-accent: var(--color-primary-light-1);
|
||||
--color-small-accent: var(--color-primary-light-5);
|
||||
--color-active-line: #{$surface1};
|
||||
@@ -263,7 +266,7 @@ $lvl3: if($isDark, $base, $crust);
|
||||
}
|
||||
|
||||
// most recent commit hover when signed
|
||||
.ui.sha.isSigned.isVerified:hover {
|
||||
.ui.sha.isSigned.isVerified {
|
||||
.shortsha {
|
||||
color: $lvl1;
|
||||
}
|
||||
@@ -285,3 +288,4 @@ $lvl3: if($isDark, $base, $crust);
|
||||
|
||||
@import "chroma";
|
||||
@import "codemirror";
|
||||
@import "monaco";
|
||||
|
||||
1
version.txt
Normal file
1
version.txt
Normal file
@@ -0,0 +1 @@
|
||||
0.4.1
|
||||
Reference in New Issue
Block a user