diff --git a/components/Accounts.tsx b/components/Accounts.tsx
index 9a15472..ea60a4c 100644
--- a/components/Accounts.tsx
+++ b/components/Accounts.tsx
@@ -186,7 +186,7 @@ const AccountDialog = ({
diff --git a/components/Button.tsx b/components/Button.tsx
index f982942..d975f51 100644
--- a/components/Button.tsx
+++ b/components/Button.tsx
@@ -91,26 +91,26 @@ export const StyledButton = styled("button", {
},
},
primary: {
- backgroundColor: `$pink9`,
- boxShadow: "inset 0 0 0 1px $colors$pink9",
+ backgroundColor: `$accent`,
+ boxShadow: "inset 0 0 0 1px $colors$purple9",
color: "$white",
"@hover": {
"&:hover": {
- backgroundColor: "$pink10",
- boxShadow: "inset 0 0 0 1px $colors$pink11",
+ backgroundColor: "$purple10",
+ boxShadow: "inset 0 0 0 1px $colors$purple11",
},
},
"&:active": {
- backgroundColor: "$pink8",
- boxShadow: "inset 0 0 0 1px $colors$pink8",
+ backgroundColor: "$purple8",
+ boxShadow: "inset 0 0 0 1px $colors$purple8",
},
"&:focus": {
- boxShadow: "inset 0 0 0 2px $colors$pink12",
+ boxShadow: "inset 0 0 0 2px $colors$purple12",
},
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]':
{
backgroundColor: "$mauve4",
- boxShadow: "inset 0 0 0 1px $colors$pink8",
+ boxShadow: "inset 0 0 0 1px $colors$purple8",
},
},
secondary: {
diff --git a/components/DeployEditor.tsx b/components/DeployEditor.tsx
index c658f8f..80906ab 100644
--- a/components/DeployEditor.tsx
+++ b/components/DeployEditor.tsx
@@ -34,7 +34,7 @@ const DeployEditor = () => {
display: "flex",
position: "relative",
flexDirection: "column",
- backgroundColor: "$mauve3",
+ backgroundColor: "$mauve2",
width: "100%",
}}
>
diff --git a/components/DropdownMenu.tsx b/components/DropdownMenu.tsx
index 26adfc3..329c6a7 100644
--- a/components/DropdownMenu.tsx
+++ b/components/DropdownMenu.tsx
@@ -71,7 +71,7 @@ const itemStyles = {
},
"&:focus": {
- backgroundColor: "$pink9",
+ backgroundColor: "$purple9",
color: "$white",
},
};
@@ -85,8 +85,8 @@ const StyledRadioItem = styled(DropdownMenuPrimitive.RadioItem, {
});
const StyledTriggerItem = styled(DropdownMenuPrimitive.TriggerItem, {
'&[data-state="open"]': {
- backgroundColor: "$pink9",
- color: "$pink9",
+ backgroundColor: "$purple9",
+ color: "$purple9",
},
...itemStyles,
});
diff --git a/components/EditorNavigation.tsx b/components/EditorNavigation.tsx
index 270548d..d7e20cd 100644
--- a/components/EditorNavigation.tsx
+++ b/components/EditorNavigation.tsx
@@ -26,7 +26,12 @@ import NewWindow from "react-new-window";
import { signOut, useSession } from "next-auth/react";
import { useSnapshot } from "valtio";
-import { createNewFile, syncToGist, updateEditorSettings, downloadAsZip } from "../state/actions";
+import {
+ createNewFile,
+ syncToGist,
+ updateEditorSettings,
+ downloadAsZip,
+} from "../state/actions";
import state from "../state";
import Box from "./Box";
import Button from "./Button";
@@ -57,7 +62,7 @@ import { styled } from "../stitches.config";
const DEFAULT_EXTENSION = ".c";
const ErrorText = styled(Text, {
- color: "$red9",
+ color: "$crimson9",
mt: "$1",
display: "block",
});
@@ -85,7 +90,7 @@ const EditorNavigation = ({ showWat }: { showWat?: boolean }) => {
const validateFilename = useCallback(
(filename: string): { error: string | null } => {
- if (snap.files.find(file => file.name === filename)) {
+ if (snap.files.find((file) => file.name === filename)) {
return { error: "Filename already exists." };
}
// More checks in future
@@ -95,7 +100,9 @@ const EditorNavigation = ({ showWat }: { showWat?: boolean }) => {
);
const handleConfirm = useCallback(() => {
// add default extension in case omitted
- let _filename = filename.includes(".") ? filename : filename + DEFAULT_EXTENSION;
+ let _filename = filename.includes(".")
+ ? filename
+ : filename + DEFAULT_EXTENSION;
const chk = validateFilename(_filename);
if (chk.error) {
setNewfileError(`Error: ${chk.error}`);
@@ -139,7 +146,9 @@ const EditorNavigation = ({ showWat }: { showWat?: boolean }) => {
return (
))}
{onCreateNewTab && (
-