Skip to content

Commit

Permalink
Allow dark colors only
Browse files Browse the repository at this point in the history
  • Loading branch information
sansmoraxz committed May 23, 2024
1 parent 2296204 commit 07139e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/CodeEditorWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ const CodeEditorWindow = ({ language }: CodeEditorWindowProps) => {
<button
onClick={() => runScript()}
disabled={isRunning}
className="relative inline-flex items-center justify-center p-0.5 me-2 overflow-hidden text-sm font-medium text-gray-900 rounded-lg group bg-gradient-to-br from-purple-600 to-blue-500 group-hover:from-purple-600 group-hover:to-blue-500 hover:text-white dark:text-white focus:ring-4 focus:outline-none focus:ring-blue-300 dark:focus:ring-blue-800 mb-10"
className="relative inline-flex items-center justify-center p-0.5 me-2 overflow-hidden text-sm font-medium rounded-lg group bg-gradient-to-br from-purple-600 to-blue-500 group-hover:from-purple-600 group-hover:to-blue-500 hover:text-white text-white focus:ring-4 focus:outline-none focus:ring-blue-800 mb-10 bg-transparent"
>
<span className="relative px-5 py-2.5 transition-all ease-in duration-75 bg-white dark:bg-gray-900 rounded-md group-hover:bg-opacity-0">
<span className="relative px-5 py-2.5 transition-all ease-in duration-75 bg-gray-900 rounded-md group-hover:bg-opacity-0">
Run
</span>
</button>
Expand Down
17 changes: 4 additions & 13 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

/* scrollbar */
scrollbar-width: thin;
scrollbar-color: #646cff #242424;
}

a {
Expand Down Expand Up @@ -57,16 +61,3 @@ button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}

0 comments on commit 07139e2

Please sign in to comment.