For the complete documentation index, see llms.txt. This page is also available as Markdown.

Styles

Controlling your drawing's aesthetics.

Rayon is also about applying a professional rendering to your drawings: applying colors, line weights, fonts, text sizes, using hatches and textures, etc.

All this can be controlled in Rayon using styles, located in the property panel.

The basics of styles

In Rayon, styles document the aspect of all elements (a text box, a line, a surface, etc.).

Style types

Styles come in 4 different types: shape style, text style, annotation style and wall style. We detail below how each style type works...

Shape styles offer the following options:

  • Fill (type, opacity, etc.)

  • Stroke (thickness, color, dashing, etc.)

Text styles offer the following options:

  • Text color and size (type, opacity, etc.), and text options (units, unit formatting, etc.)

  • Font family

  • Font style (bold, italic, etc.)

Text options allow you to further customize your text's content, with the following options...

Annotation styles offer the following options:

  • Text color and size (type, opacity, etc.), and text options (units, unit formatting, etc.)

  • Font family

  • Font style (bold, italic, etc.)

  • Stroke (thickness, color, dashing, etc.)

  • Extension lines option (thickness, color, dashing, etc.)

  • Ends styling (arrowhead, dot, etc.) and size

  • Head options (block vs text)

Wall styles offer the following options:

  • Wall thickness

  • Fill (type, opacity, etc.)

  • Stroke (thickness, color, dashing, etc.)

Fill types

In shape and wall styles, the fill option can be of different kinds: solid, gradient, texture, hatch, and image. We detail below how each one works.

Fills can use a solid fill. A solid fill is made of a single color and an opacity.

Fills can use a gradient. Gradients can be Linear, Angular or Radial.

For any of those options, controls will be accessible on the canvas to define the position and extents of the gradient. Start and End values will allow you to assign a given color to each part of the gradient.

Fills can use a Texture or a Hatch. Both types of fill allow choosing a pattern. If patterns offered in Rayon's libraries are not what you need, uploading a seamless texture or a PAT hatch file is also possible.

For entities carrying a fill using a hatch or a texture, the pattern of each element can be edited independently! To do so, head to the Tiling field, to enable the option.

You can then manually use the blue dot to rotate and offset the pattern, or simply input precise offset/rotation values in the tiling panel.

Editing, saving & sharing styles

Styles can be either specific to a given entity, or shared across elements.

Styles can be edited, published, and shared across your drawings.

Let's dive in!

Editing a style

Styles' settings can be found in the property panel, on the right. Styles can be edited through their different token fields (Fill, Stroke, etc.), or swapped/saved through the options of the section header.

Saved styles

At any point, the style of an element can be saved, in order to apply it to multiple elements at once. Clicking on + lets you save styles.

Once saved, a style displays different options...

  • Editing

  • Swapping

  • Detaching

... accessible on and above the style itself.

Editing a saved style changes that style across all shapes carrying it. That way, an entire drawing can be redesigned by simply intervening on the few saved styles carried by the drawing's elements.

Swapping replaces a saved style with another. That action can be triggered by using the quad button, or by clicking on the style itself.

Finally, detaching removes a saved style from the current selection. Elements whose style has been detached will go back to having their own specific styling.

Layer-level styling

Beyond styles, a layer can carry style values of its own, which the elements sitting on it can pick up. Change a value on the layer, and every element inheriting it updates at once.

Setting values on a layer

Select a layer, and head to the Inheritable values section of the property panel. Five values can be set there: Color, Opacity, Stroke weight, Dash pattern and Dash scale.

These are not the Layer color and Layer opacity sitting above them. Those two identify the layer in the Layer panel and drive wireframe mode. More about layers here.

Inheriting a value

In an element's Fill or Stroke options, hovering over a value reveals a layer icon on its right. Clicking it makes that value come from the layer instead of the element.

The Edit fill options, with the layer icon at the right of the Hex field

The field then shows the layer's value and can no longer be edited; to change it, change it on the layer. Clicking the icon again gives the element its own value back. Setting a value by hand does the same.

Values are inherited one by one, and only solid color fills can inherit. Selecting several elements at once displays a third state, when only some of them inherit.

Shapes and walls can inherit their stroke and fill values, text elements their color and opacity, and annotations both.

Style libraries & publishing

At any point, you can find all the styles contained in your drawing in the left-side style panel.

  • In model styles lists all the styles you have in your model

  • Libraries gives you access to extensive libraries

Styles listed under In model styles can be curated, using the panel's options; actions such as...

  • Creating new styles by clicking on +

  • Editing/renaming any given style

  • Deleting unused styles

More importantly, this list can be turned into a library, by being published.

  • Publishing can be found in the Share modal (upper right corner), under the Publish styles tab.

  • A library can be refreshed at any time by hitting Refresh in the modal.

  • Published libraries are accessible by users within your team.

More on libraries here.

The active style

Each time a creation command is used, the active style appears in the property panel; that style will be assigned to the things you draw with the current command.


We are always available

Book a demo with our team, right here. To get some support, reach out to us through our in-app support chat. More about our support policy right here.

Last updated