Indigo, a cool blue theme for Open edX
======================================
Indigo is an elegant, customizable theme for `Open edX <https://openedx.org>`__.
.. image:: ./screenshots/01-landing-page.png
:alt: Platform landing page
You can view the theme in action at https://sandbox.openedx.edly.io.
Installation
------------
Indigo was specially developed to be used with `Tutor <https://docs.tutor.edly.io>`__ (at least v14.0.0). If you have not installed Open edX with Tutor, then installation instructions will vary.
Install and enable Indigo plugin::
tutor plugins install indigo
tutor plugins enable indigo
tutor local launch
The Indigo theme will be automatically enabled if you have not previously defined a theme. To override an existing theme, use the `settheme command <https://docs.tutor.edly.io/local.html#setting-a-new-theme>`__::
tutor local do settheme indigo
Configuration
-------------
- ``INDIGO_WELCOME_MESSAGE`` (default: "The place for all your online learning")
- ``INDIGO_PRIMARY_COLOR`` (default: "#3b85ff")
- ``INDIGO_FOOTER_NAV_LINKS`` (default: ``[{"title": "About", "url": "/about"}, {"title": "Contact", "url": "/contact"}]``)
- ``INDIGO_ENABLE_DARK_TOGGLE`` (default: True)
The ``INDIGO_*`` settings listed above may be modified by running ``tutor config save --set INDIGO_...=...``. For instance, to remove all links from the footer, run::
tutor config save --set "INDIGO_FOOTER_NAV_LINKS=[]"
Or, to set the primary color to forest green, run::
# Note: The nested quotes are needed in order to handle the hash (#) correctly.
tutor config save --set 'INDIGO_PRIMARY_COLOR="#225522"'
Theme Toggle Button
-------------------
The theme toggle button is enabled by default when Tutor Indigo is installed. The theme can be switched from light to dark and vice versa. To disable it, run::
tutor config save --set INDIGO_ENABLE_DARK_TOGGLE=false
tutor images build openedx
tutor local start -d
Customization
-------------
This plugin can serve as a starting point to create your own themes. Just fork this repository and modify the files as you see fit.
You will have to start by installing indigo from source::
git clone https://github.com/overhangio/tutor-indigo.git
pip install -e ./tutor-indigo
tutor plugins enable indigo
Any change you make to the theme can be viewed immediately in development mode (with `tutor dev ...` commands) after you run::
tutor config save
To deploy your changes to production, you will have to rebuild the "openedx" Docker image and restart your containers::
tutor images build openedx
tutor local start -d
Changing the Styling in Sass files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To customize the theme stylesheets, modify the files in the ``tutorindigo/templates/indigo/lms/static/sass/`` and ``tutorindigo/templates/indigo/cms/static/sass/`` directories. In particular, the ``_extras.scss`` files should contain most styling rules.
Changing the default logo and other images
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The theme images are stored in `tutorindigo/templates/indigo/lms/static/images <https://github.com/overhangio/tutor-indigo/tree/release/tutorindigo/templates/indigo/lms/static/images>`__ for the LMS, and in `tutorindigo/templates/indigo/cms/static/images <https://github.com/overhangio/tutor-indigo/tree/release/tutorindigo/templates/indigo/cms/static/images>`__ for the CMS. To use custom images in your theme, just replace the files stored in these folders with your own.
Overriding the default "about", "contact", etc. static pages
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
By default, the ``/about`` and ``/contact`` pages contain a simple line of text: "This page left intentionally blank. Feel free to add your own content". This is of course unusable in production. In the following, we detail how to override just any of the static templates used in Open edX.
The static templates used by Open edX to render those pages are all stored in the `edx-platform/lms/templates/static_templates <https://github.com/edx/edx-platform/tree/open-release/sumac.master/lms/templates/static_templates>`__ folder. To override those templates, you should add your own in the following folder::
ls tutorindigo/templates/indigo/lms/templates/static_templates"
For instance, edit the "donate.html" file in this directory. We can derive the content of this file from the contents of the `donate.html <https://github.com/edx/edx-platform/blob/open-release/sumac.master/lms/templates/static_templates/donate.html>`__ static template in edx-platform:
.. code-block:: mako
<%page expression_filter="h"/>
<%! from django.utils.translation import gettext as _ %>
<%inherit file="../main.html" />
<%block name="pagetitle">${_("Donate")}</%block>
<main id="main" aria-label="Content" tabindex="-1">
<section class="container about">
<h1>
<%block name="pageheader">${page_header or _("Donate")}</%block>
</h1>
<p>
<%block name="pagecontent">Add a compelling message here, asking for donations.</%block>
</p>
</section>
</main>
This new template will then be used to render the /donate url.
Troubleshooting
---------------
Can't override styles using Indigo Theme for MFEs
-------------------------------------------------
The indigo theme can’t override styles for MFEs directly. It overrides the styles for edx-platform. In case of MFEs, `@edx/brand <https://github.com/openedx/brand-openedx>`_ is used to override the styles. Customize the ``@edx/brand`` package to your preferences and include this customized package in `tutor-indigo` plugin. In this way, styles can be overidden::
hooks.Filters.ENV_PATCHES.add_item((
"mfe-dockerfile-post-npm-install",
"""
RUN npm install '@edx/brand@npm:custom-brand-package'
RUN npm install '@edx/brand@git+https://github.com/username/brand-openedx.git#custom-branch'
""",
))
This Tutor plugin is maintained by Hina Khadim from `Edly <https://edly.io>`__. Community support is available from the official `Open edX forum <https://discuss.openedx.org>`__. Do you need help with this plugin? See the `troubleshooting <https://docs.tutor.edly.io/troubleshooting.html>`__ section from the Tutor documentation.
License
-------
This work is licensed under the terms of the `GNU Affero General Public License (AGPL) <https://github.com/overhangio/tutor-indigo/blob/release/LICENSE.txt>`_.
Raw data
{
"_id": null,
"home_page": "https://github.com/overhangio/tutor-indigo",
"name": "tutor-indigo",
"maintainer": "Edly",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "hina.khadim@arbisoft.com",
"keywords": null,
"author": "Edly",
"author_email": "hello@edly.io",
"download_url": "https://files.pythonhosted.org/packages/b0/f6/1ed7a5990ffc76e287a6aebf8e84b3f21dd3a5ba994292b504febaeeecea/tutor_indigo-19.0.1.tar.gz",
"platform": null,
"description": "Indigo, a cool blue theme for Open edX\n======================================\n\nIndigo is an elegant, customizable theme for `Open edX <https://openedx.org>`__.\n\n.. image:: ./screenshots/01-landing-page.png\n :alt: Platform landing page\n\nYou can view the theme in action at https://sandbox.openedx.edly.io.\n\nInstallation\n------------\n\nIndigo was specially developed to be used with `Tutor <https://docs.tutor.edly.io>`__ (at least v14.0.0). If you have not installed Open edX with Tutor, then installation instructions will vary.\n\nInstall and enable Indigo plugin::\n\n tutor plugins install indigo\n tutor plugins enable indigo\n tutor local launch\n\nThe Indigo theme will be automatically enabled if you have not previously defined a theme. To override an existing theme, use the `settheme command <https://docs.tutor.edly.io/local.html#setting-a-new-theme>`__::\n\n tutor local do settheme indigo\n\nConfiguration\n-------------\n\n- ``INDIGO_WELCOME_MESSAGE`` (default: \"The place for all your online learning\")\n- ``INDIGO_PRIMARY_COLOR`` (default: \"#3b85ff\")\n- ``INDIGO_FOOTER_NAV_LINKS`` (default: ``[{\"title\": \"About\", \"url\": \"/about\"}, {\"title\": \"Contact\", \"url\": \"/contact\"}]``)\n- ``INDIGO_ENABLE_DARK_TOGGLE`` (default: True)\n\nThe ``INDIGO_*`` settings listed above may be modified by running ``tutor config save --set INDIGO_...=...``. For instance, to remove all links from the footer, run::\n\n tutor config save --set \"INDIGO_FOOTER_NAV_LINKS=[]\"\n\nOr, to set the primary color to forest green, run::\n\n # Note: The nested quotes are needed in order to handle the hash (#) correctly.\n tutor config save --set 'INDIGO_PRIMARY_COLOR=\"#225522\"'\n\nTheme Toggle Button\n-------------------\n\nThe theme toggle button is enabled by default when Tutor Indigo is installed. The theme can be switched from light to dark and vice versa. To disable it, run::\n\n tutor config save --set INDIGO_ENABLE_DARK_TOGGLE=false\n tutor images build openedx\n tutor local start -d\n\n\nCustomization\n-------------\n\nThis plugin can serve as a starting point to create your own themes. Just fork this repository and modify the files as you see fit.\n\nYou will have to start by installing indigo from source::\n\n git clone https://github.com/overhangio/tutor-indigo.git\n pip install -e ./tutor-indigo\n tutor plugins enable indigo\n\nAny change you make to the theme can be viewed immediately in development mode (with `tutor dev ...` commands) after you run::\n\n tutor config save\n\nTo deploy your changes to production, you will have to rebuild the \"openedx\" Docker image and restart your containers::\n\n tutor images build openedx\n tutor local start -d\n\nChanging the Styling in Sass files\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo customize the theme stylesheets, modify the files in the ``tutorindigo/templates/indigo/lms/static/sass/`` and ``tutorindigo/templates/indigo/cms/static/sass/`` directories. In particular, the ``_extras.scss`` files should contain most styling rules.\n\n\nChanging the default logo and other images\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThe theme images are stored in `tutorindigo/templates/indigo/lms/static/images <https://github.com/overhangio/tutor-indigo/tree/release/tutorindigo/templates/indigo/lms/static/images>`__ for the LMS, and in `tutorindigo/templates/indigo/cms/static/images <https://github.com/overhangio/tutor-indigo/tree/release/tutorindigo/templates/indigo/cms/static/images>`__ for the CMS. To use custom images in your theme, just replace the files stored in these folders with your own.\n\nOverriding the default \"about\", \"contact\", etc. static pages\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nBy default, the ``/about`` and ``/contact`` pages contain a simple line of text: \"This page left intentionally blank. Feel free to add your own content\". This is of course unusable in production. In the following, we detail how to override just any of the static templates used in Open edX.\n\nThe static templates used by Open edX to render those pages are all stored in the `edx-platform/lms/templates/static_templates <https://github.com/edx/edx-platform/tree/open-release/sumac.master/lms/templates/static_templates>`__ folder. To override those templates, you should add your own in the following folder::\n\n ls tutorindigo/templates/indigo/lms/templates/static_templates\"\n\nFor instance, edit the \"donate.html\" file in this directory. We can derive the content of this file from the contents of the `donate.html <https://github.com/edx/edx-platform/blob/open-release/sumac.master/lms/templates/static_templates/donate.html>`__ static template in edx-platform:\n\n.. code-block:: mako\n\n <%page expression_filter=\"h\"/>\n <%! from django.utils.translation import gettext as _ %>\n <%inherit file=\"../main.html\" />\n\n <%block name=\"pagetitle\">${_(\"Donate\")}</%block>\n\n <main id=\"main\" aria-label=\"Content\" tabindex=\"-1\">\n <section class=\"container about\">\n <h1>\n <%block name=\"pageheader\">${page_header or _(\"Donate\")}</%block>\n </h1>\n <p>\n <%block name=\"pagecontent\">Add a compelling message here, asking for donations.</%block>\n </p>\n </section>\n </main>\n\nThis new template will then be used to render the /donate url.\n\nTroubleshooting\n---------------\n\nCan't override styles using Indigo Theme for MFEs\n-------------------------------------------------\n\nThe indigo theme can\u2019t override styles for MFEs directly. It overrides the styles for edx-platform. In case of MFEs, `@edx/brand <https://github.com/openedx/brand-openedx>`_ is used to override the styles. Customize the ``@edx/brand`` package to your preferences and include this customized package in `tutor-indigo` plugin. In this way, styles can be overidden::\n\n\n hooks.Filters.ENV_PATCHES.add_item((\n \"mfe-dockerfile-post-npm-install\",\n \"\"\"\n RUN npm install '@edx/brand@npm:custom-brand-package'\n RUN npm install '@edx/brand@git+https://github.com/username/brand-openedx.git#custom-branch'\n \"\"\",\n ))\n\n\nThis Tutor plugin is maintained by Hina Khadim from `Edly <https://edly.io>`__. Community support is available from the official `Open edX forum <https://discuss.openedx.org>`__. Do you need help with this plugin? See the `troubleshooting <https://docs.tutor.edly.io/troubleshooting.html>`__ section from the Tutor documentation.\n\n\nLicense\n-------\n\nThis work is licensed under the terms of the `GNU Affero General Public License (AGPL) <https://github.com/overhangio/tutor-indigo/blob/release/LICENSE.txt>`_.\n",
"bugtrack_url": null,
"license": "AGPLv3",
"summary": "Indigo theme plugin for Tutor",
"version": "19.0.1",
"project_urls": {
"Code": "https://github.com/overhangio/tutor-indigo",
"Community": "https://discuss.openedx.org",
"Documentation": "https://docs.tutor.edly.io/",
"Homepage": "https://github.com/overhangio/tutor-indigo",
"Issue tracker": "https://github.com/overhangio/tutor-indigo/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b0f61ed7a5990ffc76e287a6aebf8e84b3f21dd3a5ba994292b504febaeeecea",
"md5": "ba551f3a857ac9dbf75963d56f8e9904",
"sha256": "4d8c6b54f46f77b770a631ed90ab49e2da9cf5a2941b3d49b502c97a5057c019"
},
"downloads": -1,
"filename": "tutor_indigo-19.0.1.tar.gz",
"has_sig": false,
"md5_digest": "ba551f3a857ac9dbf75963d56f8e9904",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 1655728,
"upload_time": "2025-01-26T16:42:03",
"upload_time_iso_8601": "2025-01-26T16:42:03.311813Z",
"url": "https://files.pythonhosted.org/packages/b0/f6/1ed7a5990ffc76e287a6aebf8e84b3f21dd3a5ba994292b504febaeeecea/tutor_indigo-19.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-26 16:42:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "overhangio",
"github_project": "tutor-indigo",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "tutor-indigo"
}