> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loft.build/llms.txt
> Use this file to discover all available pages before exploring further.

# trailer

The `trailer` example as shipped in [`examples/trailer/`](https://github.com/loftlang/loft/tree/main/examples/trailer) — 7 files, one project. Every file compiles in CI; a folder here navigates, never scopes.

## `datums/grids.loft`

```loft theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/loft.json","/languages/loft-fragment.json"]}}
units imperial

level L1 elev 0' height 10'-0"

grid A vertical at 0'
grid B vertical at grid.A + 12'-0"
grid C vertical at grid.B + 12'-0"
grid 1 horizontal at 0'
grid 2 horizontal at grid.1 + 12'-0"
grid 3 horizontal at grid.2 + 10'-0"
```

## `openings.loft`

```loft theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/loft.json","/languages/loft-fragment.json"]}}
units imperial

door 3070 D1 in wall.W1 at 4' swing left
door HM-A D2 in wall.W5 at 6' past grid.2 u-hardware "BHMA set 3" swing right
window W-A WIN1 in wall.W3 at 8' sill 3'-0"
opening O1 in wall.W6 at 4' width 3' height 7'-0"
```

## `site.loft`

```loft theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/loft.json","/languages/loft-fragment.json"]}}
project "Field Office Complex"
units imperial

room name "Reception" at (grid.A + 6'-0", grid.1 + 6'-0")
```

## `types/types.loft`

```loft theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/loft.json","/languages/loft-fragment.json"]}}
units imperial

walltype EXT width 6"
walltype STUD width 4.5" note "3-5/8 stud + gyp ea side"

doortype 3070 width 3'-0" height 7'-0" u-fire-rating "20"
doortype HM-A width 3'-0" height 7'-0" u-fire-rating "90" u-hardware instance text
windowtype W-A width 4'-0" height 3'-0"
```

## `views/L1-plan.loft`

```loft theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/loft.json","/languages/loft-fragment.json"]}}
# A view owns its file — and a viewtype is an ordinary type declaration,
# so the template may sit right beside the one view that applies it.
viewtype plan A-PLAN scale 1/4" cut 4'-0"
view A-PLAN L1-plan of level.L1 name "Level 1 Floor Plan"
```

## `walls/interior.loft`

```loft theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/loft.json","/languages/loft-fragment.json"]}}
units imperial

wall STUD W5 from grid.1 to grid.3 along grid.B justify left
wall STUD W6 from grid.A to grid.B along grid.2 justify left
```

## `walls/perimeter.loft`

```loft theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/loft.json","/languages/loft-fragment.json"]}}
units imperial

wall EXT W1 from (grid.A, grid.1) to (grid.C, grid.1) justify left
wall EXT W2 from wall.W1.end to (grid.C, grid.3) justify left
wall EXT W3 from wall.W2.end to (grid.A, grid.3) justify left
wall EXT W4 from wall.W3.end to (grid.A, grid.1) justify left
```
