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 Class |
Description |
Value in Bootstrap |
Value in Tailwind |
Value in Bulma |
---|---|---|---|---|
|
Wrapper for columns |
|
|
|
|
Individual column |
|
|
|
|
A title |
|
|
|
|
A subtitle |
|
|
|
|
A styled button |
|
|
|
|
Colored text |
|
|
|