Skip to content

Pegasus CSS

In addition to your app’s CSS, Pegasus also ships with its own set of CSS classes to provide compatibility across different frameworks. These classes are typically proxies for similar classes provided by the underlying frameworks themselves, and are created using the Sass @extend helper or Tailwind’s @apply helper.

Pegasus CSS classes are defined in pegasus/<framework>.sass/css, and they all begin with pg-. You are welcome to leave them in and use them throughout your project, or you can replace them with the framework-specific names (for example, replacing all instances of pg-column with column on Bulma, or col-md on Bootstrap).

The following table demonstrates some of the most common Pegasus CSS classes and their corresponding values across frameworks. If you ever need to look up what a class is doing you can look in ./assets/styles/pegasus/.

Pegasus ClassDescriptionValue in BootstrapValue in TailwindValue in Bulma
pg-columnsWrapper for columnsrow gy-4flex flex-col space-y-4 lg:flex-row lg:space-x-4 lg:space-y-0columns
pg-columnIndividual columncol-mdflex-1column
pg-titleA titleh3 (element)text-3xl font-bold text-gray-900 mb-2title
pg-subtitleA subtitleleadtext-xl text-gray-900 mb-1subtitle
pg-button-***A styled buttonbtn btn-***btn btn-*** (from daisyUI)button is-***
pg-text-***Colored texttext-***text-*** (from daisyUI)has-text-***