Skip to content

Commit abe7839

Browse files
author
Chris Hasson
committed
Fix Storybook theme colors and CSS variable definitions
- Add design-system.css with theme-agnostic variables - Add common.css for shared design variables - Update dark-modern.css and light-modern.css with proper VSCode theme colors - Update generate-vscode-themes.js script for better theme generation
1 parent 2c46e91 commit abe7839

File tree

5 files changed

+677
-293
lines changed

5 files changed

+677
-293
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* Design System Variables - shared between themes */
2+
3+
/* Layout and Sizing Variables (theme-agnostic) */
4+
--border-width: 1;
5+
--corner-radius: 0;
6+
--corner-radius-round: 2;
7+
--design-unit: 4;
8+
--disabled-opacity: 0.4;
9+
--font-family:
10+
-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji,
11+
Segoe UI Emoji, Segoe UI Symbol;
12+
--font-weight: 400;
13+
--input-height: 26;
14+
--input-min-width: 100px;
15+
--type-ramp-base-font-size: 13px;
16+
--type-ramp-base-line-height: normal;
17+
--type-ramp-minus1-font-size: 11px;
18+
--type-ramp-minus1-line-height: 16px;
19+
--type-ramp-minus2-font-size: 9px;
20+
--type-ramp-minus2-line-height: 16px;
21+
--type-ramp-plus1-font-size: 16px;
22+
--type-ramp-plus1-line-height: 24px;
23+
--scrollbarWidth: 10px;
24+
--scrollbarHeight: 10px;
25+
26+
/* Component Layout Variables (theme-agnostic) */
27+
--button-icon-corner-radius: 5px;
28+
--button-icon-outline-offset: 0;
29+
--button-icon-padding: 3px;
30+
--button-padding-horizontal: 11px;
31+
--button-padding-vertical: 4px;
32+
--checkbox-corner-radius: 3;
33+
--dropdown-list-max-height: 200px;
34+
--tag-corner-radius: 2px;
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* Common design variables - shared between themes */
2+
3+
/* Design System Variables (theme-agnostic) */
4+
--border-width: 1;
5+
--corner-radius: 0;
6+
--corner-radius-round: 2;
7+
--design-unit: 4;
8+
--disabled-opacity: 0.4;
9+
--font-family:
10+
-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji,
11+
Segoe UI Emoji, Segoe UI Symbol;
12+
--font-weight: 400;
13+
--input-height: 26;
14+
--input-min-width: 100px;
15+
--type-ramp-base-font-size: 13px;
16+
--type-ramp-base-line-height: normal;
17+
--type-ramp-minus1-font-size: 11px;
18+
--type-ramp-minus1-line-height: 16px;
19+
--type-ramp-minus2-font-size: 9px;
20+
--type-ramp-minus2-line-height: 16px;
21+
--type-ramp-plus1-font-size: 16px;
22+
--type-ramp-plus1-line-height: 24px;
23+
--scrollbarWidth: 10px;
24+
--scrollbarHeight: 10px;
25+
26+
/* Component Layout Variables (theme-agnostic) */
27+
--button-icon-corner-radius: 5px;
28+
--button-icon-outline-offset: 0;
29+
--button-icon-padding: 3px;
30+
--button-padding-horizontal: 11px;
31+
--button-padding-vertical: 4px;
32+
--checkbox-corner-radius: 3;
33+
--dropdown-list-max-height: 200px;
34+
--tag-corner-radius: 2px;

0 commit comments

Comments
 (0)