Master CSS through real-time experimentation. Visual controls, instant feedback, production-ready code.
Codophile is designed for developers who want to bridge the gap between visual design and code. Whether you're a beginner struggling with Flexbox alignment or a pro needing a quick box-shadow generator, Codophile provides an intuitive interface to manipulate CSS properties and verify the results instantly.
Stop guessing values. See what you code.
- 🎨 visual Playground: Interactive controls (sliders, toggles, color pickers) for CSS properties.
- ⚡ Real-time Preview: See changes instantly as you tweak values.
- 🛠️ Dual Output: Generate both Raw CSS and Tailwind CSS utility classes simultaneously.
- 📱 Fully Responsive: Optimized for desktop, tablet, and mobile devices.
- 🌓 Modern UI: Built with a sleek, dark-mode-first aesthetic using Glassmorphism principles.
- 💾 PWA Support: Installable as a native desktop or mobile app for offline access.
- 🔍 SEO Optimized: Server-side rendered pages with dynamic sitemaps and rich metadata.
Built with the latest and greatest web technologies:
- Framework: Next.js 15 (App Router)
- Library: React 19
- Styling: Tailwind CSS v4
- Animations: Framer Motion
- Icons: Lucide React
- Code Editor: Monaco Editor
Follow these steps to set up the project locally.
- Node.js 18+ installed
- npm, yarn, or pnpm
Create a .env.local file in the project root with the following variables:
NEXT_PUBLIC_ALGOLIA_APP_ID=your_algolia_app_id
NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=your_algolia_search_key
ALGOLIA_ADMIN_KEY=your_algolia_admin_key
NEXT_PUBLIC_ALGOLIA_INDEX_NAME=your_algolia_index_name
MONGODB_URI=mongodb://127.0.0.1:27017/codophile
JWT_SECRET=your_jwt_secret_keyNote:
NEXT_PUBLIC_*variables are inlined into the client-side bundle at build time. TheALGOLIA_ADMIN_KEY,MONGODB_URI, andJWT_SECRETare server-side secrets used only at runtime.
To access the admin dashboard, you need to create an initial super admin account. Once your MongoDB is running and your .env.local is configured, you can create the first admin using the following command:
npm run create-adminThis will create a default super admin with:
- Email:
admin@codophile.com - Password:
admin123
To create a specific admin, you can provide arguments:
npm run create-admin -- "your_email@example.com" "your_password" "Your Name"-
Clone the repository
git clone https://github.com/digicraft-one/codophile.git cd codophile -
Install dependencies
npm install # or yarn install -
Run the development server
npm run dev
-
Open your browser Navigate to http://localhost:3000 to confirm the installation.
You can also run this project using Docker.
- Docker installed
.env.localfile configured (see Environment Variables above)
Use the --env-file flag so Docker Compose reads .env.local for build arguments and runtime variables.
-
Build and run the container
docker compose --env-file .env.local up -d --build
-
Access the application Open http://localhost:3000 in your browser.
-
Build the image (pass
NEXT_PUBLIC_*vars as build args)docker build \ --build-arg NEXT_PUBLIC_ALGOLIA_APP_ID=your_algolia_app_id \ --build-arg NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=your_algolia_search_key \ --build-arg NEXT_PUBLIC_ALGOLIA_INDEX_NAME=your_algolia_index_name \ -t codophile . -
Run the container (pass runtime env vars via
--env-file)docker run -p 3000:3000 --env-file .env.local codophile
- Select a Category: Choose from
CSSorTailwindplaygrounds from the simplified navigation. - Pick a Property: navigate to specific modules like
Flexbox,Grid,Shadows, orTransforms. - Experiment: Use the sidebar controls to adjust values.
- Copy Code: Click the "Copy" button to grab the generate CSS or Tailwind classes for your project.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Codophile Team - hello@codophile.in
Project Link: https://github.com/digicraft-one/codophile