Features/Designer

Native class system

Create reusable CSS classes, combine several on one element, and edit them visually across breakpoints and states.

Classes in Divhunt are real CSS classes managed in the Builder. Add one or more classes to an element from the Design panel, then edit the class and every element that uses it updates. The selector shows which classes an element has, which are inherited from a component, and which one you are editing. The Classes panel lists every class with search, rename, delete and paste style.

How it works

  • Class names allow a-z, A-Z, 0-9, - and _; spaces become -; names must be unique.
  • Add classes from the selector with suggestions of existing classes as you type.
  • Edit a class: its styles are stored per breakpoint and state (same structure as element styles).
  • Inherited classes from the component main tag are shown separately.
  • Classes panel: search, Create Class, list of classes and tag classes; right click a class for Name, Paste Style, Remove (Remove requires confirm).
  • Hover a class in the panel to outline elements using it on the canvas.
  • Class style changes go to undo history.
  • Classes can carry interactions used by the Interactions feature.
  • Compiled to .classname { } inside main with media queries per breakpoint.

When to use it

  • Create a .btn-primary and use it on every call to action
  • Combine a layout class with a color class

Limitations

  • Renaming rules strip unsupported characters

Availability

  • Works in Designer.
  • Included in every plan.

How to use it.

  1. Select an element
  2. Click the selector row in the Design tab and type a class name
  3. Pick an existing class or create a new one
  4. Edit styles while the class chip is active

Questions.

Can an element have several classes?

What characters are allowed in a class name?

Related features.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.