Design
======
.. raw:: html
WARNING:
You are browsing the documentation for
EasyAdmin 3.x,
which has just been released. Switch to
EasyAdmin 2.x docs
if your application has not been upgraded to EasyAdmin 3 yet.
The design of the backend is ready for any kind of application. It's been
created with `Bootstrap 4`_, `Font Awesome icons`_ and some custom CSS and
JavaScript code; all managed by `Webpack`_ via Symfony's `Webpack Encore`_.
Like any other Symfony bundle, assets are copied to (or symlinked from) the
``public/bundles/`` directory of your application when installing or updating
the bundle. If this doesn't work for any reason, your backend won't display the
proper CSS/JS styles. In those cases, run this command to install those assets
manually:
.. code-block:: terminal
# remove the --symlink option if your system doesn't support symbolic links
$ php bin/console assets:install --symlink
Depending on your needs, there are several ways of customizing the design. Some
of them require pure CSS/JavaScript code and others require overriding and/or
creating new Twig templates.
.. _template-customization:
Modifying Backend Templates
---------------------------
Backend pages are created with multiple Twig templates and fragments. You can
modify them in two ways:
* **Override EasyAdmin templates** using Symfony's mechanism to override templates
(this is the same for all bundles, not only EasyAdmin);
* **Replace EasyAdmin templates** using EasyAdmin features.
Overriding Templates
~~~~~~~~~~~~~~~~~~~~
.. tip::
Instead of using Symfony mechanism to override templates, you may consider
using a similar but more powerful feature provided by EasyAdmin to replace
templates, as explained in :ref:`the next section