Customizations#
This page outlines the basics of customizing Pegasus to meet your application’s needs.
Personalize your landing page#
Pegasus ships with a simple landing page that varies based on your selected CSS framework. Most projects will want to highly customize the landing page from what comes out of the box. Unless you are planning on building a marketing site on a different platform, this is likely one of the first things you’ll do.
To modify the default landing page, you can edit the ./templates/web/landing_page.html
file
(and any included sub-templates) and make the customizations you want.
Another good option is to use a paid or open-source alternative for your marketing content. Some recommended places to get marketing templates include:
Bootstrap: Official themes, other free recommendations.
Bootstrap (Material): Material Kit Pro
Tailwind: Tailwind UI, Flowbite.
Update the logged-in experience#
After you’ve tweaked your landing page, you’ll likely want to dive into the nuts and bolts that make up your app.
To modify the logged-in default page, edit the ./templates/web/app_home.html
file to your liking.
Styles#
Customizing styles requires setting up the front-end build pipeline.
Both Bootstrap and Bulma are designed to be customized to your needs.
To change styles, edit the generated site-<framework>.scss
file in assets/styles
with any custom styles you want
and run this command to rebuild them:
npm run build # or "dev" or "dev-watch"
As a simple, impactful change to get started, you can set the following variable to change the primary color/theme across the site:
$primary: #2e7636; // change primary color to green
Just make sure to put this change at the top of your file before the @import
statements!
More details on customizing themes can be found in the CSS docs.
Javascript#
The project uses a webpack build pipeline to compile the javascript files.
For more details on how it works see the front-end documentation.