Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Antony-Figueroa/my-evershop-app/llms.txt
Use this file to discover all available pages before exploring further.
What are Themes?
In EverShop, themes control the visual presentation and user interface of your store. Themes are separate from business logic (which lives in extensions) and contain only page components and styling.Themes in EverShop are built with React and TypeScript, and use Tailwind CSS for styling.
Theme Architecture
Directory Structure
Each theme follows a standardized structure:Page Component Structure
Theme components are organized by area and page type:all/- Components that appear on every page (Header, Footer, Navigation)homepage/- Homepage-specific sections (Hero, Features, Featured Products)account/- Account management pages (Login, Register, Dashboard)catalog/- Product listing and detail pagescheckout/- Checkout flow components
Component Exports
Every page component in a theme must export specific values:Area IDs
Components are placed in different areas of the page:header- Top of every pagecontent- Main content areafooter- Bottom of every pagesidebar- Side navigation or filters
Activating a Theme
Themes are activated inconfig/default.json:
themes/.
Development Workflow
Creating Components
-
Create a new
.tsxfile in the appropriate area directory: -
Export the component with layout configuration:
-
Build the theme:
Hot Reload
During development, use:Styling with Tailwind CSS
EverShop themes use Tailwind CSS utility classes:Custom Colors
Define brand colors directly in your components:Best Practice
Extract commonly used colors into CSS variables or Tailwind config for consistency across your theme.
TypeScript Configuration
Themes use TypeScript with React support. Thetsconfig.json includes:
Type Safety
Define props interfaces for your components:Data Fetching with GraphQL
Components can fetch data using GraphQL queries:Theme vs Extensions
| Aspect | Themes | Extensions |
|---|---|---|
| Purpose | Visual presentation | Business logic |
| Contains | React components, styles | API routes, subscribers, GraphQL types |
| Location | themes/ | extensions/ |
| Technology | React, TypeScript, Tailwind | Node.js, Express, PostgreSQL |
| Examples | Header, Footer, Product Cards | Payment processing, order management |
A complete EverShop store requires both a theme (for UI) and extensions (for functionality).
Next Steps
Ana's Supplements Theme
Explore a complete theme implementation
Styling Guide
Learn advanced styling techniques
Extensions Overview
Understand how extensions work
GraphQL Queries
Master data fetching in components