Skip to content

Commit 38f1092

Browse files
authored
Merge pull request #1009 from RooVetGit/cte/additional-shadcn-components
2 parents ffec4c6 + d056bb8 commit 38f1092

26 files changed

+1464
-311
lines changed

webview-ui/.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { StorybookConfig } from "@storybook/react-vite"
22

33
const config: StorybookConfig = {
44
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5-
addons: ["@storybook/addon-essentials", "@storybook/addon-interactions"],
5+
addons: ["@storybook/addon-essentials", "storybook-dark-mode"],
66
framework: {
77
name: "@storybook/react-vite",
88
options: {},

webview-ui/.storybook/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Preview } from "@storybook/react"
22

3-
import "../src/index.css"
43
import "./vscode.css"
4+
import "../src/index.css"
55

66
const preview: Preview = {
77
parameters: {

webview-ui/.storybook/vscode.css

Lines changed: 47 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,51 @@
66
*/
77

88
:root {
9-
--vscode-editor-background: #1f1f1f; /* "editor.background" */
10-
--vscode-editor-foreground: #cccccc; /* "editor.foreground" */
11-
--vscode-menu-background: #1f1f1f; /* "menu.background" */
12-
--vscode-menu-foreground: #cccccc; /* "menu.foreground" */
13-
--vscode-button-background: #0078d4; /* "button.background" */
14-
--vscode-button-foreground: #ffffff; /* "button.foreground" */
15-
--vscode-button-secondaryBackground: #313131; /* "button.secondaryBackground" */
16-
--vscode-button-secondaryForeground: #cccccc; /* "button.secondaryForeground" */
17-
--vscode-disabledForeground: #313131; /* "disabledForeground" */
18-
--vscode-descriptionForeground: #9d9d9d; /* "descriptionForeground" */
19-
--vscode-focusBorder: #0078d4; /* "focusBorder" */
20-
--vscode-errorForeground: #f85149; /* "errorForeground" */
21-
--vscode-widget-border: #313131; /* "widget.border" */
22-
--vscode-input-background: #313131; /* "input.background" */
23-
--vscode-input-foreground: #cccccc; /* "input.foreground" */
24-
--vscode-input-border: #3c3c3c; /* "input.border" */
25-
26-
/* I can't find these in the output of `Developer: Generate Color Theme From Current Settings` */
27-
--vscode-charts-red: red;
28-
--vscode-charts-blue: blue;
29-
--vscode-charts-yellow: yellow;
30-
--vscode-charts-orange: orange;
31-
--vscode-charts-green: green;
9+
/**
10+
* The styles below have been defined for Tailwind.
11+
*/
12+
13+
--vscode-foreground: #d1d5da; /* "foreground" */
14+
15+
--vscode-editor-foreground: #e1e4e8; /* "editor.foreground" */
16+
--vscode-editor-background: #24292e; /* "editor.background" */
17+
18+
--vscode-button-foreground: #dcffe4; /* "button.foreground" */
19+
--vscode-button-background: #176f2c; /* "button.background" */
20+
--vscode-button-secondaryForeground: #ffffff; /* "button.secondaryForeground" */
21+
--vscode-button-secondaryBackground: #444d56; /* "button.secondaryBackground" */
22+
23+
--vscode-dropdown-foreground: #e1e4e8; /* "dropdown.foreground" */
24+
--vscode-dropdown-background: #2f363d; /* "dropdown.background" */
25+
--vscode-dropdown-border: #1b1f23; /* "dropdown.border" */
26+
27+
--vscode-input-foreground: #e1e4e8; /* "input.foreground" */
28+
--vscode-input-background: #2f363d; /* "input.background" */
29+
--vscode-input-border: #1b1f23; /* "input.border" */
30+
31+
--vscode-focusBorder: #005cc5; /* "focusBorder" */
32+
33+
--vscode-badge-foreground: #c8e1ff; /* "badge.foreground" */
34+
--vscode-badge-background: #044289; /* "badge.background" */
35+
36+
--vscode-notifications-foreground: #e1e4e8; /* "notifications.foreground" */
37+
--vscode-notifications-background: #2f363d; /* "notifications.background" */
38+
--vscode-notifications-border: #1b1f23; /* "notifications.border" */
39+
40+
--vscode-descriptionForeground: #959da5; /* "descriptionForeground" */
41+
--vscode-errorForeground: #f97583; /* "errorForeground" */
42+
43+
--vscode-list-hoverForeground: #e1e4e8; /* "list.hoverForeground" */
44+
--vscode-list-hoverBackground: #282e34; /* "list.hoverBackground" */
45+
--vscode-list-focusBackground: #044289; /* "list.focusBackground" */
46+
47+
/**
48+
* The styles below are used in the @shadcn/ui + Tailwind theme but are
49+
* not exposed as `--color-vscode-*` variables.
50+
*/
51+
52+
--vscode-menu-background: #2f363d; /* "menu.background" [MISSING] */
53+
--vscode-menu-foreground: #e1e4e8; /* "menu.foreground" [MISSING] */
54+
55+
--vscode-disabledForeground: #cccccc; /* "disabledForeground" [MISSING] */
3256
}

0 commit comments

Comments
 (0)