Simplify component.php to minimal layout with conditional analytics #82

Merged
Copilot merged 78 commits from copilot/fix-breaking-overrides into main 2026-03-17 21:42:02 +00:00
5 changed files with 235 additions and 168 deletions
Showing only changes of commit ded3cc53d9 - Show all commits

View File

@@ -3,9 +3,9 @@
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
# #
# GitHub Actions Workflow: Create Client Fork Implementation # GitHub Actions Workflow: Create Client Fork (Colors Only)
name: Create Client Fork name: Create Client Fork (Colors Only)
"on": "on":
workflow_dispatch: workflow_dispatch:
@@ -55,6 +55,8 @@ jobs:
- name: Copy custom color templates - name: Copy custom color templates
run: | run: |
echo "Copying colors_custom.css..." echo "Copying colors_custom.css..."
mkdir -p src/media/css/colors/light
mkdir -p src/media/css/colors/dark
cp templates/colors_custom.css src/media/css/colors/light/colors_custom.css cp templates/colors_custom.css src/media/css/colors/light/colors_custom.css
cp templates/colors_custom.css src/media/css/colors/dark/colors_custom.css cp templates/colors_custom.css src/media/css/colors/dark/colors_custom.css
@@ -72,38 +74,12 @@ jobs:
exit 1 exit 1
fi fi
- name: Replace README with client fork README - name: Apply client fork .gitignore
run: | run: |
echo "Replacing README.md..." echo "Setting up .gitignore to track custom color files..."
sed "s/\[CLIENT NAME\]/${{ inputs.client_name }}/g" CLIENT_FORK_README.md > README.md cp templates/gitignore-template .gitignore
echo "✓ Applied client fork .gitignore template"
CURRENT_DATE=$(date +"%Y-%m-%d") echo "✓ Custom color files will be tracked in this fork"
sed -i "s/\[DATE\]/${CURRENT_DATE}/g" README.md
sed -i "s/\[YOUR-FORK-URL\]/https:\/\/github.com\/${GITHUB_REPOSITORY}/g" README.md
echo "✓ README.md replaced"
- name: Clean up template files
run: |
echo "Removing template files..."
if [ -f "CLIENT_FORK_README.md" ]; then
rm CLIENT_FORK_README.md
echo "✓ Removed CLIENT_FORK_README.md"
fi
if [ -f "templates/CLIENT_FORK_README_TEMPLATE.md" ]; then
rm templates/CLIENT_FORK_README_TEMPLATE.md
echo "✓ Removed templates/CLIENT_FORK_README_TEMPLATE.md"
fi
if [ -f "templates/README.md" ]; then
sed -i '/CLIENT_FORK_README_TEMPLATE.md/d' templates/README.md
sed -i '/Client Fork README Template/,/^---$/d' templates/README.md
echo "✓ Updated templates/README.md"
fi
echo "✓ Keeping templates/colors_custom.css"
- name: Commit changes - name: Commit changes
run: | run: |
@@ -113,12 +89,10 @@ jobs:
if git diff --staged --quiet; then if git diff --staged --quiet; then
echo "No changes to commit" echo "No changes to commit"
else else
git commit -m "Setup client fork for ${{ inputs.client_name }}" \ git commit -m "Setup client fork for ${{ inputs.client_name }} (colors only)" \
-m "Copied colors_custom.css to src/media/css/colors/" \ -m "Copied colors_custom.css to src/media/css/colors/" \
-m "Replaced README.md with CLIENT_FORK_README.md" \ -m "Applied client fork .gitignore template to track custom color files" \
-m "Removed CLIENT_FORK_README.md" \ -m "Kept templates/colors_custom.css as reference"
-m "Removed templates/CLIENT_FORK_README_TEMPLATE.md" \
-m "Kept templates/colors_custom.css as template"
echo "✓ Changes committed" echo "✓ Changes committed"
fi fi
@@ -133,20 +107,23 @@ jobs:
## Client Fork Setup Complete! 🎉 ## Client Fork Setup Complete! 🎉
### Changes Applied ### Changes Applied
- ✓ Copied colors_custom.css to src/media/css/colors/ - ✓ Copied colors_custom.css to src/media/css/colors/light/
- ✓ Replaced README.md - ✓ Copied colors_custom.css to src/media/css/colors/dark/
- ✓ Removed CLIENT_FORK_README.md - ✓ Applied client fork .gitignore template
- ✓ Removed templates/CLIENT_FORK_README_TEMPLATE.md - ✓ Custom color files will be tracked in this fork
- ✓ Kept templates/colors_custom.css
### Next Steps ### Next Steps
1. Review branch: \`${BRANCH_NAME}\` 1. Review branch: \`${BRANCH_NAME}\`
2. Customize colors in src/media/css/colors/ 2. Customize colors in src/media/css/colors/light/colors_custom.css
3. Update README.md with client details 3. Customize colors in src/media/css/colors/dark/colors_custom.css
4. Create new repository for ${{ inputs.client_name }} 4. Test colors in both light and dark modes
5. Push branch to new repository 5. Create new repository for ${{ inputs.client_name }}
6. Push branch to new repository
7. In Joomla: System → Site Templates → MokoCassiopeia → Theme tab
8. Set palette to 'Custom' and save
### Branch Information ### Branch Information
- **Branch**: \`${BRANCH_NAME}\` - **Branch**: \`${BRANCH_NAME}\`
- **Client**: ${{ inputs.client_name }} - **Client**: ${{ inputs.client_name }}
- **Scope**: Custom colors only
EOF EOF

View File

@@ -2,26 +2,25 @@
SPDX-License-Identifier: GPL-3.0-or-later SPDX-License-Identifier: GPL-3.0-or-later
BRIEF: Documentation for client fork creation workflow BRIEF: Documentation for client fork creation workflow (colors only)
--> -->
# Client Fork Creation Workflow # Client Fork Creation Workflow (Colors Only)
This document explains how to use the automated client fork creation tools to set up a new client-specific fork of MokoCassiopeia. This document explains how to use the automated client fork creation tools to set up a new client-specific fork of MokoCassiopeia for custom color branding.
--- ---
## Overview ## Overview
The client fork creation workflow automates the process of preparing a repository for a client-specific fork. It performs the following actions: The client fork creation workflow automates the process of preparing a repository for a client-specific color fork. It performs the following actions:
1. ✅ Copies `templates/colors_custom.css` to `src/media/css/colors/light/colors_custom.css` 1. ✅ Copies `templates/colors_custom.css` to `src/media/css/colors/light/colors_custom.css`
2. ✅ Copies `templates/colors_custom.css` to `src/media/css/colors/dark/colors_custom.css` 2. ✅ Copies `templates/colors_custom.css` to `src/media/css/colors/dark/colors_custom.css`
3.Replaces `README.md` with customized `CLIENT_FORK_README.md` 3.Applies client fork `.gitignore` template that tracks custom color files
4.Removes `CLIENT_FORK_README.md` from root 4.Keeps `templates/colors_custom.css` as a reference template
5. ✅ Removes `templates/CLIENT_FORK_README_TEMPLATE.md`
6. ✅ Updates `templates/README.md` to remove fork template references **Scope**: Client forks are limited to custom color branding only. All other customizations should be made through Joomla's template settings.
7. ✅ Keeps `templates/colors_custom.css` as a template for reference
--- ---
@@ -39,7 +38,7 @@ The client fork creation workflow automates the process of preparing a repositor
- Click on the "Actions" tab - Click on the "Actions" tab
2. **Run the Workflow** 2. **Run the Workflow**
- Select "Create Client Fork" from the workflow list - Select "Create Client Fork (Colors Only)" from the workflow list
- Click "Run workflow" - Click "Run workflow"
- Fill in the required inputs: - Fill in the required inputs:
- **Client Name**: Full client name (e.g., "Acme Corporation") - **Client Name**: Full client name (e.g., "Acme Corporation")
@@ -54,8 +53,8 @@ The client fork creation workflow automates the process of preparing a repositor
4. **Review the Branch** 4. **Review the Branch**
- Navigate to the new branch: `client-fork/{client-slug}` - Navigate to the new branch: `client-fork/{client-slug}`
- Review the changes made - Review the changes made
- The README will be customized with the client name - Custom color files will be in place and tracked
- Custom color files will be in place - Upstream README and documentation remain unchanged
5. **Create Client Repository** 5. **Create Client Repository**
- Create a new repository for the client - Create a new repository for the client
@@ -69,8 +68,8 @@ The client fork creation workflow automates the process of preparing a repositor
- ✅ **Safe Confirmation**: Requires typing "CONFIRM" to prevent accidental runs - ✅ **Safe Confirmation**: Requires typing "CONFIRM" to prevent accidental runs
- ✅ **Automated Branch Creation**: Creates a properly named branch automatically - ✅ **Automated Branch Creation**: Creates a properly named branch automatically
- ✅ **Customized README**: Automatically fills in client name and date - ✅ **Color File Setup**: Copies color templates to both light and dark directories
- ✅ **Git Tracking**: Commits all changes with a descriptive message - ✅ **Git Tracking**: Custom colors tracked via client fork .gitignore
- ✅ **Summary Report**: Provides a complete summary of actions taken - ✅ **Summary Report**: Provides a complete summary of actions taken
--- ---
@@ -137,28 +136,22 @@ The client fork creation workflow automates the process of preparing a repositor
### Files Created ### Files Created
``` ```
src/media/css/colors/light/colors_custom.css [NEW] src/media/css/colors/light/colors_custom.css [NEW - TRACKED]
src/media/css/colors/dark/colors_custom.css [NEW] src/media/css/colors/dark/colors_custom.css [NEW - TRACKED]
``` ```
### Files Modified ### Files Modified
``` ```
README.md [REPLACED] .gitignore [REPLACED with client fork template]
templates/README.md [UPDATED]
``` ```
### Files Removed ### Files Kept Unchanged
``` ```
CLIENT_FORK_README.md [DELETED] README.md [UNCHANGED - upstream docs]
templates/CLIENT_FORK_README_TEMPLATE.md [DELETED] templates/colors_custom.css [UNCHANGED - reference template]
``` All other repository files [UNCHANGED]
### Files Kept
```
templates/colors_custom.css [UNCHANGED]
``` ```
--- ---
@@ -172,26 +165,26 @@ After running the workflow or script, you should:
- Edit `src/media/css/colors/dark/colors_custom.css` - Edit `src/media/css/colors/dark/colors_custom.css`
- Update CSS variables to match client branding - Update CSS variables to match client branding
2. **Update README** 2. **Test Locally**
- Fill in client-specific contact information
- Add custom notes or configurations
- Update fork URL references
3. **Test Locally**
- Install the template in a local Joomla instance - Install the template in a local Joomla instance
- Test light and dark modes - Test light and dark modes
- Verify custom colors appear correctly - Verify custom colors appear correctly
3. **Enable Custom Palette in Joomla**
- Log into Joomla admin
- Navigate to System → Site Templates → MokoCassiopeia
- Under Theme tab, set palette to "Custom"
- Save and test
4. **Create Client Repository** 4. **Create Client Repository**
- Create a new repository for the client - Create a new repository for the client
- Push the prepared branch to the new repo - Push the prepared branch to the new repo
- Set up appropriate access controls - Set up appropriate access controls
5. **Enable Custom Palette in Joomla** 5. **Document Customizations**
- Log into Joomla admin - Add a note to the repository about custom colors
- Navigate to System → Site Templates → MokoCassiopeia - Document the client's brand color palette
- Under Theme tab, set palette to "Custom" - Keep reference for future updates
- Save and test
--- ---
@@ -203,7 +196,7 @@ After running the workflow or script, you should:
**Solution**: Make sure you type "CONFIRM" (in all caps) in the confirmation field. **Solution**: Make sure you type "CONFIRM" (in all caps) in the confirmation field.
### Script Says "CLIENT_FORK_README.md not found" ### Script Says "colors_custom.css not found"
**Problem**: Script can't find required files. **Problem**: Script can't find required files.
@@ -235,6 +228,16 @@ git branch -D client-fork/{client-slug}
./scripts/create-client-fork.sh "Client Name - Division" ./scripts/create-client-fork.sh "Client Name - Division"
``` ```
### How to Make Other Customizations
**Problem**: Need more than just color customization.
**Solution**: Use Joomla's built-in template customization options:
- System → Site Templates → MokoCassiopeia → Custom Code tab
- Add custom HTML/CSS/JS through the template settings
- Use Joomla's module positions and layout options
- For extensive customizations, consider a full template fork (not recommended)
--- ---
## Examples ## Examples
@@ -248,7 +251,8 @@ git branch -D client-fork/{client-slug}
This creates: This creates:
- Branch: `client-fork/acme-corporation` - Branch: `client-fork/acme-corporation`
- README title: "Acme Corporation - MokoCassiopeia Custom Fork" - Custom colors tracked in the fork
- Upstream README and docs preserved
### Example 2: Client with Multiple Words ### Example 2: Client with Multiple Words
@@ -259,18 +263,18 @@ This creates:
This creates: This creates:
- Branch: `client-fork/global-tech-solutions-inc` - Branch: `client-fork/global-tech-solutions-inc`
- README title: "Global Tech Solutions Inc - MokoCassiopeia Custom Fork" - Custom color files in `src/media/css/colors/`
### Example 3: Using GitHub Actions ### Example 3: Using GitHub Actions
1. Go to Actions → Create Client Fork 1. Go to Actions → Create Client Fork (Colors Only)
2. Enter: "Mountain View Medical Center" 2. Enter: "Mountain View Medical Center"
3. Enter: "CONFIRM" 3. Enter: "CONFIRM"
4. Click "Run workflow" 4. Click "Run workflow"
Result: Result:
- Branch: `client-fork/mountain-view-medical-center` - Branch: `client-fork/mountain-view-medical-center`
- README title: "Mountain View Medical Center - MokoCassiopeia Custom Fork" - Color files ready for customization
--- ---
@@ -283,26 +287,37 @@ Result:
- Don't merge client fork branches back to main - Don't merge client fork branches back to main
3. **Custom Colors**: 3. **Custom Colors**:
- Document color choices in README - Document color choices in a README note or commit message
- Keep a backup of custom color files - Keep a backup of custom color files
- Test in both light and dark modes - Test in both light and dark modes before deployment
4. **Version Tracking**: 4. **Version Tracking**:
- Note the upstream version in fork README - Note the upstream version in your fork documentation
- Track when you last synced with upstream - Track when you last synced with upstream
- Use semantic versioning for your fork releases
5. **Security**: 5. **Security**:
- Don't commit client-specific credentials - Don't commit client-specific credentials
- Review custom code before deployment
- Keep client forks private if they contain sensitive branding - Keep client forks private if they contain sensitive branding
- Regularly sync with upstream for security patches
6. **Syncing with Upstream**:
- Periodically merge upstream updates to get bug fixes
- Test thoroughly after merging upstream changes
- Custom colors won't conflict with upstream updates
7. **Limited Scope**:
- Forks are for colors only
- Use Joomla's template settings for other customizations
- Avoid modifying core template files
--- ---
## Related Documentation ## Related Documentation
- **[CLIENT_FORK_README.md](../CLIENT_FORK_README.md)** - Full client fork guide - **[CSS Variables](../docs/CSS_VARIABLES.md)** - Complete CSS variable reference for color customization
- **[CSS Variables](../docs/CSS_VARIABLES.md)** - Complete CSS variable reference
- **[Main README](../README.md)** - MokoCassiopeia documentation - **[Main README](../README.md)** - MokoCassiopeia documentation
- **[Quick Start](../docs/QUICK_START.md)** - Installation and setup guide
--- ---
@@ -315,6 +330,7 @@ For issues with the workflow or script:
--- ---
**Document Version**: 1.0 **Document Version**: 2.0
**Last Updated**: 2026-02-20 **Last Updated**: 2026-03-04
**Scope**: Colors only
**Maintained by**: Moko Consulting **Maintained by**: Moko Consulting

View File

@@ -3,11 +3,10 @@
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
# #
# Script: Create Client Fork Setup # Script: Create Client Fork Setup (Colors Only)
# This script prepares the repository for a client-specific fork by: # This script prepares the repository for a client-specific fork by:
# - Copying custom color templates to the appropriate locations # - Copying custom color templates to the appropriate locations
# - Replacing the main README with the client fork README # - Setting up .gitignore to track colors_custom.css files in the fork
# - Cleaning up template documentation files
set -e set -e
@@ -37,11 +36,12 @@ BRANCH_NAME="client-fork/${CLIENT_SLUG}"
echo "" echo ""
echo "╔════════════════════════════════════════════════════════════════╗" echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ MokoCassiopeia - Client Fork Setup Script ║" echo "║ MokoCassiopeia - Client Fork Setup (Colors Only) ║"
echo "╚════════════════════════════════════════════════════════════════╝" echo "╚════════════════════════════════════════════════════════════════╝"
echo "" echo ""
print_info "Client Name: ${CLIENT_NAME}" print_info "Client Name: ${CLIENT_NAME}"
print_info "Branch Name: ${BRANCH_NAME}" print_info "Branch Name: ${BRANCH_NAME}"
print_info "Scope: Custom colors only"
echo "" echo ""
# Confirm before proceeding # Confirm before proceeding
@@ -53,8 +53,13 @@ if [[ ! $REPLY =~ ^[Yy]es$ ]]; then
fi fi
# Check if we're in the right directory # Check if we're in the right directory
if [ ! -f "CLIENT_FORK_README.md" ]; then if [ ! -f "templates/colors_custom.css" ]; then
print_error "CLIENT_FORK_README.md not found. Are you in the repository root?" print_error "templates/colors_custom.css not found. Are you in the repository root?"
exit 1
fi
if [ ! -f "templates/gitignore-template" ]; then
print_error "templates/gitignore-template not found. Are you in the repository root?"
exit 1 exit 1
fi fi
@@ -65,6 +70,8 @@ print_success "Branch created"
# Copy custom color templates # Copy custom color templates
print_info "Copying colors_custom.css to light and dark mode directories..." print_info "Copying colors_custom.css to light and dark mode directories..."
mkdir -p src/media/css/colors/light
mkdir -p src/media/css/colors/dark
cp templates/colors_custom.css src/media/css/colors/light/colors_custom.css cp templates/colors_custom.css src/media/css/colors/light/colors_custom.css
cp templates/colors_custom.css src/media/css/colors/dark/colors_custom.css cp templates/colors_custom.css src/media/css/colors/dark/colors_custom.css
@@ -76,46 +83,11 @@ else
exit 1 exit 1
fi fi
# Replace README with client fork README # Copy template .gitignore to root
print_info "Replacing README.md with CLIENT_FORK_README.md..." print_info "Setting up .gitignore to track custom color files..."
sed "s/\[CLIENT NAME\]/${CLIENT_NAME}/g" CLIENT_FORK_README.md > README.md.new cp templates/gitignore-template .gitignore
mv README.md.new README.md print_success "Copied templates/gitignore-template to .gitignore"
print_info "Custom color files will be tracked in this fork"
# Update fork information section
CURRENT_DATE=$(date +"%Y-%m-%d")
sed -i.bak "s/\[DATE\]/${CURRENT_DATE}/g" README.md
sed -i.bak "s/\[YOUR-FORK-URL\]/[UPDATE-WITH-YOUR-FORK-URL]/g" README.md
rm -f README.md.bak
print_success "README.md replaced with customized client fork README"
# Clean up template files
print_info "Removing template documentation files..."
if [ -f "CLIENT_FORK_README.md" ]; then
rm CLIENT_FORK_README.md
print_success "Removed CLIENT_FORK_README.md"
fi
if [ -f "templates/CLIENT_FORK_README_TEMPLATE.md" ]; then
rm templates/CLIENT_FORK_README_TEMPLATE.md
print_success "Removed templates/CLIENT_FORK_README_TEMPLATE.md"
fi
# Update templates/README.md
if [ -f "templates/README.md" ]; then
# Create a backup
cp templates/README.md templates/README.md.bak
# Remove references to CLIENT_FORK_README_TEMPLATE.md
sed '/CLIENT_FORK_README_TEMPLATE.md/d' templates/README.md > templates/README.md.tmp
mv templates/README.md.tmp templates/README.md
rm -f templates/README.md.bak
print_success "Updated templates/README.md"
fi
print_success "Keeping templates/colors_custom.css as template"
# Show git status # Show git status
echo "" echo ""
@@ -128,14 +100,13 @@ read -p "Commit these changes? (yes/no): " -r
echo echo
if [[ $REPLY =~ ^[Yy]es$ ]]; then if [[ $REPLY =~ ^[Yy]es$ ]]; then
git add . git add .
git commit -m "Setup client fork for ${CLIENT_NAME} git commit -m "Setup client fork for ${CLIENT_NAME} (colors only)
- Copied colors_custom.css to src/media/css/colors/light/ and dark/ - Copied colors_custom.css to src/media/css/colors/light/ and dark/
- Replaced README.md with customized CLIENT_FORK_README.md - Applied client fork .gitignore template to track custom color files
- Removed CLIENT_FORK_README.md and templates/CLIENT_FORK_README_TEMPLATE.md - Kept templates/colors_custom.css as reference template
- Kept templates/colors_custom.css as template
This commit prepares the repository for ${CLIENT_NAME}'s custom fork." This commit prepares the repository for ${CLIENT_NAME}'s custom colors."
print_success "Changes committed successfully" print_success "Changes committed successfully"
@@ -153,16 +124,16 @@ echo ""
echo "Changes Applied:" echo "Changes Applied:"
print_success "Copied colors_custom.css to src/media/css/colors/light/" print_success "Copied colors_custom.css to src/media/css/colors/light/"
print_success "Copied colors_custom.css to src/media/css/colors/dark/" print_success "Copied colors_custom.css to src/media/css/colors/dark/"
print_success "Replaced README.md with customized client fork README" print_success "Applied client fork .gitignore template"
print_success "Removed CLIENT_FORK_README.md" print_success "Custom color files will be tracked in this fork"
print_success "Removed templates/CLIENT_FORK_README_TEMPLATE.md"
print_success "Kept templates/colors_custom.css as template"
echo "" echo ""
echo "Next Steps:" echo "Next Steps:"
echo "1. Review the changes in branch: ${BRANCH_NAME}" echo "1. Review the changes in branch: ${BRANCH_NAME}"
echo "2. Customize colors in src/media/css/colors/light/colors_custom.css" echo "2. Customize colors in src/media/css/colors/light/colors_custom.css"
echo "3. Customize colors in src/media/css/colors/dark/colors_custom.css" echo "3. Customize colors in src/media/css/colors/dark/colors_custom.css"
echo "4. Update README.md with client-specific details" echo "4. Test the colors in both light and dark modes"
echo "5. Create a new repository for ${CLIENT_NAME}" echo "5. Create a new repository for ${CLIENT_NAME}"
echo "6. Push this branch to the new repository" echo "6. Push this branch to the new repository"
echo "7. In Joomla: System → Site Templates → MokoCassiopeia → Theme tab"
echo "8. Set palette to 'Custom' and save"
echo "" echo ""

View File

@@ -7,7 +7,7 @@
# MokoCassiopeia Template Files # MokoCassiopeia Template Files
This directory contains template files for client customizations and custom code forks. This directory contains template files for client color customizations.
--- ---
@@ -31,19 +31,15 @@ A comprehensive template for creating custom color schemes. This template includ
--- ---
### Client Fork README Template ### Client Fork .gitignore Template
**File**: `CLIENT_FORK_README_TEMPLATE.md` **File**: `gitignore-template`
A simplified README template for client-specific forks. Use this as a starting point for documenting your customizations. A .gitignore template for client forks that ensures custom color files are tracked in the fork repository while maintaining proper ignore rules for other files.
**Usage**: **Usage**:
1. Copy this file to the root of your fork repository as `README.md` - Automatically applied when using the client fork creation workflow
2. Replace `[CLIENT NAME]` with your client's name - Can be manually copied to `.gitignore` in client fork repositories
3. Fill in brand colors and contact information
4. Add client-specific notes and configurations
**For Comprehensive Fork Setup**: See [CLIENT_FORK_README.md](../CLIENT_FORK_README.md) for the complete client fork guide.
--- ---
@@ -53,9 +49,9 @@ A simplified README template for client-specific forks. Use this as a starting p
If you're creating a custom fork of MokoCassiopeia for a specific client: If you're creating a custom fork of MokoCassiopeia for a specific client:
1. **Start with the full guide**: Read [CLIENT_FORK_README.md](../CLIENT_FORK_README.md) 1. **Use the automated workflow**: See [CLIENT_FORK_WORKFLOW.md](../docs/CLIENT_FORK_WORKFLOW.md)
2. **Set up custom colors**: Use `colors_custom.css` as your starting point 2. **Set up custom colors**: Use `colors_custom.css` as your starting point
3. **Document your fork**: Copy `CLIENT_FORK_README_TEMPLATE.md` to your fork 3. **Test thoroughly**: Verify colors in both light and dark modes
### Custom Colors Only ### Custom Colors Only
@@ -70,12 +66,13 @@ If you just need custom colors without forking:
## 📚 Additional Resources ## 📚 Additional Resources
- **[Main README](../README.md)** - MokoCassiopeia features and installation - **[Main README](../README.md)** - MokoCassiopeia features and installation
- **[Client Fork Guide](../CLIENT_FORK_README.md)** - Complete guide for client forks - **[Client Fork Workflow](../docs/CLIENT_FORK_WORKFLOW.md)** - Automated fork setup guide
- **[CSS Variables Reference](../docs/CSS_VARIABLES.md)** - All available CSS variables - **[CSS Variables Reference](../docs/CSS_VARIABLES.md)** - All available CSS variables
- **[Development Guide](../docs/JOOMLA_DEVELOPMENT.md)** - Development workflows - **[Development Guide](../docs/JOOMLA_DEVELOPMENT.md)** - Development workflows
--- ---
**Template Directory**: `/templates/` **Template Directory**: `/templates/`
**Version**: 03.06.03 **Version**: 03.08.04
**Scope**: Colors only
**Maintained by**: Moko Consulting **Maintained by**: Moko Consulting

View File

@@ -0,0 +1,106 @@
# MokoCassiopeia Client Fork .gitignore Template
# This file is copied to client forks to ensure custom color files are tracked
# DO NOT ignore custom color files in client forks
# These files should be tracked to preserve client-specific branding
#
# The files below are intentionally NOT ignored:
# src/media/css/colors/light/colors_custom.css
# src/media/css/colors/dark/colors_custom.css
# ============================================================
# Environment and secrets
# ============================================================
.env
.env.local
.env.*.local
*.local.php
*.secret.php
configuration.php
configuration.*.php
configuration.local.php
conf/conf.php
conf/conf*.php
secrets/
*.secrets.*
# ============================================================
# Logs, dumps and databases
# ============================================================
*.db
*.db-journal
*.dump
*.log
*.pid
*.seed
*.sql
*.sql.gz
*.sqlite
*.sqlite3
# ============================================================
# OS / Editor / IDE cruft
# ============================================================
.DS_Store
Thumbs.db
desktop.ini
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
$RECYCLE.BIN/
System Volume Information/
*.lnk
Icon?
.idea/
.settings/
.vscode/*
!.vscode/tasks.json
!.vscode/settings.json.example
!.vscode/extensions.json
*.code-workspace
# ============================================================
# Package manager and dependencies
# ============================================================
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
*.tgz
package-lock.json
yarn.lock
pnpm-lock.yaml
vendor/
# ============================================================
# Build artifacts and temporary files
# ============================================================
dist/
build/
.cache/
*.tmp
*.temp
*.swp
*.swo
*~
.#*
\#*#
# ============================================================
# Test and coverage
# ============================================================
tests/_output/
coverage/
.nyc_output/
phpunit.xml
.phpunit.result.cache
# ============================================================
# Joomla specific
# ============================================================
administrator/cache/
cache/
tmp/
logs/