Skip to content

Commit a9fae6e

Browse files
committed
Add activeBorderTop color
1 parent 526485a commit a9fae6e

File tree

8 files changed

+15
-4
lines changed

8 files changed

+15
-4
lines changed

.changeset/spotty-plums-add.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@code-hike/lighter": patch
3+
---
4+
5+
Add activeBorderTop color

lib/dist/browser.esm.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/dist/index.cjs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/dist/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ declare function getThemeColors(themeOrThemeName: Theme): Promise<{
140140
inactiveForeground: string;
141141
border: string;
142142
activeBorder: string;
143+
activeBorderTop: string;
143144
};
144145
editorGroup: {
145146
border: string;
@@ -193,6 +194,7 @@ declare function getThemeColorsSync(themeOrThemeName: Theme): {
193194
inactiveForeground: string;
194195
border: string;
195196
activeBorder: string;
197+
activeBorderTop: string;
196198
};
197199
editorGroup: {
198200
border: string;

lib/dist/index.esm.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/dist/worker.esm.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/src/theme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ export function getAllThemeColors(theme: FinalTheme) {
246246
inactiveForeground: c("tab.inactiveForeground"),
247247
border: c("tab.border"),
248248
activeBorder: c("tab.activeBorder"),
249+
activeBorderTop: c("tab.activeBorderTop"),
249250
},
250251
editorGroup: {
251252
border: c("editorGroup.border"),

lib/test/__snapshots__/colors.test.ts.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ exports[`get theme colors from empty theme 1`] = `
4848
"tab": {
4949
"activeBackground": "#1E1E1E",
5050
"activeBorder": "#1E1E1E",
51+
"activeBorderTop": undefined,
5152
"activeForeground": "#ffffff",
5253
"border": "#252526",
5354
"inactiveBackground": "#2D2D2D",
@@ -104,6 +105,7 @@ exports[`get theme colors from theme name 1`] = `
104105
"tab": {
105106
"activeBackground": "#0d1117",
106107
"activeBorder": "#0d1117",
108+
"activeBorderTop": "#f78166",
107109
"activeForeground": "#c9d1d9",
108110
"border": "#30363d",
109111
"inactiveBackground": "#010409",
@@ -160,6 +162,7 @@ exports[`get theme colors from theme name from-css 1`] = `
160162
"tab": {
161163
"activeBackground": "var(--ch-16)",
162164
"activeBorder": "var(--ch-16)",
165+
"activeBorderTop": undefined,
163166
"activeForeground": "var(--ch-4)",
164167
"border": "var(--ch-23)",
165168
"inactiveBackground": "var(--ch-22)",

0 commit comments

Comments
 (0)