Skip to content

Commit a0a3ec6

Browse files
committed
v0.5
1 parent 3caad46 commit a0a3ec6

21 files changed

Lines changed: 1322 additions & 381 deletions

demo/src/App.tsx

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
type Wish,
2020
type StatusData,
2121
type StatusIncident,
22-
type ThemeMode,
2322
} from '@appgram/react'
2423

2524
// Configuration - Update these values to test with your Appgram project
@@ -32,13 +31,6 @@ const CONFIG = {
3231

3332
type Tab = 'components' | 'hooks' | 'roadmap' | 'releases' | 'help' | 'support' | 'status' | 'forms' | 'blog'
3433

35-
// Theme mode icons
36-
const ThemeIcons = {
37-
light: '☀️',
38-
dark: '🌙',
39-
system: '💻',
40-
}
41-
4234
// ============================================================================
4335
// Demo: Pre-built Components
4436
// ============================================================================
@@ -574,7 +566,6 @@ function StatusDemo() {
574566

575567
export function App() {
576568
const [activeTab, setActiveTab] = useState<Tab>('components')
577-
const [themeMode, setThemeMode] = useState<ThemeMode>('system')
578569

579570
const tabs: { id: Tab; label: string }[] = [
580571
{ id: 'components', label: 'Components' },
@@ -588,23 +579,15 @@ export function App() {
588579
{ id: 'blog', label: 'Blog' },
589580
]
590581

591-
const themeModes: ThemeMode[] = ['light', 'dark', 'system']
592-
593-
const cycleTheme = () => {
594-
const currentIndex = themeModes.indexOf(themeMode)
595-
const nextIndex = (currentIndex + 1) % themeModes.length
596-
setThemeMode(themeModes[nextIndex])
597-
}
598-
599582
return (
600583
<AppgramProvider
601584
config={{
602585
projectId: CONFIG.projectId,
603586
orgSlug: CONFIG.orgSlug,
604587
projectSlug: CONFIG.projectSlug,
605588
theme: {
606-
// Theme mode: 'light' | 'dark' | 'system'
607-
mode: themeMode,
589+
// Force light mode
590+
mode: 'light',
608591
// Light mode colors (Arctic Blue)
609592
colors: {
610593
primary: '#0EA5E9',
@@ -615,16 +598,6 @@ export function App() {
615598
cardBackground: '#F7F7F7',
616599
cardText: '#242424',
617600
},
618-
// Dark mode colors (optional - has sensible defaults)
619-
darkColors: {
620-
primary: '#38BDF8',
621-
secondary: '#3A3A3A',
622-
accent: '#38BDF8',
623-
background: '#0A0A0A',
624-
text: '#E5E5E5',
625-
cardBackground: '#1A1A1A',
626-
cardText: '#E5E5E5',
627-
},
628601
borderRadius: 12,
629602
},
630603
}}
@@ -653,19 +626,7 @@ export function App() {
653626
Test components and hooks with your Appgram project
654627
</p>
655628
</div>
656-
{/* Theme Toggle */}
657-
<button
658-
onClick={cycleTheme}
659-
className="flex items-center gap-2 px-4 py-2 rounded-lg border transition-colors hover:opacity-80"
660-
style={{
661-
borderColor: 'var(--appgram-secondary)',
662-
backgroundColor: 'var(--appgram-card)',
663-
}}
664-
title={`Current: ${themeMode}. Click to change.`}
665-
>
666-
<span className="text-lg">{ThemeIcons[themeMode]}</span>
667-
<span className="text-sm font-medium capitalize">{themeMode}</span>
668-
</button>
629+
669630
</div>
670631
</header>
671632

@@ -724,9 +685,6 @@ export function App() {
724685
<p className="text-xs opacity-50 mt-1">
725686
Update these values in demo/src/App.tsx to test with your project
726687
</p>
727-
<p className="text-xs mt-2" style={{ color: 'var(--appgram-primary)' }}>
728-
<strong>Theme:</strong> {themeMode} mode | Primary: Arctic Blue
729-
</p>
730688
</div>
731689
</footer>
732690
</div>

0 commit comments

Comments
 (0)