Skip to content

Commit

Permalink
fix: exported css variables not compiled into editor
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed Jan 11, 2024
1 parent 925ac83 commit 0e5919e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 2 additions & 3 deletions packages/excalidraw/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import cssVariables from "./css/variables.module.scss";
import { AppProps, NormalizedZoomValue } from "./types";
import { ExcalidrawElement, FontFamilyValues } from "./element/types";
import { COLOR_PALETTE } from "./colors";
Expand Down Expand Up @@ -213,7 +212,7 @@ export const IDLE_THRESHOLD = 60_000;
// Report a user active each ACTIVE_THRESHOLD milliseconds
export const ACTIVE_THRESHOLD = 3_000;

export const THEME_FILTER = cssVariables.themeFilter;
export const THEME_FILTER = "invert(93%) hue-rotate(180deg)";

export const URL_QUERY_KEYS = {
addLibrary: "addLibrary",
Expand Down Expand Up @@ -248,7 +247,7 @@ export const MQ_MAX_HEIGHT_LANDSCAPE = 500;
export const MQ_RIGHT_SIDEBAR_MIN_WIDTH = 1229;
// -----------------------------------------------------------------------------

export const LIBRARY_SIDEBAR_WIDTH = parseInt(cssVariables.rightSidebarWidth);
export const LIBRARY_SIDEBAR_WIDTH = 302;

export const MAX_DECIMALS_FOR_SVG_EXPORT = 2;

Expand Down
5 changes: 0 additions & 5 deletions packages/excalidraw/css/variables.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,3 @@

$theme-filter: "invert(93%) hue-rotate(180deg)";
$right-sidebar-width: "302px";

:export {
themeFilter: unquote($theme-filter);
rightSidebarWidth: unquote($right-sidebar-width);
}

0 comments on commit 0e5919e

Please sign in to comment.