Skip to content

Commit 1f0e3f2

Browse files
authored
feat: light mode (#2457)
* feat(light): restored light theme * feat: styling consolidation, note block upgrades * improvement(zoom-prevention): moved downstream * fix(notifications): mismatching workflow ID * feat(light): button variant updates and controls consolidation * improvement: UI consolidation * feat: badges, usage limit; fix(note): iframe security; improvement(s-modal): sizing * improvement: oauth modal, subscription * improvement(team): ui/ux * feat: emcn, subscription, tool input * improvement(copilot): styling consolidation * feat: colors consolidation * improvement(ui): light styling * fix(build): unused billing component * improvement: addressed comments
1 parent 88cda3a commit 1f0e3f2

File tree

184 files changed

+3989
-4459
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+3989
-4459
lines changed

apps/sim/app/(landing)/careers/page.tsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { useRef, useState } from 'react'
44
import { createLogger } from '@sim/logger'
5-
import { Loader2, X } from 'lucide-react'
5+
import { X } from 'lucide-react'
66
import { Button } from '@/components/ui/button'
77
import { Input } from '@/components/ui/input'
88
import { Label } from '@/components/ui/label'
@@ -499,16 +499,11 @@ export default function CareersPage() {
499499
className='min-w-[200px] rounded-[10px] border border-[#6F3DFA] bg-gradient-to-b from-[#8357FF] to-[#6F3DFA] text-white shadow-[inset_0_2px_4px_0_#9B77FF] transition-all duration-300 hover:opacity-90 disabled:opacity-50'
500500
size='lg'
501501
>
502-
{isSubmitting ? (
503-
<>
504-
<Loader2 className='mr-2 h-4 w-4 animate-spin' />
505-
Submitting...
506-
</>
507-
) : submitStatus === 'success' ? (
508-
'Submitted'
509-
) : (
510-
'Submit Application'
511-
)}
502+
{isSubmitting
503+
? 'Submitting...'
504+
: submitStatus === 'success'
505+
? 'Submitted'
506+
: 'Submit Application'}
512507
</Button>
513508
</div>
514509
</form>

apps/sim/app/(landing)/components/landing-pricing/landing-pricing.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use client'
22

3+
import type { ComponentType, SVGProps } from 'react'
34
import { useState } from 'react'
45
import { createLogger } from '@sim/logger'
56
import type { LucideIcon } from 'lucide-react'
@@ -24,7 +25,7 @@ import {
2425
const logger = createLogger('LandingPricing')
2526

2627
interface PricingFeature {
27-
icon: LucideIcon
28+
icon: LucideIcon | ComponentType<SVGProps<SVGSVGElement>>
2829
text: string
2930
}
3031

apps/sim/app/_shell/providers/theme-provider.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ThemeProvider as NextThemesProvider } from 'next-themes'
77
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
88
const pathname = usePathname()
99

10-
// Force light mode on public/marketing pages, dark mode everywhere else
10+
// Force light mode on public/marketing pages, allow user preference elsewhere
1111
const isLightModePage =
1212
pathname === '/' ||
1313
pathname.startsWith('/login') ||
@@ -27,10 +27,10 @@ export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
2727
<NextThemesProvider
2828
attribute='class'
2929
defaultTheme='dark'
30-
enableSystem={false}
30+
enableSystem
3131
disableTransitionOnChange
3232
storageKey='sim-theme'
33-
forcedTheme={isLightModePage ? 'light' : 'dark'}
33+
forcedTheme={isLightModePage ? 'light' : undefined}
3434
{...props}
3535
>
3636
{children}

apps/sim/app/_shell/zoom-prevention.tsx

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)