Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat (email): new email templates #52

Merged
merged 11 commits into from
Nov 25, 2024
Prev Previous commit
Next Next commit
css purged, verification is now done on the platform, vars simplified
  • Loading branch information
sickl8 committed Nov 22, 2024
commit 4f98827e698daf42faf07233bf704ae387f41ee9
75 changes: 75 additions & 0 deletions email/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions email/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"type": "module",
"devDependencies": {
"@csstools/postcss-light-dark-function": "^2.0.6",
"@fullhuman/postcss-purgecss": "^6.0.0",
"@sveltejs/adapter-auto": "^3.2.2",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.8.0",
Expand Down
6 changes: 6 additions & 0 deletions email/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@ export default {
tailwindcss: {},
autoprefixer: {},
"@csstools/postcss-light-dark-function": {},
"@fullhuman/postcss-purgecss": {
content: ["./**/*.html"],
css: [ "./**/*.html"],
extractCSS: false,
variables: true,
}
}
};
20 changes: 10 additions & 10 deletions src/lib/styles/vars.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* old vars kept to not break old stuff */
:root {
/* old vars kept to not break old stuff */

--gray-100: light-dark(#27252c, #d3cfcf);
--gray-200: light-dark(#5f4cd9, #d3cfcf);
--gray-300: light-dark(#6f7077, #6a6b71);
Expand All @@ -8,31 +9,30 @@
--gray-600: light-dark(#bababd, #53565e);
--gray-700: light-dark(#ededf6, #2c2c30);
--gray-800: light-dark(#f3f3f6, #2c2c30);

--neutral-100: light-dark(#1f1b1b, #ffffff);
/* - */
--neutral-500: light-dark(#d9d9d9, #373638);
--neutral-600: light-dark(#ffffff, #1a1a1a);
--neutral-700: light-dark(#e6e6e6, #292929);
--neutral-800: light-dark(#f2f1f3, #0d0d0d);
--neutral-900: light-dark(#ffffff, #0d0d0d);

--brand-500: light-dark(#5340ce, #5340ce);
--brand-400: light-dark(#5f4cd9, #5f4cd9);
--brand-200: light-dark(#f3f3f9, #242434);
--brand-300: light-dark(#f3f3f9, #f3f3f9);

--green-500: #49af30;

--orange-500: #ed8c1a;

--red-500: #ed4060;

--background: var(--neutral-800);
}

/* new vars */
:root {
/* new vars */

/* ==================== brand ==================== */

--brand-300: light-dark(#F3F3F9, #242231);
Expand Down
1 change: 1 addition & 0 deletions src/routes/(base)/auth/confirm/verify/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
else
goto(`/auth/confirm/expired?id=${encodeURIComponent($page.url.searchParams.get("id") || "")}`)
}).catch(err => {
goto(`/auth/confirm/expired?id=${encodeURIComponent($page.url.searchParams.get("id") || "")}`)
})
}
})
Expand Down