Button

When using ska-theme buttons can be styled by adding the Button preset to an element:

Adding the Primary button preset alongside the Button preset produces a primary button, whose styles are also added to default WordPress buttons (.wp-element-button) in various locations:

By default the Button preset is set up to use CSS variables for its’ colors (--fg: foreground (text) color, --bg: background color and --accent: focus ring color), so the Primary button preset simply overrides these variables to produce a button with a different appearance ([--fg:var(--color-site-inverted)] [--bg:var(--color-primary)] [--accent:var(--color-primary)]).

The preset should come after the original Button preset, otherwise neutral button styles will take precedence:

Block Editor UI showing "Button" and "Primary button" presets applied to a block

Adding the Outline button preset instead of the Primary button preset will produce an outline button:

The button preset uses em units for padding which allows to apply Tailwind font-size classes text-sm, text-lg etc to change the button size:

Using bg-transparent hover:bg-transparent border-transparent hover:border-transparent hover:underline on a neutral button can produce a link button:

The rounded-full class can produce a circular button:

Custom buttons can be created (as presets (and variations)) as needed, such as: