Skip to content

Commit d0e5d40

Browse files
authored
Changing Sidebar colors (#1123)
# READ CAREFULLY THEN REMOVE Remove bullet points that are not relevant. PLEASE REFRAIN FROM USING AI TO WRITE YOUR CODE AND PR DESCRIPTION. IF YOU DO USE AI TO WRITE YOUR CODE PLEASE PROVIDE A DESCRIPTION AND REVIEW IT CAREFULLY. MAKE SURE YOU UNDERSTAND THE CODE YOU ARE SUBMITTING USING AI. - Pull requests that do not follow these guidelines will be closed without review or comment. - If you use AI to write your PR description your pr will be close without review or comment. - If you are unsure about anything, feel free to ask for clarification. ## Description Please provide a clear description of your changes. --- ## Type of Change Please delete options that are not relevant. - [ ] 🐛 Bug fix (non-breaking change which fixes an issue) - [ ] ✨ New feature (non-breaking change which adds functionality) - [ ] 💥 Breaking change (fix or feature with breaking changes) - [ ] 📝 Documentation update - [ ] 🎨 UI/UX improvement - [ ] 🔒 Security enhancement - [ ] ⚡ Performance improvement ## Areas Affected Please check all that apply: - [ ] Email Integration (Gmail, IMAP, etc.) - [ ] User Interface/Experience - [ ] Authentication/Authorization - [ ] Data Storage/Management - [ ] API Endpoints - [ ] Documentation - [ ] Testing Infrastructure - [ ] Development Workflow - [ ] Deployment/Infrastructure ## Testing Done Describe the tests you've done: - [ ] Unit tests added/updated - [ ] Integration tests added/updated - [ ] Manual testing performed - [ ] Cross-browser testing (if UI changes) - [ ] Mobile responsiveness verified (if UI changes) ## Security Considerations For changes involving data or authentication: - [ ] No sensitive data is exposed - [ ] Authentication checks are in place - [ ] Input validation is implemented - [ ] Rate limiting is considered (if applicable) ## Checklist - [ ] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document - [ ] My code follows the project's style guidelines - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in complex areas - [ ] I have updated the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix/feature works - [ ] All tests pass locally - [ ] Any dependent changes are merged and published ## Additional Notes Add any other context about the pull request here. ## Screenshots/Recordings Add screenshots or recordings here if applicable. --- _By submitting this pull request, I confirm that my contribution is made under the terms of the project's license._
1 parent 5ed6c56 commit d0e5d40

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

apps/mail/app/(routes)/mail/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function MailLayout() {
1616
return (
1717
<HotkeyProviderWrapper>
1818
<AppSidebar />
19-
<div className="bg-lightBackground dark:bg-darkBackground w-full">
19+
<div className="bg-sidebar dark:bg-sidebar w-full">
2020
<Outlet />
2121
</div>
2222
<OnboardingWrapper />

apps/mail/components/ui/app-sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
258258
<Sidebar
259259
collapsible="icon"
260260
{...props}
261-
className={`bg-lightBackground dark:bg-darkBackground flex h-screen select-none flex-col items-center ${state === 'collapsed' ? '' : ''} pb-2`}
261+
className={`bg-sidebar dark:bg-sidebar flex h-screen select-none flex-col items-center ${state === 'collapsed' ? '' : ''} pb-2`}
262262
>
263263
<SidebarHeader
264264
className={`relative top-2.5 flex flex-col gap-2 ${state === 'collapsed' ? 'px-2' : 'md:px-4'}`}

apps/mail/components/ui/sidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Sidebar = React.forwardRef<
3939
return (
4040
<div
4141
className={cn(
42-
'text-sidebar-foreground bg-lightBackground dark:bg-darkBackground flex h-full w-[--sidebar-width] flex-col',
42+
'text-sidebar-foreground bg-sidebar dark:bg-sidebar flex h-full w-[--sidebar-width] flex-col',
4343
className,
4444
)}
4545
ref={ref}
@@ -56,7 +56,7 @@ const Sidebar = React.forwardRef<
5656
<SheetContent
5757
data-sidebar="sidebar"
5858
data-mobile="true"
59-
className="text-sidebar-foreground bg-lightBackground dark:bg-darkBackground w-[--sidebar-width] p-4 [&>button]:hidden"
59+
className="text-sidebar-foreground bg-sidebar dark:bg-sidebar w-[--sidebar-width] p-4 [&>button]:hidden"
6060
style={
6161
{
6262
'--sidebar-width': SIDEBAR_WIDTH_MOBILE,
@@ -110,7 +110,7 @@ const Sidebar = React.forwardRef<
110110
>
111111
<div
112112
data-sidebar="sidebar"
113-
className="group-data-[variant=floating]:border-sidebar-border bg-lightBackground dark:bg-darkBackground flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow"
113+
className="group-data-[variant=floating]:border-sidebar-border bg-sidebar dark:bg-sidebar flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow"
114114
>
115115
{children}
116116
</div>

0 commit comments

Comments
 (0)