You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding Feature
In all the tracks which have javascript code block, it is always in dark mode even when toggling to light mode.
Solution
I was looking into the code in that we would have to add css classes at 'daily-code\packages\ui\app\CodeBlock.module.css' and based on theme we would load the css class in 'packages\ui\src\CodeBlock.tsx' which change colors when any user switches to Light mode or Dark mode.
The text was updated successfully, but these errors were encountered:
Hello @hkirat,
As mostly, we use VSCode themes so i have switched the themes and did few changes in 'CodeBlock.module.css' to look cleaner.
For Dark Theme it looks like this now : -
For light Theme it looks like this now(made it little more cleaner) : -
Let me know if any more changes required
Note: Sometimes when switching themes code block theme does not get switched due to local cache, so i had to do Hard Reload (CTRL + Shift + R) which then solves the issue.
Kunal09001
added a commit
to Kunal09001/daily-code
that referenced
this issue
Apr 23, 2024
Regarding Feature
In all the tracks which have javascript code block, it is always in dark mode even when toggling to light mode.
Solution
I was looking into the code in that we would have to add css classes at 'daily-code\packages\ui\app\CodeBlock.module.css' and based on theme we would load the css class in 'packages\ui\src\CodeBlock.tsx' which change colors when any user switches to Light mode or Dark mode.
The text was updated successfully, but these errors were encountered: