Design

Styles

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

Use the Styles panel to change any style property of the selected element. 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, Padding and margin and Typography sections open.

What you can do

  • Set the size, position and layout of an element.
  • Align an element in its parent in one click: left, center or right, top, middle or bottom.
  • Take an element out of its parent's layout and keep it where it stands.
  • Change its spacing, colors, background, borders and text.
  • Give a background, text or border color its own opacity, separate from the element's.
  • Place a border inside, centered on or outside the element's edge.
  • Make a text fit its words on one line, wrap in the width it gets, or keep a fixed size.
  • Add shadows, filters, transforms and animations.
  • Blend an element with what is behind it, and add a shape or text shadow.
  • Turn a card or a header into frosted glass, with a tint and a lit edge.
  • Add a progressive blur that is full at one edge and fades away, behind a header or over a picture.
  • Add effects that play when the element appears, on hover, on press, in a loop or as it scrolls into view.
  • Change a style on every screen size, or only from one size up.
  • Let Lyna settle a conflict with your code, and choose in plain words when only you can.
  • Undo any change with Cmd/Ctrl + Z.

Edit a style

  1. Select an element

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

  2. Open the Styles panel

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

  3. 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. A section shows the properties it is about and the ones the element already sets; choose + (Add property) on a section to add another one. To set what the element is and does, such as a field's type or a video's playback, switch to Properties at the top of the panel.

Where a change applies

Under the element's name, the size bar sets which screens a change reaches. All changes the style on every screen size. Pick a width to change it from that size: And up applies it to that size and larger, Only to that size alone, and a sentence under the bar says which screens it reaches. A property that has its own value on some sizes shows By size. Manage sizes edits the screen sizes of your project.

Align in its parent

The six buttons under the element's name place it inside its parent: Align left, Center horizontally, Align right, Align top, Center vertically and Align bottom. Lyna writes what the parent's layout needs: auto margins in a normal page flow, the element's own alignment in a row or a column, and edge offsets for an element positioned absolutely. A button that has no effect in that layout is dimmed, such as the vertical ones for an element in a normal page flow.

Place an element freely

Pick Absolute in Position to take an element out of its parent's layout without moving it. Lyna writes the offsets from the parent's edges that keep it where it stands, keeps the width or height the layout gave it so its text wraps as before, and makes the parent the frame of reference for those offsets when it is not one already. The other elements of the parent close the gap it leaves. One undo puts everything back.

Where a value comes from

A value the element does not set with a class of its own wears a badge beside the property's name. Open the badge to see where the value comes from, with the file and line in your code, and the ways forward:

BadgeWhat it meansWays forward
InheritedA parent sets the value, and the panel names it.Select the parent, Override here
Hover, Focus, PressedA class for that state sets it.Show the hover state (or the focus or pressed state)
DarkA class for dark mode sets it.Show dark mode
Dark copyLyna wrote a dark mode copy of your value, so it shows there too.Remove the dark copy
InlineA style written on the element in your code sets it, and it comes before the classes.Override here, Edit at source
Token, VariableA design token or a CSS variable sets it, shared with other elements.Replace the token here (or the variable), Edit the token
Not shownYour value is in the code, but something else wins on the page: a class for this screen size, a class marked important, an inline style, a CSS rule or an animation.Override here, Open the file, Ask Lyna
From codeOn Width or Height: your code works out the size.The component's own controls, Override with a fixed height (or width), Show in code, Ask Lyna
No effectOn Height set to Fill: the parent has no height to fill.Make the parent a flex column, Give the parent a height, Use a fixed height

A number typed over a token or a variable is held under its field: Replace the token here writes it on this element only, Edit the token opens the token in the Brand panel, and Esc keeps the token. Each choice that writes is one step you can undo. On the canvas, an edit Lyna can't apply opens the same panel: see When an edit can't be applied.

Sizes set in code

A section that scrolls sideways as the page scrolls is as tall as one screen plus its sideways travel, so its Height shows From code. Its panel offers the section's own controls: Scroll distance, the page scroll its row takes, and Pin while scrolling, which, turned off, makes it a row visitors swipe, as tall as its content. On the canvas, drag the section's bottom edge to change its scroll distance: the hint shows the distance before and after. A section made with an earlier version offers Update to the latest version, as long as you have not changed its file.

A size written in the element's own style in your code is changed in place, in the same form, by a resize on the canvas and by the Width, Height, minimum and maximum fields.

When your change meets your code

Your code may already set the value you change: a class for another screen size, a style written on the element itself, the component it comes from, or a shared style of your site. Lyna sorts this out before the change lands, so what you set is what you see:

  • A value set for a screen size changes on the size the canvas shows.
  • A value written on the element itself changes where it is written.
  • A component that would hide your change is fixed so the change shows.
  • A class of the same kind is replaced, never stacked.
  • A brand font or colour you pick is never said to be hidden by its own style.

When only you can say what you mean, Lyna asks in a short suggestion in plain words, with the option it recommends first and named under the question:

What Lyna saysYour choices
Your site's shared styles set the font of all headings.Only this heading (recommended) or All headings
This style comes from the Card component, used 4 times.Only this one (recommended) or All 4
On this button, the background changes when "open" is on.Always (recommended) or Only when "open" is on
Some of your site's global styles block design changes.Fix it for the whole site (recommended) or Only this heading
Your code sets the size of this section on the element itself, for every screen size.Every screen size (recommended) or Ask Lyna to change it
Your code works out the size of this picture while the page runs, or an animation controls its visibility.Ask Lyna to change it

Each choice is one step you can undo. A suggestion never names a class or a property: Show in code and the request that Ask Lyna sends carry the details. A text style preset, or a change to a stroke, is also one step.

Sections

SectionWhat it covers
PictureFor a picture or a video: its alternative text, how it fits its box and its position. Comes first for these elements.
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. Scroll snap and Snap point make a scrolling row, such as a carousel, stop on each card.
Padding and marginPadding and margin, on all sides at once or one side at a time.
AppearanceBackground color or gradient, opacity, and Blend: how the element mixes with what is behind it.
Selection colorsThe colors the selection uses, to change one everywhere it appears.
Background imageAn image behind the element, with its size and position, and Background blend: how the image mixes with the background color.
BordersBorder width, Position (Inside, Center or Outside the edge), style, color and corner radius.
TypographyFont, size, weight, color, alignment, line height, letter spacing, case, wrapping, truncation and list style. The underline has its Line style, Line thickness, Underline offset and Line color. Numbers opens an editor for figures, spacing, fractions, ordinals and slashed zero, with a live preview. Resizing sets how a text takes its size: Auto width (one line, as wide as its words), Auto height (the text wraps and the height follows) or Fixed size. When the text runs past its box, the section says Text overflows its box by N px and offers Hug width, which sets Resizing to Auto width. Opens by itself for text elements.
Visual EffectsShadows, a Shape shadow that follows the outline of an icon or a transparent image, a Text shadow, and Glass: a frost that blurs what is behind the element (Blur, Saturation), a light or dark Tint with its Opacity, and a Light on the edge (Angle, Intensity, Edge), and a Progressive blur that is full at one edge and fades away: it Blurs the Background (what is behind the element) or the Content, with a Strength, the edge where it is Strongest at, and where the fade Starts and Ends. Noise, Texture and Shader add a grain, a texture or a shader effect. Each effect has an eye that hides it and brings it back as it was.
FiltersBlur, brightness, contrast and other filters.
TransformsMove, scale, rotate and skew.
Animation & EffectsEffects that play when the element appears, on hover, on press, in a loop or as it scrolls into view, and a Keyframe animation with its timing, a Curve (ease, linear, steps or your own curve) and an End state. An eye hides an effect and brings it back. See Animation and effects.
InteractivityPointer behavior: the mouse pointer shape, whether the element is Clickable, text selection, and resize.
IconFor an icon, or a button or a link that holds one (Icon in this button): swap it in place. The list groups Your icons (your brand's own set), Brands (logos for social links) and the Library, and finds an icon by its meaning in English or French: "money" or "argent" finds a banknote and a wallet. A swap changes the code only, with no AI call, and Undo takes it back.
SVGFill and stroke. Shows only for SVG elements.
ExportSave the element as a PNG, JPG, SVG or PDF file, at the scales you pick.
The Styles panel with Blend set to Normal in Appearance, and a shape shadow and a text shadow in Visual Effects.
The Styles panel with the Typography section of a selected paragraph: text color, alignment, and Resizing set to Auto height, next to the paragraph with its size badge 672 Fill by 58.5 Hug.

Animation and effects

In Animation & Effects, choose + (Add effect), then Browse the gallery for ready-made motion, a trigger (Appear, Hover, Press, Loop or On scroll), or Keyframe animation. In the effect editor, set the Trigger, the Properties (a Preset such as Fade, Blur or Slide up, or the opacity, scale, rotation and offset), and the timing: the Transition, the Time and the Delay. Play the effect shows it on the canvas, and Apply 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.

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, Corners, Link and More. 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 + /

Need help?

Ask the team, read what changed, or learn from the blog.