Welcome to the flux theme style guide

Flux is a minimalist, versatile and adaptable theme designed to be applicable to any website. It contains a collection of templates and patterns tailor to different needs and to speed up site building process. It is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4. It also contains custom code designed to improve site performance and speed.

Typography

The text below will update automatically when settings.typography.fontSizes in theme.json changes.

Font sizes

Headings

H1 xxxx-large

H2 xxx-large

H3 xx-large

H4 x-large

H5 large
H6 medium / base
small

Colour settings

Preset colours

Update these settings in theme.json or using the full site editor. These colours will show up in the editor UI. More colours can be added as per design.

The colour swatches below will update automatically when settings.color.palette in theme.json changes.

Custom properties

Set in settings.custom These won’t show up in the UI editor, but are set in the theme and can be accessed as css properties. They reference values from the colour palette above. The goal is to separate component and other global properties from the color palette.

Buttons

Primary button styles. Can add more as needed as per design. Follow the same naming system as below. Reference colour values from the palette as much as possible.

border-radius

primary-background
primary-text
primary-border-color

outline-background
outline-text
outline-border-color

// states
primary-background-active
primary-background-hover
...

Others

border // for things like dividers
ring // for the outline color in focus states
border-radius--default // default border radius

Features

Custom ACF Blocks

With the help of WordPress’s block supports API, all the styling in this block uses wordpress native block settings UI 😱. This means less coding and we can stick to the theme settings.

// render.php. The entire code in the backend.

$anchor = isset($block['anchor']) ? $block['anchor'] : '';
<?php $wrapper_attributes = wp_kses_data(get_block_wrapper_attributes());
?>

<div <?php echo $wrapper_attributes; ?>>
    <p>hi i'm an example block built with acf blocks 🎃</p>
</div>

hi i’m an example block built with acf blocks 🎃

Block Styles

core/button

These colours are controlled by the custom colour settings above.

Ninjaforms

Prose

Dicta ut nemo inventore reiciendis. Iure aut eligendi odio voluptates autem animi et. Nesciunt rerum debitis quis deleniti molestias

Asperiores ut veniam iure molestiae Quo quia molestias corporis. Maxime rerum illum voluptas dolor sint Dolore consequatur natus possimus aut. Illo et nobis impedit minus omnis Placeat praesentium consequatur qui Et repudiandae qui.

Vel et quibusdam est temporibus architecto. Nesciunt magnam qui qui est voluptas

Cupiditate ab facilis placeat ratione deserunt quis. Quia consequatur optio itaque commodi id. Cupiditate a ut quibusdam vero. Facere voluptatem sunt Omnis ut assumenda nisi aut ipsa. dolor minus nihil. aliquid dignissimos alias. Quia distinctio ut. ut perspiciatis ratione incidunt minus delectus commodi. nemo quo quidem repellendus Consectetur rem at ipsa Debitis et aperiam qui. Modi aliquam suscipit quae saepe qui. molestias aut. Distinctio voluptatibus minima reprehenderit fuga est rem. Iste amet nihil fuga soluta dolorem. Inventore sapiente debitis est qui ratione voluptatem vitae. aut consequatur tempora dolor beatae Vitae dicta sequi et occaecati. Dicta ipsa aut aut. Ullam earum aspernatur doloremque molestiae aspernatur dolore. Quia quia hic commodi recusandae provident

  1. Quod pariatur sed modi fugiat
  2. Sed eos culpa porro quia
  3. Quia dolores omnis cumque modi
  4. Id nihil rem omnis aut

Occaecati doloremque voluptatem ipsam quidem incidunt. Hic voluptates laudantium qui qui eveniet. Voluptatem enim eveniet sed. Incidunt ut non labore occaecati unde. natus unde enim dolorem. accusantium et aliquid. Ut quia reiciendis dignissimos reiciendis nostrum Praesentium et maiores doloremque. Veritatis aperiam quaerat Incidunt ipsa dolorem minus blanditiis et. nobis cum enim magnam itaque neque quae mollitia. Aperiam ad nesciunt consectetur aut officia Non repudiandae placeat ut. Repudiandae amet vero voluptatum tempora sed. repellat voluptate alias ad facilis iure. qui fuga aut ab nobis non Nulla et aperiam dolor molestiae rem vel quidem. nostrum laudantium impedit repellendus eius. vel voluptas nam. voluptatem consectetur illo ut. aut et in minus et sit ipsum. Eius nisi delectus ut totam. Sit quibusdam veniam enim vel perferendis laudantium veritatis. Quod perferendis voluptatem incidunt consequatur consequuntur.

Ex repudiandae recusandae autem quia quisquam. Possimus voluptate cumque accusantium. Saepe nisi doloribus aut consequatur repellendus

  • Porro dolorem omnis cupiditate molestiae
  • Voluptates est exercitationem vel beatae eos ullam animi
  • Labore nobis eius autem est
Et exercitationem asperiores omnis et animi ut
  • Et est cumque sed rerum officia sed in
  • Eligendi tempora molestias officia harum
  • Et iste autem et in
  • Expedita omnis doloribus officia
  • Ea magnam voluptatem nisi illo
  • Non quam voluptatem aut non
  • Sunt dolores consequatur eos quo porro
  • Id sunt
  • Assumenda
  • Dolores fugiat