Skip to content

Commit

Permalink
Add activeBorderTop color
Browse files Browse the repository at this point in the history
  • Loading branch information
pomber committed Jul 17, 2023
1 parent 526485a commit a9fae6e
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-plums-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@code-hike/lighter": patch
---

Add activeBorderTop color
2 changes: 1 addition & 1 deletion lib/dist/browser.esm.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/dist/index.cjs.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ declare function getThemeColors(themeOrThemeName: Theme): Promise<{
inactiveForeground: string;
border: string;
activeBorder: string;
activeBorderTop: string;
};
editorGroup: {
border: string;
Expand Down Expand Up @@ -193,6 +194,7 @@ declare function getThemeColorsSync(themeOrThemeName: Theme): {
inactiveForeground: string;
border: string;
activeBorder: string;
activeBorderTop: string;
};
editorGroup: {
border: string;
Expand Down
2 changes: 1 addition & 1 deletion lib/dist/index.esm.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/dist/worker.esm.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ export function getAllThemeColors(theme: FinalTheme) {
inactiveForeground: c("tab.inactiveForeground"),
border: c("tab.border"),
activeBorder: c("tab.activeBorder"),
activeBorderTop: c("tab.activeBorderTop"),
},
editorGroup: {
border: c("editorGroup.border"),
Expand Down
3 changes: 3 additions & 0 deletions lib/test/__snapshots__/colors.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ exports[`get theme colors from empty theme 1`] = `
"tab": {
"activeBackground": "#1E1E1E",
"activeBorder": "#1E1E1E",
"activeBorderTop": undefined,
"activeForeground": "#ffffff",
"border": "#252526",
"inactiveBackground": "#2D2D2D",
Expand Down Expand Up @@ -104,6 +105,7 @@ exports[`get theme colors from theme name 1`] = `
"tab": {
"activeBackground": "#0d1117",
"activeBorder": "#0d1117",
"activeBorderTop": "#f78166",
"activeForeground": "#c9d1d9",
"border": "#30363d",
"inactiveBackground": "#010409",
Expand Down Expand Up @@ -160,6 +162,7 @@ exports[`get theme colors from theme name from-css 1`] = `
"tab": {
"activeBackground": "var(--ch-16)",
"activeBorder": "var(--ch-16)",
"activeBorderTop": undefined,
"activeForeground": "var(--ch-4)",
"border": "var(--ch-23)",
"inactiveBackground": "var(--ch-22)",
Expand Down

1 comment on commit a9fae6e

@vercel
Copy link

@vercel vercel bot commented on a9fae6e Jul 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lighter – ./

lighter.codehike.org
lighter-codehike.vercel.app
lighter-git-main-codehike.vercel.app

Please sign in to comment.