-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Mooshieblob edited this page Oct 30, 2024
·
1 revision
ComfyUI Guide is a comprehensive web application built with SvelteKit and TailwindCSS, designed to help users learn and master ComfyUI for AI art creation. The project aims to provide an accessible, user-friendly interface for tutorials, documentation, and community resources.
- Project Structure
- Technical Stack
- Development Setup
- Component Architecture
- Features
- Styling Guidelines
- Contributing Guidelines
src/
βββ app.css # Global styles and Tailwind imports
βββ app.html # Base HTML template
βββ lib/
β βββ components/ # Reusable components
β β βββ layout/ # Layout components
β β β βββ Footer.svelte
β β β βββ Navbar.svelte
β β β βββ PageWrapper.svelte
β β βββ shared/ # Shared components
β β βββ FeatureCard.svelte
β β βββ ThemeToggle.svelte
β βββ stores/ # Svelte stores
β βββ theme.ts # Theme management
βββ routes/ # SvelteKit routes
βββ +page.svelte # Home page
βββ getting-started/ # Getting started guide
βββ tutorials/ # Tutorial pages
βββ tricks/ # Tips & tricks
βββ gallery/ # Community gallery
- Framework: SvelteKit
- Styling: TailwindCSS
- Icons: Lucide Icons
- Package Manager: pnpm
- TypeScript: For type safety
-
Plugins:
- @tailwindcss/typography
- @tailwindcss/forms
- @tailwindcss/aspect-ratio
- @tailwindcss/container-queries
- Node.js >= 18.0.0
- pnpm >= 8.0.0
# Clone repository
git clone [repository-url]
cd comfyui-guide
# Install dependencies
pnpm install
# Start development server
pnpm dev
pnpm build
pnpm preview
The main layout container component that provides:
- Consistent page structure
- Dark mode support
- Responsive layout
- Footer integration Detailed Documentation
Navigation component featuring:
- Responsive design
- Active page highlighting
- Dark mode toggle
- Brand identity
Footer component with:
- Copyright information
- Dark mode support
- Responsive layout
Reusable card component for:
- Feature highlights
- Tutorial previews
- Gallery items
Theme switching component with:
- System preference detection
- Local storage persistence
- Smooth transitions
- Dark/Light mode toggle
- System preference detection
- Persistent user preference
- Smooth transitions
- Mobile-first approach
- Breakpoint system:
- sm: 640px
- md: 768px
- lg: 1024px
- xl: 1280px
- 2xl: 1536px
- Responsive navigation bar
- Active page highlighting
- Smooth page transitions
-
Home Page
- Feature overview
- Quick navigation
- Welcome message
-
Getting Started
- Installation guide
- Basic concepts
- Setup instructions
-
Tutorials
- Step-by-step guides
- Advanced techniques
- Best practices
-
Tips & Tricks
- Performance optimization
- Workflow management
- Quality improvements
-
Gallery
- Community showcase
- Example workflows
- Achievement highlights
// Primary colors
indigo-600: '#4F46E5' // Primary brand color
indigo-400: '#818CF8' // Secondary brand color
// Gray scale
gray-900: '#111827' // Dark text
gray-100: '#F3F4F6' // Light background
- Font Family: System default stack
- Scale:
- text-sm: 0.875rem
- text-base: 1rem
- text-lg: 1.125rem
- text-xl: 1.25rem
- text-2xl: 1.5rem
- text-3xl: 1.875rem
Following Tailwind's spacing scale:
- 4: 1rem
- 6: 1.5rem
- 8: 2rem
- 12: 3rem
- 16: 4rem
- Use
dark:
prefix for dark mode styles - Maintain consistent contrast ratios
- Implement smooth transitions
- Use TypeScript for type safety
- Follow SvelteKit conventions
- Implement proper component documentation
- Maintain consistent file structure
type(scope): description
feat: new feature
fix: bug fix
docs: documentation
style: formatting
refactor: code restructure
test: testing
chore: maintenance
- Fork repository
- Create feature branch
- Implement changes
- Write/update tests
- Submit pull request
- Update wiki for new features
- Include component documentation
- Provide usage examples
- Document breaking changes
- Implement lazy loading
- Optimize image delivery
- Minimize bundle size
- Use proper caching strategies
- Component testing
- Route testing
- Integration testing
- Accessibility testing
- Build process
- Environment configuration
- Performance monitoring
- Error tracking
MIT License - see LICENSE file for details.