Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

chore: update Prettier configuration and add Tailwind CSS plugin; refactor CSS classes for consistency

Amruth Pillai26e34b6b837a
diff --git a/.prettierrc b/.prettierrc
index 12406fd46..36e1ed2fc 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -1,4 +1,6 @@
{
"printWidth": 100,
- "endOfLine": "auto"
+ "endOfLine": "auto",
+ "plugins": ["prettier-plugin-tailwindcss"],
+ "tailwindFunctions": ["cn", "cva"]
}
diff --git a/apps/artboard/src/styles/main.css b/apps/artboard/src/styles/main.css
index fe01468df..b9005d840 100644
--- a/apps/artboard/src/styles/main.css
+++ b/apps/artboard/src/styles/main.css
@@ -21,5 +21,5 @@
}
.wysiwyg {
- @apply prose max-w-none prose-foreground prose-headings:mt-0 prose-headings:mb-2 prose-p:mt-0 prose-p:mb-2 prose-ul:mt-0 prose-ul:mb-2 prose-li:mt-0 prose-li:mb-2 prose-ol:mt-0 prose-ol:mb-2 prose-img:mt-0 prose-img:mb-2 prose-hr:mt-0 prose-hr:mb-2 prose-p:leading-normal prose-li:leading-normal prose-a:break-all;
+ @apply prose-foreground prose max-w-none prose-headings:mb-2 prose-headings:mt-0 prose-p:mb-2 prose-p:mt-0 prose-p:leading-normal prose-a:break-all prose-ol:mb-2 prose-ol:mt-0 prose-ul:mb-2 prose-ul:mt-0 prose-li:mb-2 prose-li:mt-0 prose-li:leading-normal prose-img:mb-2 prose-img:mt-0 prose-hr:mb-2 prose-hr:mt-0;
}
diff --git a/apps/client/index.html b/apps/client/index.html
index db5e38b6b..879f12009 100644
--- a/apps/client/index.html
+++ b/apps/client/index.html
@@ -35,7 +35,7 @@
<!-- Styles -->
<link rel="stylesheet" href="/src/styles/main.css" />
</head>
- <body class="text-sm antialiased bg-background text-foreground print:bg-white print:m-0">
+ <body class="bg-background text-sm text-foreground antialiased print:m-0 print:bg-white">
<div id="root"></div>
<!-- Scripts -->
diff --git a/apps/client/src/pages/builder/sidebars/left/sections/basics.tsx b/apps/client/src/pages/builder/sidebars/left/sections/basics.tsx
index fc45f8e50..d041032d0 100644
--- a/apps/client/src/pages/builder/sidebars/left/sections/basics.tsx
+++ b/apps/client/src/pages/builder/sidebars/left/sections/basics.tsx
@@ -18,7 +18,7 @@ export const BasicsSection = () => {
<header className="flex items-center justify-between">
<div className="flex items-center gap-x-4">
{getSectionIcon("basics")}
- <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Basics`}</h2>
+ <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Basics`}</h2>
</div>
</header>
diff --git a/apps/client/src/pages/builder/sidebars/left/sections/shared/section-base.tsx b/apps/client/src/pages/builder/sidebars/left/sections/shared/section-base.tsx
index 6a5206fc7..7d0168546 100644
--- a/apps/client/src/pages/builder/sidebars/left/sections/shared/section-base.tsx
+++ b/apps/client/src/pages/builder/sidebars/left/sections/shared/section-base.tsx
@@ -100,7 +100,7 @@ export const SectionBase = <T extends SectionItem>({ id, title, description }: P
<div className="flex items-center gap-x-4">
{getSectionIcon(id)}
- <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{section.name}</h2>
+ <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{section.name}</h2>
</div>
<div className="flex items-center gap-x-2">
diff --git a/apps/client/src/pages/builder/sidebars/left/sections/shared/section-dialog.tsx b/apps/client/src/pages/builder/sidebars/left/sections/shared/section-dialog.tsx
index d73b195f0..5d610bd74 100644
--- a/apps/client/src/pages/builder/sidebars/left/sections/shared/section-dialog.tsx
+++ b/apps/client/src/pages/builder/sidebars/left/sections/shared/section-dialog.tsx
@@ -149,7 +149,7 @@ export const SectionDialog = <T extends SectionItem>({
<Form {...form}>
<ScrollArea>
<form
- className=" max-h-[60vh] space-y-6 lg:max-h-fit"
+ className="max-h-[60vh] space-y-6 lg:max-h-fit"
onSubmit={form.handleSubmit(onSubmit)}
>
<DialogHeader>
@@ -165,7 +165,7 @@ export const SectionDialog = <T extends SectionItem>({
</h2>
</div>
</DialogTitle>
-
+
<VisuallyHidden>
<DialogDescription />
</VisuallyHidden>
diff --git a/apps/client/src/pages/builder/sidebars/left/sections/shared/section-options.tsx b/apps/client/src/pages/builder/sidebars/left/sections/shared/section-options.tsx
index 922f50f6b..ee2c94760 100644
--- a/apps/client/src/pages/builder/sidebars/left/sections/shared/section-options.tsx
+++ b/apps/client/src/pages/builder/sidebars/left/sections/shared/section-options.tsx
@@ -82,7 +82,7 @@ export const SectionOptions = ({ id }: Props) => {
<List weight="bold" />
</Button>
</DropdownMenuTrigger>
- <DropdownMenuContent className="mr-4 w-48 ">
+ <DropdownMenuContent className="mr-4 w-48">
{hasItems && (
<>
<DropdownMenuItem onClick={onCreate}>
diff --git a/apps/client/src/pages/builder/sidebars/right/sections/information.tsx b/apps/client/src/pages/builder/sidebars/right/sections/information.tsx
index b5c37165e..c53268164 100644
--- a/apps/client/src/pages/builder/sidebars/right/sections/information.tsx
+++ b/apps/client/src/pages/builder/sidebars/right/sections/information.tsx
@@ -114,7 +114,7 @@ export const InformationSection = () => {
<header className="flex items-center justify-between">
<div className="flex items-center gap-x-4">
{getSectionIcon("information")}
- <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Information`}</h2>
+ <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Information`}</h2>
</div>
</header>
diff --git a/apps/client/src/pages/builder/sidebars/right/sections/layout.tsx b/apps/client/src/pages/builder/sidebars/right/sections/layout.tsx
index 7b14f509d..ee9b1cd03 100644
--- a/apps/client/src/pages/builder/sidebars/right/sections/layout.tsx
+++ b/apps/client/src/pages/builder/sidebars/right/sections/layout.tsx
@@ -204,7 +204,7 @@ export const LayoutSection = () => {
<header className="flex items-center justify-between">
<div className="flex items-center gap-x-4">
{getSectionIcon("layout")}
- <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Layout`}</h2>
+ <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Layout`}</h2>
</div>
<Tooltip content={t`Reset Layout`}>
diff --git a/apps/client/src/pages/builder/sidebars/right/sections/notes.tsx b/apps/client/src/pages/builder/sidebars/right/sections/notes.tsx
index cc64da68f..6e72553c4 100644
--- a/apps/client/src/pages/builder/sidebars/right/sections/notes.tsx
+++ b/apps/client/src/pages/builder/sidebars/right/sections/notes.tsx
@@ -14,7 +14,7 @@ export const NotesSection = () => {
<header className="flex items-center justify-between">
<div className="flex items-center gap-x-4">
{getSectionIcon("notes")}
- <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Notes`}</h2>
+ <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Notes`}</h2>
</div>
</header>
diff --git a/apps/client/src/pages/builder/sidebars/right/sections/page.tsx b/apps/client/src/pages/builder/sidebars/right/sections/page.tsx
index 4e2621279..0a0f7d2e8 100644
--- a/apps/client/src/pages/builder/sidebars/right/sections/page.tsx
+++ b/apps/client/src/pages/builder/sidebars/right/sections/page.tsx
@@ -23,7 +23,7 @@ export const PageSection = () => {
<header className="flex items-center justify-between">
<div className="flex items-center gap-x-4">
{getSectionIcon("page")}
- <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Page`}</h2>
+ <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Page`}</h2>
</div>
</header>
diff --git a/apps/client/src/pages/builder/sidebars/right/sections/sharing.tsx b/apps/client/src/pages/builder/sidebars/right/sections/sharing.tsx
index 4881786cb..0c38cfedc 100644
--- a/apps/client/src/pages/builder/sidebars/right/sections/sharing.tsx
+++ b/apps/client/src/pages/builder/sidebars/right/sections/sharing.tsx
@@ -36,7 +36,7 @@ export const SharingSection = () => {
<header className="flex items-center justify-between">
<div className="flex items-center gap-x-4">
{getSectionIcon("sharing")}
- <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Sharing`}</h2>
+ <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Sharing`}</h2>
</div>
</header>
diff --git a/apps/client/src/pages/builder/sidebars/right/sections/statistics.tsx b/apps/client/src/pages/builder/sidebars/right/sections/statistics.tsx
index 91df1787e..9092c0781 100644
--- a/apps/client/src/pages/builder/sidebars/right/sections/statistics.tsx
+++ b/apps/client/src/pages/builder/sidebars/right/sections/statistics.tsx
@@ -20,7 +20,7 @@ export const StatisticsSection = () => {
<header className="flex items-center justify-between">
<div className="flex items-center gap-x-4">
{getSectionIcon("statistics")}
- <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Statistics`}</h2>
+ <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Statistics`}</h2>
</div>
</header>
diff --git a/apps/client/src/pages/builder/sidebars/right/sections/template.tsx b/apps/client/src/pages/builder/sidebars/right/sections/template.tsx
index e229618ee..cba82c2da 100644
--- a/apps/client/src/pages/builder/sidebars/right/sections/template.tsx
+++ b/apps/client/src/pages/builder/sidebars/right/sections/template.tsx
@@ -16,7 +16,7 @@ export const TemplateSection = () => {
<header className="flex items-center justify-between">
<div className="flex items-center gap-x-4">
{getSectionIcon("template")}
- <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Template`}</h2>
+ <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Template`}</h2>
</div>
</header>
diff --git a/apps/client/src/pages/builder/sidebars/right/sections/theme.tsx b/apps/client/src/pages/builder/sidebars/right/sections/theme.tsx
index 372036839..f912d7e66 100644
--- a/apps/client/src/pages/builder/sidebars/right/sections/theme.tsx
+++ b/apps/client/src/pages/builder/sidebars/right/sections/theme.tsx
@@ -17,7 +17,7 @@ export const ThemeSection = () => {
<header className="flex items-center justify-between">
<div className="flex items-center gap-x-4">
{getSectionIcon("theme")}
- <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Theme`}</h2>
+ <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Theme`}</h2>
</div>
</header>
diff --git a/apps/client/src/pages/builder/sidebars/right/sections/typography.tsx b/apps/client/src/pages/builder/sidebars/right/sections/typography.tsx
index 1c47c6dfc..21273e474 100644
--- a/apps/client/src/pages/builder/sidebars/right/sections/typography.tsx
+++ b/apps/client/src/pages/builder/sidebars/right/sections/typography.tsx
@@ -62,11 +62,11 @@ export const TypographySection = () => {
<header className="flex items-center justify-between">
<div className="flex items-center gap-x-4">
{getSectionIcon("typography")}
- <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Typography`}</h2>
+ <h2 className="line-clamp-1 text-2xl font-bold lg:text-3xl">{t`Typography`}</h2>
</div>
</header>
- <main className="grid gap-y-8">
+ <main className="grid gap-y-6">
<div className="grid grid-cols-2 gap-4">
{fontSuggestions.map((font) => (
<Button
@@ -167,7 +167,7 @@ export const TypographySection = () => {
<div className="space-y-1.5">
<Label>{t`Options`}</Label>
- <div className="flex items-center gap-x-4 py-2">
+ <div className="flex items-center gap-x-4 py-1">
<Switch
id="metadata.typography.hideIcons"
checked={typography.hideIcons}
@@ -178,7 +178,7 @@ export const TypographySection = () => {
<Label htmlFor="metadata.typography.hideIcons">{t`Hide Icons`}</Label>
</div>
- <div className="flex items-center gap-x-4 py-2">
+ <div className="flex items-center gap-x-4 py-1">
<Switch
id="metadata.typography.underlineLinks"
checked={typography.underlineLinks}
diff --git a/apps/client/src/pages/home/sections/support/index.tsx b/apps/client/src/pages/home/sections/support/index.tsx
index da1ec0dbf..21a7a512b 100644
--- a/apps/client/src/pages/home/sections/support/index.tsx
+++ b/apps/client/src/pages/home/sections/support/index.tsx
@@ -51,7 +51,7 @@ export const SupportSection = () => (
</a>
<a href="https://paypal.me/amruthde" rel="noreferrer noopener nofollow" target="_blank">
{/* eslint-disable-next-line lingui/no-unlocalized-strings */}
- <img src="/support-logos/paypal.svg" className=" max-h-[28px]" alt="PayPal" />
+ <img src="/support-logos/paypal.svg" className="max-h-[28px]" alt="PayPal" />
</a>
</div>
diff --git a/apps/client/src/pages/home/sections/templates/index.tsx b/apps/client/src/pages/home/sections/templates/index.tsx
index 2723b1d5d..55fa33835 100644
--- a/apps/client/src/pages/home/sections/templates/index.tsx
+++ b/apps/client/src/pages/home/sections/templates/index.tsx
@@ -42,7 +42,7 @@ export const TemplatesSection = () => (
alt={template}
loading="lazy"
src={`/templates/jpg/${template}.jpg`}
- className=" aspect-[1/1.4142] h-[400px] rounded object-cover lg:h-[600px]"
+ className="aspect-[1/1.4142] h-[400px] rounded object-cover lg:h-[600px]"
/>
</motion.a>
))}
diff --git a/package.json b/package.json
index e7cde1c75..962de695b 100644
--- a/package.json
+++ b/package.json
@@ -108,6 +108,7 @@
"postcss-import": "^16.1.0",
"postcss-nested": "^6.2.0",
"prettier": "^3.3.3",
+ "prettier-plugin-tailwindcss": "^0.6.9",
"tailwindcss": "^3.4.10",
"tailwindcss-animate": "^1.0.7",
"ts-jest": "^29.2.5",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1a841d7d7..eac87b2f1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -603,6 +603,9 @@ importers:
prettier:
specifier: ^3.3.3
version: 3.3.3
+ prettier-plugin-tailwindcss:
+ specifier: ^0.6.9
+ version: 0.6.9([email protected])
tailwindcss:
specifier: ^3.4.10
@@ -9316,6 +9319,61 @@ packages:
resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==}
engines: {node: '>=6.0.0'}
+ resolution: {integrity: sha512-r0i3uhaZAXYP0At5xGfJH876W3HHGHDp+LCRUJrs57PBeQ6mYHMwr25KH8NPX44F2yGTvdnH7OqCshlQx183Eg==}
+ engines: {node: '>=14.21.3'}
+ peerDependencies:
+ '@ianvs/prettier-plugin-sort-imports': '*'
+ '@prettier/plugin-pug': '*'
+ '@shopify/prettier-plugin-liquid': '*'
+ '@trivago/prettier-plugin-sort-imports': '*'
+ '@zackad/prettier-plugin-twig-melody': '*'
+ prettier: ^3.0
+ prettier-plugin-astro: '*'
+ prettier-plugin-css-order: '*'
+ prettier-plugin-import-sort: '*'
+ prettier-plugin-jsdoc: '*'
+ prettier-plugin-marko: '*'
+ prettier-plugin-multiline-arrays: '*'
+ prettier-plugin-organize-attributes: '*'
+ prettier-plugin-organize-imports: '*'
+ prettier-plugin-sort-imports: '*'
+ prettier-plugin-style-order: '*'
+ prettier-plugin-svelte: '*'
+ peerDependenciesMeta:
+ '@ianvs/prettier-plugin-sort-imports':
+ optional: true
+ '@prettier/plugin-pug':
+ optional: true
+ '@shopify/prettier-plugin-liquid':
+ optional: true
+ '@trivago/prettier-plugin-sort-imports':
+ optional: true
+ '@zackad/prettier-plugin-twig-melody':
+ optional: true
+ prettier-plugin-astro:
+ optional: true
+ prettier-plugin-css-order:
+ optional: true
+ prettier-plugin-import-sort:
+ optional: true
+ prettier-plugin-jsdoc:
+ optional: true
+ prettier-plugin-marko:
+ optional: true
+ prettier-plugin-multiline-arrays:
+ optional: true
+ prettier-plugin-organize-attributes:
+ optional: true
+ prettier-plugin-organize-imports:
+ optional: true
+ prettier-plugin-sort-imports:
+ optional: true
+ prettier-plugin-style-order:
+ optional: true
+ prettier-plugin-svelte:
+ optional: true
+
resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==}
engines: {node: '>=14'}
@@ -22076,6 +22134,10 @@ snapshots:
dependencies:
fast-diff: 1.3.0
+ dependencies:
+ prettier: 3.3.3
+