Excalidraw: Theme style variables are not applied in Codesandbox

Created on 9 Apr 2020  ·  3Comments  ·  Source: excalidraw/excalidraw

The style variables below are not reflected because Codesandbox does not properly import the 'theme.css' file.

:root {
  --text-color-primary: #343a40;
  --bg-color-main: #fff;
  --shadow-island: 0 1px 5px rgba(0, 0, 0, 0.15);
  --border-radius-m: 4px;
  --space-factor: 0.25rem;
}

This can be solved by changing the 'theme.css' file extension to scss. But it would be better if we could report an issue to Codesandbox to see if it could be solved. Or is there a root cause?

스크린샷 2020-04-10 오전 1 54 30
스크린샷 2020-04-10 오전 1 54 39

Most helpful comment

Great find and thanks for the clear description of the problem @yongdamsh! I've deployed a fix now, it should work as expected from now on.

All 3 comments

cc @codesandbox

Great find and thanks for the clear description of the problem @yongdamsh! I've deployed a fix now, it should work as expected from now on.

Thanks for the speedy fix @CompuIves! Everything works great now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bgrosse-midokura picture bgrosse-midokura  ·  3Comments

lissitz picture lissitz  ·  3Comments

gmertk picture gmertk  ·  3Comments

vjeux picture vjeux  ·  3Comments

nikitavoloboev picture nikitavoloboev  ·  3Comments