Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(chrome-ext): text in dark mode not legible (#2326)

Elijah Potter6ac8406e2921
diff --git a/packages/chrome-plugin/src/popup/Onboarding.svelte b/packages/chrome-plugin/src/popup/Onboarding.svelte
index fc7afe029..2ae5acef3 100644
--- a/packages/chrome-plugin/src/popup/Onboarding.svelte
+++ b/packages/chrome-plugin/src/popup/Onboarding.svelte
@@ -10,8 +10,8 @@ const steps = [
];
</script>
-<main class="p-6 space-y-6 text-gray-900 dark:text-slate-100">
- <h2 class="text-base font-semibold text-gray-900 dark:text-slate-100">
+<main class="p-6 space-y-6">
+ <h2 class="text-base font-semibold">
Welcome! Let’s see Harper in action:
</h2>
diff --git a/packages/chrome-plugin/src/popup/Popup.svelte b/packages/chrome-plugin/src/popup/Popup.svelte
index a55a36003..e75f76250 100644
--- a/packages/chrome-plugin/src/popup/Popup.svelte
+++ b/packages/chrome-plugin/src/popup/Popup.svelte
@@ -25,7 +25,7 @@ function openSettings() {
}
</script>
-<div class="w-[340px] border border-gray-200 bg-white font-sans flex flex-col rounded-lg shadow-sm select-none dark:bg-slate-900 dark:border-slate-800 dark:text-slate-100">
+<div class="w-[340px] border border-gray-200 font-sans flex flex-col rounded-lg shadow-sm select-none dark:border-slate-800 dark:text-slate-100">
<header class="flex flex-row justify-between items-center gap-2 px-3 py-2 rounded-t-lg">
<div class="flex flex-row justify-start items-center">
<img src={logo} alt="Harper logo" class="h-6 w-auto rounded-lg mx-2" />
diff --git a/packages/chrome-plugin/src/popup/ReportProblematicLint.svelte b/packages/chrome-plugin/src/popup/ReportProblematicLint.svelte
index 7ff482fcf..eb9950127 100644
--- a/packages/chrome-plugin/src/popup/ReportProblematicLint.svelte
+++ b/packages/chrome-plugin/src/popup/ReportProblematicLint.svelte
@@ -34,43 +34,43 @@ async function handleSubmit(event: SubmitEvent) {
}
</script>
-<div class="p-5 text-gray-900 dark:text-slate-100">
- <h1 class="text-2xl font-semibold text-gray-900 dark:text-slate-100">Report Problematic Lint</h1>
- <p class="text-sm text-gray-600 dark:text-slate-400">
+<div class="p-5">
+ <h1 class="text-2xl font-semibold">Report Problematic Lint</h1>
+ <p class="text-sm">
Only the data you enter below will be sent to the Harper maintainer.
</p>
<form class="mt-4 space-y-6" onsubmit={handleSubmit}>
<div class="space-y-3">
<div class="flex items-baseline gap-2">
- <Label class="text-gray-900 dark:text-slate-100">What text caused (or should cause) feedback from Harper?</Label>
+ <Label class=" ">What text caused (or should cause) feedback from Harper?</Label>
</div>
<Input
name="example"
bind:value={example}
placeholder="Give us an example."
- class="dark:bg-slate-900 dark:border-slate-700 dark:text-slate-100"
+ class="dark:bg-slate-900 dark:border-slate-700 "
/>
<Checkbox name="is_false_positive" value="true" hidden />
<div class="flex items-baseline gap-2">
- <Label class="text-gray-900 dark:text-slate-100">What rule caused (or should cause) feedback from Harper?</Label>
+ <Label class=" ">What rule caused (or should cause) feedback from Harper?</Label>
</div>
<Input
name="rule_id"
placeholder="We'd appreciate the specific rule ID, if applicable."
bind:value={rule_id}
- class="dark:bg-slate-900 dark:border-slate-700 dark:text-slate-100"
+ class="dark:bg-slate-900 dark:border-slate-700 "
/>
<div class="flex items-baseline gap-2">
- <Label class="text-gray-900 dark:text-slate-100">Additional Feedback</Label>
+ <Label class=" ">Additional Feedback</Label>
</div>
<Input
name="feedback"
placeholder="Anything you want to add?"
bind:value={feedback}
- class="dark:bg-slate-900 dark:border-slate-700 dark:text-slate-100"
+ class="dark:bg-slate-900 dark:border-slate-700 "
/>
<div class="flex items-center justify-between pt-2">