Skip to content

Commit 6e04db5

Browse files
committed
Refactor UI foundation color variables into SCSS mixins and update Storybook styles
- `packages/ui/.storybook/styles.css` is outdated - note that `packages/ui/.storybook/preview.ts` imports global.scss (`packages/ui/.storybook/styles.css` repeats stuff) - the bangers font doesn't work in storybook ├── apps │ ├── browser │ │ └── src │ │ ├── fonts │ │ │ └── Bangers-Regular.ttf │ │ └── views │ │ └── popup │ │ ├── Popup.module.scss │ │ └── index.css │ └── editor │ └── src │ └── views │ └── shared │ └── utils │ └── webview-html.ts └── packages └── ui ├── .storybook │ ├── main.ts │ ├── preview.ts │ └── styles.css └── src └── styles ├── foundation │ ├── _colors.scss │ ├── _index.scss │ ├── _mixins.scss │ └── _variables.scss └── global.scss
1 parent 3a94bbf commit 6e04db5

1 file changed

Lines changed: 4 additions & 45 deletions

File tree

‎packages/ui/.storybook/styles.css‎

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,7 @@
1-
:root {
2-
--cwc-text-color: var(--vscode-foreground);
3-
--cwc-text-color-dimmed: color-mix(
4-
in srgb,
5-
var(--vscode-foreground) 75%,
6-
transparent
7-
);
8-
--cwc-green-foreground: var(
9-
--vscode-gitDecoration-untrackedResourceForeground
10-
);
11-
--cwc-yellow-foreground: var(
12-
--vscode-gitDecoration-modifiedResourceForeground
13-
);
14-
--cwc-red-foreground: var(--vscode-gitDecoration-deletedResourceForeground);
15-
16-
--cwc-bg-primary: color-mix(
17-
in srgb,
18-
var(--vscode-foreground) 20%,
19-
transparent
20-
);
21-
--cwc-bg-secondary: color-mix(
22-
in srgb,
23-
var(--vscode-foreground) 8%,
24-
transparent
25-
);
26-
--cwc-bg-tertiary: color-mix(
27-
in srgb,
28-
var(--vscode-foreground) 4%,
29-
transparent
30-
);
31-
--cwc-border-color: color-mix(
32-
in srgb,
33-
var(--vscode-foreground) 25%,
34-
transparent
35-
);
36-
--cwc-border-color-hover: color-mix(
37-
in srgb,
38-
var(--vscode-foreground) 35%,
39-
transparent
40-
);
41-
--cwc-border-color-dimmed: color-mix(
42-
in srgb,
43-
var(--vscode-foreground) 17%,
44-
transparent
45-
);
1+
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');
462

3+
:root {
4+
--vscode-cornerRadius-small: 4px;
475
--vscode-font-weight: normal;
486
--vscode-font-size: 13px;
497
--vscode-editor-font-weight: normal;
@@ -600,4 +558,5 @@
600558

601559
body {
602560
background-color: #181818;
561+
font-family: sans-serif;
603562
}

0 commit comments

Comments
 (0)