This forum is for assistance with theme development.

preload-fonts doesnt work in info.yml subtheme file

As indicated in this Drupal doc, I am trying to preload my local font to avoid flash of invisible text (FOIT), but it does not work.
It should be super easy since the fonts folder is in the 'subtheme-name/fonts' folder but any combination doesn't work.

I am using Adaptivetheme, but I think it applies to all themes.

What could I be doing wrong...is there eventually another method?

3D buttons

A client has requested a specific "3D design" for the buttons on the website. See the exmple picture below:

3D button

I've searched for a suitable CSS library to create this 3D effect, but the best I've found is this page: https://bootsnipp.com/snippets/g6y1, which is pretty far from what is desired.

Library, how to have higher weighting than theme?

I have a module which has created a library. I've attached that library to a library and the css files are loaded when the template is loaded.

But the css styles are being overrided with the themes css stles.

For example the css file in my library will have button { padding: 5px; }, but my theme css will have button { padding: 10px; }, and the button gets padding 10px from theme instead of 5px from library.

How to customise Olivero

Hi,

I'm not a developer, but I would like to make some minor changes in the Olivero theme.

  • Change primary branding color
  • And center the website horizontally in the browser

How can I achieve the above?

Default content

Hi, anyone know about how to add a default content to my theme?

Pages

Subscribe with RSS Subscribe to RSS - Theme development