Getting Started

Your first design

This walkthrough makes one small card by hand: a title, a line of text and a button, on a phone screen. It takes about ten minutes, and it uses the habits that matter in every larger design: real sizes, auto layout instead of hand placement, a few deliberate values for color and depth, and an export at the right scale. Designing needs Nox Pro.

The finished card: a title, a line of text and a blue button on a white card with a soft shadow
The finished card: a title, a line of text and a blue button on a white card with a soft shadow

1. A screen to work on#

By hand
  1. Choose File › New (⌘N). Nox makes Untitled.ndf in the Nox folder of your Documents and opens it in Design.
  2. Press F for the Frame tool. In the strip of sizes under the tools, click iPhone. A 390 × 844 frame appears in the middle of the view.
  3. In the layers list, double-click the frame's name and call it Home.
  4. In the inspector's Fill, type F4F5F8 (press + first if the frame has no fill).

A light grey ground rather than pure white lets a white card stand off it with only a soft shadow. Starting from a real screen size means the type sizes and the tap targets you pick next mean something.

2. Three texts#

By hand
  1. Press T and click inside the frame, near the top left. Type Weekly summary. In the Text section, choose Inter, Semibold, Size 20, and set its fill to 111827.
  2. Press T again and drag a box about 294 wide below it, so the words wrap. Type You closed 12 tasks this week, 3 more than last week. Set Inter, Regular, Size 15, Line 22, fill 5B6472.
  3. Press T and click below that. Type View report, in Inter, Semibold, Size 15.

A clear step between the title (20, semibold, near black) and the body (15, regular, mid grey) does most of the work of hierarchy. A line height of 22 on 15 gives the body room to breathe.

3. A button and a card, with auto layout#

Placing things by eye works until a word changes. Auto layout places them for you, so the button grows with its label and the card grows with its text.

Three texts placed by hand, then the same as a card made with auto layout, a fill, a radius and a shadow
Three texts placed by hand, then the same as a card made with auto layout, a fill, a radius and a shadow
By hand
  1. Select the View report text and press ⇧A (Arrange › Add Auto Layout). Nox puts it in a frame that hugs it.
  2. In that frame's Layout section, set Pad to 12, then open More and set Left and Right to 20. In Fill, press + and type 2563EB. In Corner, set Radius to 12. Make the label's fill FFFFFF. Rename the frame Button.
  3. Select the title, the body and the button together (hold ⇧ and click each) and press ⇧A again. They stand one above the other, so Nox makes a column of them.
  4. In the new frame's Layout, set Gap to 12 and Pad to 24. Choose Fixed from the W menu and type 342 in the W field; keep H on Hug. Rename it Card.
  5. Select the body text and choose Fill from its W menu, so it wraps at the card's width.

342 is the iPhone frame's 390 less 24 on each side, a common screen margin. A padding of 12 by 20 around a 15-point label makes the button 42 tall, easy to tap, and exactly as wide as its label needs.

4. A fill, a radius and a shadow#

By hand
  1. Select Card. In Fill, press + and type FFFFFF.
  2. In Corner, set Radius to 20.
  3. In Effects, press +. Nox adds a drop shadow: 0, 4, blur 12, black at 16%.
  4. Click the shadow's row to open its fields. Set Y to 8 and Blur to 24. Click its swatch and make the color 0F172A at 12%.
The card selected, with its Layout, Fill, Corner and Effects in the inspector
The card selected, with its Layout, Fill, Corner and Effects in the inspector

A shadow that is larger, softer and fainter than the one Nox starts with reads as gentle elevation instead of a dark outline. Tinting it with the dark blue-grey of the text, 0F172A, rather than pure black keeps it from looking dirty on the light ground. The card's radius of 20 is larger than the button's 12: a smaller radius inside a larger one keeps the corners looking related rather than repeated.

5. Export#

By hand
  1. Select Card and press Export… at the foot of the inspector (or File › Export…, ⇧⌘E).
  2. Choose PNG and 2×.
  3. Switch on Room for shadows, so the picture is large enough to hold the whole shadow.
  4. Press Export 1 file and choose a folder.
The export sheet for the card: PNG at 2×, with room for shadows
The export sheet for the card: PNG at 2×, with room for shadows

2× gives sharp edges on Retina screens. Without room for shadows, the picture is cut at the card's box, 342 × 182, and the shadow is lost at its edges. See Export images for every format and option.

What you have#

Change the body to a longer sentence and the card grows. Change View report to Open the full report and the button widens. Nothing needs to be moved by hand, which is the point of building it this way.

Note

Nothing needs saving. Every change is on disk a moment after you make it, and the File panel says Saved. See Files, saving and importing.

Next#