slideshare/src/App.css
Michael Mainguy 04d9487501 Implement global color system and optimize CSS architecture
- Create comprehensive global color system with semantic variables in src/styles/colors.css
- Replace all hardcoded colors across components with CSS custom properties
- Establish semantic color mappings for consistent theming (--text-primary, --bg-secondary, etc.)
- Add complete color scales for gray, slate, blue, red, green, yellow, purple, pink
- Include dark mode color overrides for automatic theme switching
- Update PresentationEditor.css to use global color variables throughout
- Consolidate SlideThumbnail.css styles and optimize using CSS cascades
- Move SlideThumbnail-specific styles from PresentationEditor.css to component file
- Update all UI button components (Button, ActionButton, BackButton) to use color variables
- Modernize Modal, AlertDialog, and ConfirmDialog components with global colors
- Optimize App.css, index.css, and PresentationsList.css color usage
- Reduce CSS bundle size through consolidation and elimination of duplicate styles

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-21 13:06:34 -05:00

166 lines
2.7 KiB
CSS

/* Import aspect ratio system for theme engine */
@import './styles/aspectRatios.css';
/* App Layout */
.app-root {
width: 100%;
margin: 0;
padding: 0;
text-align: left;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
min-height: 100vh;
}
.app-header {
border-bottom: 1px solid var(--border-primary);
background: var(--bg-secondary);
width: 100%;
box-sizing: border-box;
}
.app-nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
border-bottom: 1px solid var(--border-primary);
}
.app-logo {
font-size: 1.25rem;
font-weight: 700;
color: var(--text-primary);
text-decoration: none;
transition: color 0.2s ease;
}
.app-logo:hover {
color: var(--text-accent);
}
.nav-actions {
display: flex;
align-items: center;
gap: 1rem;
}
.nav-button {
padding: 0.5rem 1rem;
border-radius: 0.375rem;
font-weight: 500;
font-size: 0.875rem;
text-decoration: none;
transition: all 0.2s ease;
border: none;
cursor: pointer;
}
.nav-button.primary {
background: var(--btn-primary-bg);
color: var(--btn-primary-text);
}
.nav-button.primary:hover {
background: var(--btn-primary-bg-hover);
}
.nav-link {
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
font-size: 0.875rem;
transition: color 0.2s ease;
}
.nav-link:hover {
color: var(--text-primary);
}
.page-title-section {
padding: 2rem;
text-align: center;
}
.app-header h1 {
margin: 0;
color: var(--text-primary);
font-size: 2rem;
font-weight: 600;
}
.app-header p {
margin: 0.5rem 0 0 0;
color: var(--text-tertiary);
font-size: 1rem;
}
.app-main {
padding: 2rem;
max-width: 1400px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
}
.selected-theme-section {
margin-top: 2rem;
padding: 1.5rem;
border: 1px solid var(--border-secondary);
border-radius: 0.5rem;
background: var(--bg-muted);
}
.selected-theme-title {
margin: 0 0 1rem 0;
color: var(--text-primary);
font-size: 1.25rem;
font-weight: 600;
}
.selected-theme-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
font-size: 0.875rem;
}
.selected-theme-item {
color: var(--text-secondary);
}
.selected-theme-item strong {
color: var(--text-primary);
font-weight: 600;
}
/* Responsive Design */
@media (max-width: 768px) {
.app-main {
padding: 1rem;
}
.selected-theme-grid {
grid-template-columns: 1fr;
gap: 0.75rem;
}
.app-nav {
padding: 1rem;
flex-direction: column;
gap: 1rem;
align-items: stretch;
}
.nav-actions {
justify-content: center;
}
.page-title-section {
padding: 1.5rem 1rem;
}
.app-header h1 {
font-size: 1.5rem;
}
}