style.cssfiles and you add classes to your elements, Frontity uses CSS in JS instead. But don't worry, you don't have to learn a new language, it is CSS at the end.
frontity, and create styled-components.
styledfollowed by the HTML tag, and then a template string with the CSS, like this:
styledlike a function. The
styledmethod works perfectly on all of your own or any third-party component, as long as they attach the passed
classNameprop to a DOM element.
linkColorbut you can do anything you want
buttoncomponent has a
colorprop that changes, well, its color.
bodytags. In Frontity, this can be done with the
index.jsof your theme, so you can make sure it loads on all your pages.
<Global>component only if it is present in the DOM. You can use that ability to add conditional CSS, like this:
<Global>component with the external styles to your theme:
keyframes. This one is used to define and use animations in your CSS.