Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

Fixed issues with inconsistent theming in various components

ravindra3f43af4c32e4
diff --git a/components/billing/upgrade-plan-modal.tsx b/components/billing/upgrade-plan-modal.tsx
index 42604314..fd79d64d 100644
--- a/components/billing/upgrade-plan-modal.tsx
+++ b/components/billing/upgrade-plan-modal.tsx
@@ -183,10 +183,10 @@ export function UpgradePlanModal({
isOnlyDataRooms
? "mx-auto w-[450px] max-w-full md:col-span-2"
: ""
- }`}
+ } dark:bg-gray-900`}
>
<div className="mb-4 border-b border-gray-200 pb-2">
- <h3 className="text-balance text-xl font-medium text-gray-900">
+ <h3 className="text-balance text-xl font-medium text-gray-900 dark:text-white">
Papermark {planOption}
</h3>
{planOption === "Business" && (
@@ -198,24 +198,24 @@ export function UpgradePlanModal({
{/* Add pricing information here */}
<div className="mb-2">
- <span className="text-balance text-4xl font-medium tabular-nums text-gray-900">
+ <span className="text-balance text-4xl font-medium tabular-nums text-gray-900 dark:text-white">
€
{
PLANS.find((p) => p.name === planOption)?.price[period]
.amount
}
</span>
- <span className="text-gray-500">/month</span>
+ <span className="text-gray-500 dark:text-white/75">/month</span>
</div>
- <p className="mt-4 text-sm text-gray-600">
+ <p className="mt-4 text-sm text-gray-600 dark:text-white">
{
planFeatures[planOption as keyof typeof planFeatures]
.featureIntro
}
</p>
- <ul className="mb-6 mt-2 space-y-2 text-sm leading-6 text-gray-600 dark:text-muted-foreground">
+ <ul className="mb-6 mt-2 space-y-2 text-sm leading-6 text-gray-600 dark:text-muted-foreground dark:text-white/75">
{planFeatures[
planOption as keyof typeof planFeatures
].features.map((feature, i) => (
diff --git a/package-lock.json b/package-lock.json
index f290c059..3542d317 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -13263,9 +13263,10 @@
"integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="
},
"node_modules/path-to-regexp": {
- "version": "6.2.2",
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.2.tgz",
- "integrity": "sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw=="
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz",
+ "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==",
+ "license": "MIT"
},
"node_modules/path2d-polyfill": {
"version": "2.0.1",
diff --git a/pages/settings/upgrade.tsx b/pages/settings/upgrade.tsx
index ee9e0432..fdcf9cf4 100644
--- a/pages/settings/upgrade.tsx
+++ b/pages/settings/upgrade.tsx
@@ -107,10 +107,10 @@ export default function UpgradePage() {
key={planOption}
className={`relative flex flex-col rounded-lg border ${
planOption === "Business" ? "border-[#fb7a00]" : "border-gray-200"
- } bg-white p-6 shadow-sm`}
+ } bg-white p-6 shadow-sm dark:bg-gray-900`}
>
<div className="mb-4 border-b border-gray-200 pb-2">
- <h3 className="text-balance text-xl font-medium text-foreground text-gray-900">
+ <h3 className="text-balance text-xl font-medium text-foreground text-gray-900 dark:text-white">
Papermark {planOption}
</h3>
{planOption === "Business" && (
@@ -122,16 +122,16 @@ export default function UpgradePage() {
<div className="mb-2 text-balance text-4xl font-medium tabular-nums text-foreground">
€{PLANS.find((p) => p.name === planOption)!.price[period].amount}
- <span className="text-base font-normal">/month</span>
+ <span className="text-base font-normal dark:text-white/75">/month</span>
</div>
- <p className="mt-4 text-sm text-gray-600">
+ <p className="mt-4 text-sm text-gray-600 dark:text-white">
{
planFeatures[planOption as keyof typeof planFeatures]
.featureIntro
}
</p>
- <ul className="mb-4 mt-4 space-y-3 text-sm leading-6 text-gray-600 dark:text-muted-foreground">
+ <ul className="mb-4 mt-4 space-y-3 text-sm leading-6 text-gray-600 dark:text-muted-foreground dark:text-white/75">
{planFeatures[
planOption as keyof typeof planFeatures
].features.map((feature, i) => (