Compare commits
12 Commits
472647e7c1
...
v1.24.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
987144a594 | ||
|
|
2caf68e290 | ||
|
|
e2ccc8c9f7 | ||
|
|
7287aad198 | ||
|
|
b3ce1a8439 | ||
|
|
5d96a6896d | ||
|
|
ced954c1d0 | ||
|
|
bfb27ab4a2 | ||
|
|
3a5306b1a6 | ||
|
|
6608abc39b | ||
|
|
7eeafae4da | ||
|
|
89ac2720c7 |
60
.github/release.md
vendored
@@ -12,6 +12,7 @@ determined.
|
||||
|
||||
### ✨ Feature
|
||||
|
||||
- 新增粉色颜色主题
|
||||
- 修改外观设置中显示的主题名称
|
||||
|
||||
#### CSS 变量
|
||||
@@ -21,33 +22,17 @@ determined.
|
||||
|
||||
### 🌈 Style
|
||||
|
||||
- 优化小型按钮的高度
|
||||
- 一些列表栏的元素位置居中
|
||||
- 优化仪表板热力图和动态样式
|
||||
- 优化用户首页仪表板的样式
|
||||
|
||||
##### 更符合 GitHub 风格
|
||||
|
||||
- 同步查看代码文件内容时的样式
|
||||
- 优化查看代码文件内容时的体验 (去掉了一些底部元素, 优化滚动体验)
|
||||
- 略微减小导航栏创建仓库菜单按钮内的图标间隔
|
||||
- 微调一些标签的字体大小
|
||||
- 优化发布页面布局和下载列表样式
|
||||
- 同步里程碑页面样式
|
||||
- 同步顶部工单等仪表板样式
|
||||
- 同步置顶 Issue 样式
|
||||
- 同步订阅/关注页面样式
|
||||
- 同步用户菜单样式
|
||||
- 优化下拉菜单样式
|
||||
- 同步差异对比页面文件名标题栏样式
|
||||
- 同步查看代码文件内容时的样式 (去掉了一些底部元素, 优化滚动体验)
|
||||
- 整体调整了页面元素的间隔, 样式和字体大小
|
||||
- 同步顶部工单/合并请求/里程碑下的仪表板样式
|
||||
- 同步里程碑/置顶 Issue 的样式
|
||||
- 同步通知/订阅/关注/软件包/提示框/用户头像菜单的页面样式
|
||||
- 同步分支菜单宽度
|
||||
- 同步通知页面样式
|
||||
- 优化仪表板的仓库组织切换按钮样式
|
||||
- 同步仓库已标星的星星颜色
|
||||
- 优化仪表板动态信息间隔
|
||||
- 微调仓库相关界面元素间隔
|
||||
- 同步软件包页面样式
|
||||
- 同步提示框样式
|
||||
- 同步主色调按钮和红色按钮的阴影样式
|
||||
|
||||
### 🐞 Fix
|
||||
|
||||
@@ -56,22 +41,47 @@ determined.
|
||||
- 修复登录二次验证页面内容位置
|
||||
- 修复后台管理的运维管理面板的样式
|
||||
- 取消修改编辑器字体大小, 避免光标错位
|
||||
- 修复文件预览时文件树右边框过粗
|
||||
- 修复提交列表尾行圆角
|
||||
- 修复 Wiki 页面和二级导航栏组织页面的团队菜单的圆角问题
|
||||
- 修复 Wiki 页面和二级导航栏组织下团队菜单的圆角问题
|
||||
- 修复创建工单页面样式
|
||||
- 修复归档仓库 Issue 时间线过长插入归档信息框
|
||||
- 修复亮色主题下的 PR 合并操作评论的头像和按钮图标颜色
|
||||
|
||||
## 📃 English (From AI)
|
||||
|
||||
### ✨ Feature
|
||||
|
||||
- Added pink color theme
|
||||
- Modified theme names displayed in appearance settings
|
||||
|
||||
#### CSS Variables
|
||||
|
||||
- Added `--custom-branch-menu-width` variable for setting branch menu width
|
||||
- Added `--custom-user-menu-width` variable for setting user menu width
|
||||
|
||||
### 🌈 Style
|
||||
|
||||
- Optimized dashboard style on user homepage
|
||||
|
||||
##### More GitHub-like style
|
||||
|
||||
- Improved code file viewing experience (scrolling to bottom no longer causes file tree content overlap)
|
||||
- Synced styles when viewing code file content (removed some bottom elements, optimized scrolling experience)
|
||||
- Adjusted spacing, styles, and font sizes of page elements overall
|
||||
- Synced dashboard styles under top issues/pull requests/milestones
|
||||
- Synced styles of milestones/pinned Issues
|
||||
- Synced page styles of notifications/subscriptions/follows/packages/tooltips/user avatar menus
|
||||
- Synced branch menu width
|
||||
- Synced star color for starred repositories
|
||||
|
||||
### 🐞 Fix
|
||||
|
||||
- Fixed code highlight colors for red-green color blindness theme
|
||||
- Fixed button underline length for Chinese README in repositories
|
||||
- Fixed content position on login two-factor authentication page
|
||||
- Fixed style of operation and maintenance management panel in admin backend
|
||||
- Reverted editor font size changes to avoid cursor misalignment
|
||||
- Fixed rounded corners of last row in commit list
|
||||
- Fixed rounded corners issue in Wiki pages and team menus under secondary navigation bar organization
|
||||
- Fixed style of issue creation page
|
||||
- Fixed issue where archive information box is inserted when issue timeline is too long in archived repositories
|
||||
- Fixed avatar and button icon colors in PR merge operation comments under light theme
|
||||
|
||||
16
.github/workflows/release.yml
vendored
@@ -17,11 +17,19 @@ jobs:
|
||||
npm run build
|
||||
- name: Create release
|
||||
run: |
|
||||
export TZ=Asia/Shanghai
|
||||
tar -zcf dist/theme-github-base.tar.gz --remove-files \
|
||||
dist/theme-github-auto.css dist/theme-github-light.css dist/theme-github-dark.css dist/theme-github-soft-dark.css
|
||||
|
||||
tar -zcf dist/theme-github-colorblindness-colorblind.tar.gz --remove-files \
|
||||
dist/theme-github-colorblind-auto.css dist/theme-github-colorblind-light.css dist/theme-github-colorblind-dark.css
|
||||
|
||||
tar -zcf dist/theme-github-colorblindness-tritanopia.tar.gz --remove-files \
|
||||
dist/theme-github-tritanopia-auto.css dist/theme-github-tritanopia-light.css dist/theme-github-tritanopia-dark.css
|
||||
|
||||
tar -zcf dist/theme-github-extra-pink.tar.gz --remove-files \
|
||||
dist/theme-github-pink-auto.css dist/theme-github-pink-light.css dist/theme-github-pink-dark.css dist/theme-github-pink-soft-dark.css
|
||||
|
||||
TAG="v$(npm run -s version)"
|
||||
tar -zcf dist/theme-github-base.tar.gz --remove-files dist/theme-github-auto.css dist/theme-github-light.css dist/theme-github-dark.css dist/theme-github-soft-dark.css
|
||||
tar -zcf dist/theme-github-colorblind.tar.gz --remove-files dist/theme-github-colorblind-auto.css dist/theme-github-colorblind-light.css dist/theme-github-colorblind-dark.css
|
||||
tar -zcf dist/theme-github-colorblind-tritanopia.tar.gz --remove-files dist/theme-github-tritanopia-auto.css dist/theme-github-tritanopia-light.css dist/theme-github-tritanopia-dark.css
|
||||
gh release create "$TAG" dist/* --notes-file .github/release.md --draft -t $TAG
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
25
README.md
@@ -30,6 +30,11 @@ Gitea 理论上小版本号变更不会修改前端布局, 所以主题的小版
|
||||
>
|
||||
> 自动颜色主题需要亮色和暗色的主题文件
|
||||
|
||||
> [!TIP]
|
||||
>
|
||||
> 推荐搭配 Catppuccin 文件图标浏览器插件一起使用更佳
|
||||
> [github-file-explorer-icons](https://github.com/catppuccin/github-file-explorer-icons)
|
||||
|
||||
例: 主题文件名为 `theme-github-dark.css`,则添加 `github-dark` 到 `THEMES` 末尾
|
||||
|
||||
`gitea/conf/app.ini` 例:
|
||||
@@ -44,13 +49,15 @@ THEMES = gitea-auto, gitea-light, gitea-dark, github-auto, github-light, github-
|
||||
|
||||
## 截图
|
||||
|
||||

|
||||
|
||||
### 基本主题
|
||||
|
||||
```ini
|
||||
THEMES = github-auto, github-light, github-dark, github-soft-dark
|
||||
```
|
||||
|
||||
<details open>
|
||||
<details>
|
||||
<summary>Base</summary>
|
||||
<h4>theme-github-light.css</h4>
|
||||
<img src="screenshots/light.png"/>
|
||||
@@ -75,6 +82,22 @@ THEMES = github-tritanopia-auto, github-tritanopia-light, github-tritanopia-dark
|
||||
<img src="screenshots/colorblind-dark.png"/>
|
||||
</details>
|
||||
|
||||
### 粉色主题
|
||||
|
||||
```ini
|
||||
THEMES = github-pink-auto, github-pink-light, github-pink-dark, github-pink-soft-dark
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Pink</summary>
|
||||
<h4>theme-github-pink-light.css</h4>
|
||||
<img src="screenshots/pink/pink-light.png"/>
|
||||
<h4>theme-github-pink-dark.css</h4>
|
||||
<img src="screenshots/pink/pink-dark.png"/>
|
||||
<h4>theme-github-pink-soft-dark.css</h4>
|
||||
<img src="screenshots/pink/pink-soft-dark.png"/>
|
||||
</details>
|
||||
|
||||
## 自定义 CSS 变量
|
||||
|
||||
可以根据自己的偏好自定义主题的一部分样式
|
||||
|
||||
27
README_EN.md
@@ -31,7 +31,12 @@ accepted.
|
||||
|
||||
> [!IMPORTANT]
|
||||
>
|
||||
> Automatic color theme requires both light and dark theme files
|
||||
> Automatic color theme requires both light and dark theme files.
|
||||
|
||||
> [!TIP]
|
||||
>
|
||||
> Recommend using Catppuccin file icon browser plugin together for better performance.
|
||||
> [github-file-explorer-icons](https://github.com/catppuccin/github-file-explorer-icons)
|
||||
|
||||
Example: If the theme filename is `theme-github-dark.css`, add `github-dark` to the end of `THEMES`
|
||||
|
||||
@@ -47,13 +52,15 @@ For details, please refer to the Gitea documentation
|
||||
|
||||
## Screenshots
|
||||
|
||||

|
||||
|
||||
### Basic Themes
|
||||
|
||||
```ini
|
||||
THEMES = github-auto, github-light, github-dark, github-soft-dark
|
||||
```
|
||||
|
||||
<details open>
|
||||
<details>
|
||||
<summary>Base</summary>
|
||||
<h4>theme-github-light.css</h4>
|
||||
<img src="screenshots/en/light.png"/>
|
||||
@@ -78,6 +85,22 @@ THEMES = github-tritanopia-auto, github-tritanopia-light, github-tritanopia-dark
|
||||
<img src="screenshots/en/colorblind-dark.png"/>
|
||||
</details>
|
||||
|
||||
### Pink Themes
|
||||
|
||||
```ini
|
||||
THEMES = github-pink-auto, github-pink-light, github-pink-dark, github-pink-soft-dark
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Pink</summary>
|
||||
<h4>theme-github-pink-light.css</h4>
|
||||
<img src="screenshots/pink/en/pink-light-en.png"/>
|
||||
<h4>theme-github-pink-dark.css</h4>
|
||||
<img src="screenshots/pink/en/pink-dark-en.png"/>
|
||||
<h4>theme-github-pink-soft-dark.css</h4>
|
||||
<img src="screenshots/pink/en/pink-soft-dark-en.png"/>
|
||||
</details>
|
||||
|
||||
## Custom CSS Variables
|
||||
|
||||
You can customize parts of the theme style according to your preferences
|
||||
|
||||
BIN
screenshots/dashboard.png
vendored
Normal file
|
After Width: | Height: | Size: 269 KiB |
BIN
screenshots/en/dashboard-en.png
Normal file
|
After Width: | Height: | Size: 295 KiB |
BIN
screenshots/pink/en/pink-dark-en.png
Normal file
|
After Width: | Height: | Size: 191 KiB |
BIN
screenshots/pink/en/pink-light-en.png
Normal file
|
After Width: | Height: | Size: 193 KiB |
BIN
screenshots/pink/en/pink-soft-dark-en.png
Normal file
|
After Width: | Height: | Size: 190 KiB |
BIN
screenshots/pink/pink-dark.png
Normal file
|
After Width: | Height: | Size: 210 KiB |
BIN
screenshots/pink/pink-light.png
Normal file
|
After Width: | Height: | Size: 191 KiB |
BIN
screenshots/pink/pink-soft-dark.png
Normal file
|
After Width: | Height: | Size: 210 KiB |
85
src/core/display.ts
Normal file
@@ -0,0 +1,85 @@
|
||||
import { saturate } from "polished";
|
||||
import { scaleColorLight } from "src/functions";
|
||||
import { type GithubColor } from "./github";
|
||||
|
||||
export type DisplayColor = {
|
||||
num0: string;
|
||||
num1: string;
|
||||
num2: string;
|
||||
num3: string;
|
||||
num4: string;
|
||||
num5: string;
|
||||
num6: string;
|
||||
num7: string;
|
||||
num8: string;
|
||||
num9: string;
|
||||
};
|
||||
|
||||
export function display2GithubColor(
|
||||
displayColor: DisplayColor,
|
||||
baseGithubColor: GithubColor,
|
||||
soft?: boolean
|
||||
): GithubColor {
|
||||
return {
|
||||
...baseGithubColor,
|
||||
diffBlob: {
|
||||
...baseGithubColor.diffBlob,
|
||||
hunkNum: { bgColor: { rest: soft ? displayColor.num2 : displayColor.num1 } },
|
||||
},
|
||||
fgColor: {
|
||||
...baseGithubColor.fgColor,
|
||||
accent: soft ? displayColor.num7 : displayColor.num6,
|
||||
},
|
||||
bgColor: {
|
||||
...baseGithubColor.bgColor,
|
||||
accent: {
|
||||
emphasis: soft ? saturate(-0.1, scaleColorLight(displayColor.num5, -2)) : displayColor.num5,
|
||||
muted: soft ? displayColor.num1 : displayColor.num0,
|
||||
},
|
||||
},
|
||||
borderColor: {
|
||||
...baseGithubColor.borderColor,
|
||||
accent: {
|
||||
emphasis: soft ? displayColor.num6 : displayColor.num5,
|
||||
},
|
||||
},
|
||||
button: {
|
||||
...baseGithubColor.button,
|
||||
primary: {
|
||||
...baseGithubColor.button.primary,
|
||||
fgColor: {
|
||||
...baseGithubColor.button.primary.fgColor,
|
||||
accent: soft ? displayColor.num7 : displayColor.num6,
|
||||
},
|
||||
bgColor: {
|
||||
...baseGithubColor.button.primary.bgColor,
|
||||
rest: soft ? saturate(-0.1, scaleColorLight(displayColor.num5, -2)) : displayColor.num5,
|
||||
hover: soft ? saturate(-0.1, scaleColorLight(displayColor.num5, -7)) : scaleColorLight(displayColor.num5, 5),
|
||||
},
|
||||
},
|
||||
star: {
|
||||
iconColor: soft
|
||||
? scaleColorLight(displayColor.num6, -2)
|
||||
: saturate(0.1, scaleColorLight(displayColor.num6, -2)),
|
||||
},
|
||||
},
|
||||
underlineNav: {
|
||||
borderColor: {
|
||||
active: soft ? scaleColorLight(saturate(0.1, displayColor.num6), -5) : saturate(0.2, displayColor.num6),
|
||||
},
|
||||
},
|
||||
contribution: {
|
||||
...baseGithubColor.contribution,
|
||||
default: {
|
||||
...baseGithubColor.contribution.default,
|
||||
bgColor: {
|
||||
num0: baseGithubColor.contribution.default.bgColor.num0,
|
||||
num1: soft ? displayColor.num2 : displayColor.num1,
|
||||
num2: soft ? displayColor.num3 : displayColor.num2,
|
||||
num3: soft ? displayColor.num5 : displayColor.num4,
|
||||
num4: soft ? displayColor.num7 : displayColor.num6,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -8,6 +8,7 @@ import { type ThemeColor } from "./color";
|
||||
export type GithubColor = {
|
||||
isDarkTheme: boolean;
|
||||
display: {
|
||||
blue: { fgColor: string };
|
||||
brown: { fgColor: string };
|
||||
cyan: { fgColor: string };
|
||||
indigo: { fgColor: string };
|
||||
@@ -60,7 +61,7 @@ export type GithubColor = {
|
||||
translucent: string;
|
||||
};
|
||||
button: {
|
||||
primary: { fgColor: { rest: string }; bgColor: { hover: string } };
|
||||
primary: { fgColor: { accent: string; rest: string }; bgColor: { rest: string; hover: string } };
|
||||
danger: { fgColor: { rest: string; hover: string }; bgColor: { hover: string } };
|
||||
star: { iconColor: string };
|
||||
};
|
||||
@@ -259,11 +260,14 @@ export function github2ThemeColor(githubColor: GithubColor): ThemeColor {
|
||||
},
|
||||
primary: {
|
||||
fgColor: {
|
||||
accent: saturate(0.1, scaleColorLight(githubColor.fgColor.success, githubColor.isDarkTheme ? 10 : -10)),
|
||||
accent: saturate(
|
||||
0.1,
|
||||
scaleColorLight(githubColor.button.primary.fgColor.accent, githubColor.isDarkTheme ? 10 : -10)
|
||||
),
|
||||
rest: githubColor.button.primary.fgColor.rest,
|
||||
},
|
||||
bgColor: {
|
||||
rest: themeVars.github.bgColor.success.emphasis,
|
||||
rest: githubColor.button.primary.bgColor.rest,
|
||||
hover: githubColor.button.primary.bgColor.hover,
|
||||
},
|
||||
borderColor: {
|
||||
@@ -348,7 +352,7 @@ export function github2ThemeColor(githubColor: GithubColor): ThemeColor {
|
||||
green: githubColor.fgColor.success,
|
||||
cyan: githubColor.display.cyan.fgColor,
|
||||
teal: githubColor.display.teal.fgColor,
|
||||
blue: githubColor.fgColor.accent,
|
||||
blue: githubColor.display.blue.fgColor,
|
||||
violet: githubColor.display.indigo.fgColor,
|
||||
purple: githubColor.fgColor.done,
|
||||
pink: githubColor.fgColor.sponsors,
|
||||
|
||||
@@ -25,7 +25,6 @@ export const github = {
|
||||
accent: {
|
||||
/** 强调色
|
||||
* @diff 折叠/展开按钮的悬停颜色
|
||||
* @actions `actionViewLeft` 左侧子作业激活伪元素颜色
|
||||
* @release `releaseTagMenu` 顶部栏左侧按钮激活背景色
|
||||
* @navbar `navbarRight` 头像管理员标识背景颜色
|
||||
* @dropdown `dropdown` emoji 的悬停背景色
|
||||
@@ -61,6 +60,7 @@ export const github = {
|
||||
* @input `input` 输入框被选中时的边框颜色
|
||||
* @clone `clone` 克隆地址框被选中时的边框颜色
|
||||
* @issue `comment` 评论框被选中时的边框颜色
|
||||
* @actions `actionViewLeft` 左侧子作业激活伪元素颜色
|
||||
* @menu `verticalMenu` 垂直菜单项激活时左侧的伪元素颜色
|
||||
* @dropdown `selectionDropdown` 选择输入框的内部边框颜色
|
||||
* @notification `notification` 通知列表悬停时的左边框颜色
|
||||
|
||||
@@ -180,7 +180,7 @@ export const actionViewLeft = css`
|
||||
|
||||
&:after {
|
||||
overflow: visible;
|
||||
background: ${themeVars.github.bgColor.accent.emphasis};
|
||||
background: ${themeVars.github.borderColor.accent.emphasis};
|
||||
border-radius: ${otherThemeVars.border.radius};
|
||||
content: "";
|
||||
height: 24px;
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { defineTheme, type Chroma, type ThemeColor } from "src";
|
||||
/**
|
||||
* @author lutinglt
|
||||
*/
|
||||
|
||||
import { defineTheme, themeVars, type Chroma } from "src";
|
||||
import { github2ThemeColor, type GithubColor } from "src/core/github";
|
||||
import { prettylights2Chroma, type prettylightsColor } from "src/core/prettylights";
|
||||
import { darkGithubColors } from "themes/dark";
|
||||
@@ -28,7 +32,10 @@ export const colorblindDarkGithubColors: GithubColor = {
|
||||
success: { emphasis: "#1f6feb" },
|
||||
},
|
||||
button: {
|
||||
primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#2a7aef" } },
|
||||
primary: {
|
||||
fgColor: { accent: "#58a6ff", rest: "#ffffff" },
|
||||
bgColor: { rest: themeVars.github.bgColor.success.emphasis, hover: "#2a7aef" },
|
||||
},
|
||||
danger: { fgColor: { rest: "#f0883e", hover: "#ffffff" }, bgColor: { hover: "#9b4215" } },
|
||||
star: darkGithubColors.button.star,
|
||||
},
|
||||
@@ -69,7 +76,7 @@ export const colorblindDarkPrettylights: prettylightsColor = {
|
||||
},
|
||||
};
|
||||
|
||||
export const colorblindDarkColors: ThemeColor = github2ThemeColor(colorblindDarkGithubColors);
|
||||
export const colorblindDarkColors = github2ThemeColor(colorblindDarkGithubColors);
|
||||
export const colorblindDarkChroma: Chroma = prettylights2Chroma(colorblindDarkPrettylights);
|
||||
|
||||
export default defineTheme(colorblindDarkColors, colorblindDarkChroma);
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { defineTheme, type Chroma, type ThemeColor } from "src";
|
||||
/**
|
||||
* @author lutinglt
|
||||
*/
|
||||
|
||||
import { defineTheme, themeVars, type Chroma } from "src";
|
||||
import { github2ThemeColor, type GithubColor } from "src/core/github";
|
||||
import { prettylights2Chroma, type prettylightsColor } from "src/core/prettylights";
|
||||
import { lightGithubColors } from "themes/light";
|
||||
@@ -28,7 +32,10 @@ export const colorblindLightGithubColors: GithubColor = {
|
||||
success: { emphasis: "#0969da" },
|
||||
},
|
||||
button: {
|
||||
primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#0864d1" } },
|
||||
primary: {
|
||||
fgColor: { accent: "#0969da", rest: "#ffffff" },
|
||||
bgColor: { rest: themeVars.github.bgColor.success.emphasis, hover: "#0864d1" },
|
||||
},
|
||||
danger: { fgColor: { rest: "#bc4c00", hover: "#ffffff" }, bgColor: { hover: "#bc4c00" } },
|
||||
star: lightGithubColors.button.star,
|
||||
},
|
||||
@@ -69,7 +76,7 @@ export const colorblindLightPrettylights: prettylightsColor = {
|
||||
},
|
||||
};
|
||||
|
||||
export const colorblindLightColors: ThemeColor = github2ThemeColor(colorblindLightGithubColors);
|
||||
export const colorblindLightColors = github2ThemeColor(colorblindLightGithubColors);
|
||||
export const colorblindLightChroma: Chroma = prettylights2Chroma(colorblindLightPrettylights);
|
||||
|
||||
export default defineTheme(colorblindLightColors, colorblindLightChroma);
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
import { defineTheme, type ThemeColor } from "src";
|
||||
/**
|
||||
* @author lutinglt
|
||||
*/
|
||||
|
||||
import { defineTheme, themeVars } from "src";
|
||||
import { github2ThemeColor, type GithubColor } from "src/core/github";
|
||||
|
||||
export const darkGithubColors: GithubColor = {
|
||||
isDarkTheme: true,
|
||||
display: {
|
||||
blue: { fgColor: "#4493f8" },
|
||||
brown: { fgColor: "#b69a6d" },
|
||||
cyan: { fgColor: "#07ace4" },
|
||||
indigo: { fgColor: "#9899ec" },
|
||||
@@ -56,7 +61,10 @@ export const darkGithubColors: GithubColor = {
|
||||
translucent: "#ffffff26",
|
||||
},
|
||||
button: {
|
||||
primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#29903b" } },
|
||||
primary: {
|
||||
fgColor: { accent: "#3fb950", rest: "#ffffff" },
|
||||
bgColor: { rest: themeVars.github.bgColor.success.emphasis, hover: "#29903b" },
|
||||
},
|
||||
danger: { fgColor: { rest: "#fa5e55", hover: "#ffffff" }, bgColor: { hover: "#b62324" } },
|
||||
star: { iconColor: "#e3b341" },
|
||||
},
|
||||
@@ -75,6 +83,6 @@ export const darkGithubColors: GithubColor = {
|
||||
},
|
||||
};
|
||||
|
||||
export const darkColors: ThemeColor = github2ThemeColor(darkGithubColors);
|
||||
export const darkColors = github2ThemeColor(darkGithubColors);
|
||||
|
||||
export default defineTheme(darkColors);
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
import { defineTheme, type ThemeColor } from "src";
|
||||
/**
|
||||
* @author lutinglt
|
||||
*/
|
||||
|
||||
import { defineTheme, themeVars } from "src";
|
||||
import { github2ThemeColor, type GithubColor } from "src/core/github";
|
||||
|
||||
export const lightGithubColors: GithubColor = {
|
||||
isDarkTheme: false,
|
||||
display: {
|
||||
blue: { fgColor: "#0969da" },
|
||||
brown: { fgColor: "#755f43" },
|
||||
cyan: { fgColor: "#006a80" },
|
||||
indigo: { fgColor: "#494edf" },
|
||||
@@ -56,7 +61,10 @@ export const lightGithubColors: GithubColor = {
|
||||
translucent: "#1f232826",
|
||||
},
|
||||
button: {
|
||||
primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#1c8139" } },
|
||||
primary: {
|
||||
fgColor: { accent: "#1a7f37", rest: "#ffffff" },
|
||||
bgColor: { rest: themeVars.github.bgColor.success.emphasis, hover: "#1c8139" },
|
||||
},
|
||||
danger: { fgColor: { rest: "#d1242f", hover: "#ffffff" }, bgColor: { hover: "#cf222e" } },
|
||||
star: { iconColor: "#eac54f" },
|
||||
},
|
||||
@@ -75,6 +83,6 @@ export const lightGithubColors: GithubColor = {
|
||||
},
|
||||
};
|
||||
|
||||
export const lightColors: ThemeColor = github2ThemeColor(lightGithubColors);
|
||||
export const lightColors = github2ThemeColor(lightGithubColors);
|
||||
|
||||
export default defineTheme(lightColors);
|
||||
|
||||
26
themes/pink-dark.css.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* @author lutinglt
|
||||
*/
|
||||
|
||||
import { defineTheme } from "src";
|
||||
import { display2GithubColor, type DisplayColor } from "src/core/display";
|
||||
import { github2ThemeColor } from "src/core/github";
|
||||
import { darkGithubColors } from "themes/dark";
|
||||
|
||||
export const pinkDarkDisplayColors: DisplayColor = {
|
||||
num0: "#2d1524",
|
||||
num1: "#451c35",
|
||||
num2: "#65244a",
|
||||
num3: "#842a5d",
|
||||
num4: "#ac2f74",
|
||||
num5: "#d34591",
|
||||
num6: "#e57bb2",
|
||||
num7: "#ec8dbd",
|
||||
num8: "#f4a9cd",
|
||||
num9: "#f9bed9",
|
||||
};
|
||||
|
||||
export const pinkDarkGithubColors = display2GithubColor(pinkDarkDisplayColors, darkGithubColors);
|
||||
export const pinkDarkColors = github2ThemeColor(pinkDarkGithubColors);
|
||||
|
||||
export default defineTheme(pinkDarkColors);
|
||||
26
themes/pink-light.css.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* @author lutinglt
|
||||
*/
|
||||
|
||||
import { defineTheme } from "src";
|
||||
import { display2GithubColor, type DisplayColor } from "src/core/display";
|
||||
import { github2ThemeColor } from "src/core/github";
|
||||
import { lightGithubColors } from "themes/light";
|
||||
|
||||
export const pinkLightDisplayColors: DisplayColor = {
|
||||
num0: "#ffe5f1",
|
||||
num1: "#fdc9e2",
|
||||
num2: "#f8a5cf",
|
||||
num3: "#f184bc",
|
||||
num4: "#e55da5",
|
||||
num5: "#ce2c85",
|
||||
num6: "#b12f79",
|
||||
num7: "#8e2e66",
|
||||
num8: "#6e2b53",
|
||||
num9: "#4d233d",
|
||||
};
|
||||
|
||||
export const pinkLightGithubColors = display2GithubColor(pinkLightDisplayColors, lightGithubColors);
|
||||
export const pinkLightColors = github2ThemeColor(pinkLightGithubColors);
|
||||
|
||||
export default defineTheme(pinkLightColors);
|
||||
14
themes/pink-soft-dark.css.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @author lutinglt
|
||||
*/
|
||||
|
||||
import { defineTheme } from "src";
|
||||
import { display2GithubColor } from "src/core/display";
|
||||
import { github2ThemeColor } from "src/core/github";
|
||||
import { softDarkGithubColors } from "themes/soft-dark";
|
||||
import { pinkDarkDisplayColors } from "./pink-dark.css";
|
||||
|
||||
export const pinkSoftDarkGithubColors = display2GithubColor(pinkDarkDisplayColors, softDarkGithubColors, true);
|
||||
export const pinkSoftDarkColors = github2ThemeColor(pinkSoftDarkGithubColors);
|
||||
|
||||
export default defineTheme(pinkSoftDarkColors);
|
||||
@@ -1,4 +1,8 @@
|
||||
import { defineTheme, type Chroma, type ThemeColor } from "src";
|
||||
/**
|
||||
* @author lutinglt
|
||||
*/
|
||||
|
||||
import { defineTheme, themeVars, type Chroma } from "src";
|
||||
import { github2ThemeColor, type GithubColor } from "src/core/github";
|
||||
import { prettylights2Chroma, type prettylightsColor } from "src/core/prettylights";
|
||||
import { darkGithubColors } from "themes/dark";
|
||||
@@ -51,7 +55,10 @@ export const softDarkGithubColors: GithubColor = {
|
||||
translucent: "#cdd9e526",
|
||||
},
|
||||
button: {
|
||||
primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#3b8640" } },
|
||||
primary: {
|
||||
fgColor: { accent: "#57ab5a", rest: "#ffffff" },
|
||||
bgColor: { rest: themeVars.github.bgColor.success.emphasis, hover: "#3b8640" },
|
||||
},
|
||||
danger: { fgColor: { rest: "#ea5c53", hover: "#ffffff" }, bgColor: { hover: "#ad2e2c" } },
|
||||
star: { iconColor: "#daaa3f" },
|
||||
},
|
||||
@@ -100,7 +107,7 @@ export const softDarkPrettylights: prettylightsColor = {
|
||||
},
|
||||
};
|
||||
|
||||
export const softDarkColors: ThemeColor = github2ThemeColor(softDarkGithubColors);
|
||||
export const softDarkColors = github2ThemeColor(softDarkGithubColors);
|
||||
export const softDarkChroma: Chroma = prettylights2Chroma(softDarkPrettylights);
|
||||
|
||||
export default defineTheme(softDarkColors, softDarkChroma);
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { defineTheme, type Chroma, type ThemeColor } from "src";
|
||||
/**
|
||||
* @author lutinglt
|
||||
*/
|
||||
|
||||
import { defineTheme, type Chroma } from "src";
|
||||
import { darkPrettylights } from "src/core/chroma";
|
||||
import { github2ThemeColor, type GithubColor } from "src/core/github";
|
||||
import { prettylights2Chroma, type prettylightsColor } from "src/core/prettylights";
|
||||
@@ -39,7 +43,7 @@ export const tritanopiaDarkPrettylights: prettylightsColor = {
|
||||
},
|
||||
};
|
||||
|
||||
export const tritanopiaDarkColors: ThemeColor = github2ThemeColor(tritanopiaDarkGithubColors);
|
||||
export const tritanopiaDarkColors = github2ThemeColor(tritanopiaDarkGithubColors);
|
||||
export const tritanopiaDarkChroma: Chroma = prettylights2Chroma(tritanopiaDarkPrettylights);
|
||||
|
||||
export default defineTheme(tritanopiaDarkColors, tritanopiaDarkChroma);
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { defineTheme, type Chroma, type ThemeColor } from "src";
|
||||
/**
|
||||
* @author lutinglt
|
||||
*/
|
||||
|
||||
import { defineTheme, type Chroma } from "src";
|
||||
import { lightPrettylights } from "src/core/chroma";
|
||||
import { github2ThemeColor, type GithubColor } from "src/core/github";
|
||||
import { prettylights2Chroma, type prettylightsColor } from "src/core/prettylights";
|
||||
@@ -39,7 +43,7 @@ export const tritanopiaLightPrettylights: prettylightsColor = {
|
||||
},
|
||||
};
|
||||
|
||||
export const tritanopiaLightColors: ThemeColor = github2ThemeColor(tritanopiaLightGithubColors);
|
||||
export const tritanopiaLightColors = github2ThemeColor(tritanopiaLightGithubColors);
|
||||
export const tritanopiaLightChroma: Chroma = prettylights2Chroma(tritanopiaLightPrettylights);
|
||||
|
||||
export default defineTheme(tritanopiaLightColors, tritanopiaLightChroma);
|
||||
|
||||