Lyna
SupportBlogOpen Lyna
Get startedFeaturesIntegrationsPromptingTips & TricksChangelog
Design

Styles

Edit every visual property of the selected element, from size and layout to typography, effects and animations. Changes are saved as Tailwind CSS classes.

The Styles panel lists every style property of the selected element, grouped in sections. You see the change on the canvas right away, and Lyna writes it to your code.

The Styles panel for a selected button, with the Layout, Spacing and Typography sections open.

What you can do

  • Set the size, position and layout of an element.
  • Change its spacing, colors, background, borders and text.
  • Add shadows, filters, transforms and animations.
  • Add hover, click, appear and loop effects.
  • Undo any change with Cmd/Ctrl + Z.

Edit a style

Select an element

Click an element on the canvas or in the Layers panel. The top of the panel shows its name and tag.

Open the Styles panel

Choose Styles in the left rail, or All styles in the element toolbar, or Open Styles in the right-click menu.

Change a value

Open a section and change a value. Type a number, drag a slider, or pick an option. The canvas updates as you go.

Sections

SectionWhat it covers
Position & SizeWidth, height, minimum and maximum sizes, aspect ratio and position (static, relative, absolute, fixed, sticky).
LayoutDisplay (block, flex, grid and more), direction, alignment, wrap and gap, grid columns and rows, overflow and object fit.
SpacingPadding and margin, on all sides at once or one side at a time.
AppearanceBackground color or gradient and opacity.
Background imageAn image behind the element, with its size and position.
BordersBorder width, style, color and corner radius.
TypographyFont, size, weight, color, alignment, line height, letter spacing, case, decoration, wrapping, truncation and list style. Opens by itself for text elements.
Visual EffectsShadows and other visual effects.
FiltersBlur, brightness, contrast and other filters.
TransformsMove, scale, rotate and skew.
AnimationA continuous CSS animation.
InteractivityPointer behavior: the mouse pointer shape, whether the element is Clickable, text selection, and resize.
SVGFill and stroke. Shows only for SVG elements.
Interactions & EffectsEffects that start on hover, on click, when the element appears, or in a loop.

Interactions and effects

In Interactions & Effects, pick a Trigger (hover, click, appear or loop) and an Effect, such as Fade In, Slide Up, Scale In or Blur In. Set the Duration and Easing, then choose Preview Effect to see it. Apply Effect adds it to the element as Tailwind CSS classes.

To see animations on the canvas, choose Play animations in the frame toolbar. Animations are paused while you design.

How styles are saved

Lyna saves your edits as Tailwind CSS classes in the className of the element in your source file. When a class already sets the same property, Lyna replaces it instead of adding a second one.

Quick edits from the canvas

The floating toolbar over a selected element covers the most common changes: Text style, Color (Text, Fill, Border), Alignment, Spacing and Link. See Canvas.

Shortcuts

ActionShortcut
Undo / RedoCmd/Ctrl + Z / Cmd/Ctrl + Shift + Z
Show distances to other elementsHold Alt
Show or hide the left panelCmd/Ctrl + /

Next steps