diff --git a/.changeset/angry-planes-look.md b/.changeset/angry-planes-look.md new file mode 100644 index 000000000..abe24b177 --- /dev/null +++ b/.changeset/angry-planes-look.md @@ -0,0 +1,11 @@ +--- +"@asyncapi/studio": minor +--- +feat: add global dark/light mode theme system + +- Added theme toggle button in sidebar with VscSymbolColor icon +- Configured Tailwind `darkMode: 'class'` +- Updated editor, toolbar, navigation, and terminal components with `dark:` variants +- Implemented smooth CSS transitions +- Theme preference persists during session +--- diff --git a/apps/studio/.eslintrc b/apps/studio/.eslintrc index c1da477ee..f793d63d2 100644 --- a/apps/studio/.eslintrc +++ b/apps/studio/.eslintrc @@ -2,8 +2,12 @@ "env": { "es6": true, "browser": true, - "node": true + "node": true, + "es2020": true + }, + "globals": { + "globalThis": "readonly" }, "plugins": ["security"], - "extends":["eslint-config-custom", "eslint-config-custom/react"] -} + "extends":["next/core-web-vitals", "eslint-config-custom", "eslint-config-custom/react"] +} \ No newline at end of file diff --git a/apps/studio/public/img/logo-studio-white.svg b/apps/studio/public/img/logo-studio-white.svg new file mode 100644 index 000000000..6281ff537 --- /dev/null +++ b/apps/studio/public/img/logo-studio-white.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/studio/src/components/Editor/ConvertDropdown.tsx b/apps/studio/src/components/Editor/ConvertDropdown.tsx index f9961060e..18a279f8d 100644 --- a/apps/studio/src/components/Editor/ConvertDropdown.tsx +++ b/apps/studio/src/components/Editor/ConvertDropdown.tsx @@ -24,11 +24,11 @@ export const ConvertDropdown: React.FC = () => { } - buttonHoverClassName="text-gray-500 hover:text-white" + buttonHoverClassName="text-gray-700 dark:text-gray-500 hover:text-black dark:hover:text-white" dataTest="button-convert-dropdown" > -