Output o-banner CSS.
| parameter | type | default | description |
|---|---|---|---|
| opts | The o-banner features to output. See the [readme](https://registry.origami.ft.com/components/o-banner) for a full list of options. |
all o-banner styles.
@include oBanner();
only the small layout
@include oBanner($opts: (
'layouts': ('small')
));
the small layout and marketing theme
@include oBanner($opts: (
'layouts': ('small'),
'themes': ('marketing'),
));
Add a theme modifier for banners.
The output includes the .o-banner--THEME modifier class definition, which includes all overrides.
| parameter | type | default | description |
|---|---|---|---|
| theme-name | The banner theme to output styles for. See README for available themes, or specify a custom one if providing $opts. | ||
| opts (optional) | null | A brand configuration which can be used to create a custom banner theme. See README for more examples. |
Existing banner theme
@include oBannerAddTheme('marketing');
Custom banner theme
@include oBannerAddTheme('bubblegum', (
background-color: oColorsMix('candy', 'white', 75),
text-color: oColorsByName('oxford-90')
));
Output o-banner CSS.
| parameter | type | default | description |
|---|---|---|---|
| opts | The o-banner features to output. See the [readme](https://registry.origami.ft.com/components/o-banner) for a full list of options. |
all o-banner styles.
@include oBanner();
only the small layout
@include oBanner($opts: (
'layouts': ('small')
));
the small layout and marketing theme
@include oBanner($opts: (
'layouts': ('small'),
'themes': ('marketing'),
));
If using the Build Service, add o-banner@^4.0.0-beta.0 to your
script and link tags.
If running a Manual Build, run npm install "o-banner@^4.0.0-beta.0".
o-banner is maintained directly by the Origami team. If you have any questions about o-banner or Origami in general, we are happy to help. 😊
Slack: #origami-support
Email: origami.support@ft.com
To report a bug or request features please create an issue on Github. For support or general feedback please get in touch 😊
Slack: #origami-support
Email: origami.support@ft.com