Skip to content

Commit 96e0759

Browse files
mathuoclaude
andcommitted
Revert "feat: migrate spaced themes to CSS variable system and add interactive theme builder"
This reverts commit c4bcff4. Feature will be landed via a proper PR. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c4bcff4 commit 96e0759

File tree

11 files changed

+114
-1773
lines changed

11 files changed

+114
-1773
lines changed

packages/dockview-core/src/dockview/theme.ts

Lines changed: 6 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ export interface DockviewTheme {
77
* The class name to apply to the theme containing the CSS variables settings.
88
*/
99
className: string;
10-
/**
11-
* Whether the theme is light or dark. Useful for adapting panel content colors.
12-
*/
13-
colorScheme?: 'light' | 'dark';
1410
/**
1511
* The gap between the groups
1612
*/
@@ -29,37 +25,37 @@ export interface DockviewTheme {
2925
export const themeDark: DockviewTheme = {
3026
name: 'dark',
3127
className: 'dockview-theme-dark',
32-
colorScheme: 'dark',
3328
};
3429

3530
export const themeLight: DockviewTheme = {
3631
name: 'light',
3732
className: 'dockview-theme-light',
38-
colorScheme: 'light',
3933
};
4034

4135
export const themeVisualStudio: DockviewTheme = {
4236
name: 'visualStudio',
4337
className: 'dockview-theme-vs',
44-
colorScheme: 'dark',
4538
};
4639

4740
export const themeAbyss: DockviewTheme = {
4841
name: 'abyss',
4942
className: 'dockview-theme-abyss',
50-
colorScheme: 'dark',
5143
};
5244

5345
export const themeDracula: DockviewTheme = {
5446
name: 'dracula',
5547
className: 'dockview-theme-dracula',
56-
colorScheme: 'dark',
48+
};
49+
50+
export const themeReplit: DockviewTheme = {
51+
name: 'replit',
52+
className: 'dockview-theme-replit',
53+
gap: 10,
5754
};
5855

5956
export const themeAbyssSpaced: DockviewTheme = {
6057
name: 'abyssSpaced',
6158
className: 'dockview-theme-abyss-spaced',
62-
colorScheme: 'dark',
6359
gap: 10,
6460
dndOverlayMounting: 'absolute',
6561
dndPanelOverlay: 'group',
@@ -68,88 +64,6 @@ export const themeAbyssSpaced: DockviewTheme = {
6864
export const themeLightSpaced: DockviewTheme = {
6965
name: 'lightSpaced',
7066
className: 'dockview-theme-light-spaced',
71-
colorScheme: 'light',
72-
gap: 10,
73-
dndOverlayMounting: 'absolute',
74-
dndPanelOverlay: 'group',
75-
};
76-
77-
export const themeNord: DockviewTheme = {
78-
name: 'nord',
79-
className: 'dockview-theme-nord',
80-
colorScheme: 'dark',
81-
};
82-
83-
export const themeNordSpaced: DockviewTheme = {
84-
name: 'nordSpaced',
85-
className: 'dockview-theme-nord-spaced',
86-
colorScheme: 'dark',
87-
gap: 10,
88-
dndOverlayMounting: 'absolute',
89-
dndPanelOverlay: 'group',
90-
};
91-
92-
export const themeCatppuccinMocha: DockviewTheme = {
93-
name: 'catppuccinMocha',
94-
className: 'dockview-theme-catppuccin-mocha',
95-
colorScheme: 'dark',
96-
};
97-
98-
export const themeCatppuccinMochaSpaced: DockviewTheme = {
99-
name: 'catppuccinMochaSpaced',
100-
className: 'dockview-theme-catppuccin-mocha-spaced',
101-
colorScheme: 'dark',
102-
gap: 10,
103-
dndOverlayMounting: 'absolute',
104-
dndPanelOverlay: 'group',
105-
};
106-
107-
export const themeMonokai: DockviewTheme = {
108-
name: 'monokai',
109-
className: 'dockview-theme-monokai',
110-
colorScheme: 'dark',
111-
};
112-
113-
export const themeSolarizedLight: DockviewTheme = {
114-
name: 'solarizedLight',
115-
className: 'dockview-theme-solarized-light',
116-
colorScheme: 'light',
117-
};
118-
119-
export const themeSolarizedLightSpaced: DockviewTheme = {
120-
name: 'solarizedLightSpaced',
121-
className: 'dockview-theme-solarized-light-spaced',
122-
colorScheme: 'light',
123-
gap: 10,
124-
dndOverlayMounting: 'absolute',
125-
dndPanelOverlay: 'group',
126-
};
127-
128-
export const themeGithubDark: DockviewTheme = {
129-
name: 'githubDark',
130-
className: 'dockview-theme-github-dark',
131-
colorScheme: 'dark',
132-
};
133-
134-
export const themeGithubDarkSpaced: DockviewTheme = {
135-
name: 'githubDarkSpaced',
136-
className: 'dockview-theme-github-dark-spaced',
137-
colorScheme: 'dark',
138-
gap: 10,
139-
dndOverlayMounting: 'absolute',
140-
dndPanelOverlay: 'group',
141-
};
142-
143-
export const themeGithubLight: DockviewTheme = {
144-
name: 'githubLight',
145-
className: 'dockview-theme-github-light',
146-
colorScheme: 'light',
147-
};
148-
149-
export const themeGithubLightSpaced: DockviewTheme = {
150-
name: 'githubLightSpaced',
151-
className: 'dockview-theme-github-light-spaced',
152-
colorScheme: 'light',
15367
gap: 10,
15468
dndOverlayMounting: 'absolute',
15569
dndPanelOverlay: 'group',

packages/dockview-core/src/overlay/overlay.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
position: absolute;
3232
z-index: calc(var(--dv-overlay-z-index) - 2);
3333

34-
border: var(--dv-floating-border);
34+
border: 1px solid var(--dv-tab-divider-color);
3535
box-shadow: var(--dv-floating-box-shadow);
3636

3737
/* GPU optimizations for floating group movement */
@@ -44,7 +44,7 @@
4444
}
4545

4646
&.dv-resize-container-dragging {
47-
opacity: var(--dv-floating-group-dragging-opacity);
47+
opacity: 0.5;
4848
/* Enhanced GPU acceleration during drag */
4949
will-change: transform, opacity;
5050
}

0 commit comments

Comments
 (0)