-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.fl
More file actions
31 lines (25 loc) · 729 Bytes
/
example.fl
File metadata and controls
31 lines (25 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// example.fl — Hello World for the FRAMELAB compiler
// Proves the full pipeline: tokenize → parse → emit React
component HelloCard {
surface {
fill: token(surface.raised)
radius: token(radius.card)
padding: token(space.inset.md)
state hover {
depth: 4
motion: shift(token(duration.quick), token(ease.lift))
}
stack(direction: vertical, gap: token(space.gap.md)) {
text as heading {
level: 2
content: "Hello, FRAMELAB"
color: token(color.text.primary)
weight: semibold
}
text as body {
content: "A design-first language that compiles to React."
color: token(color.text.secondary)
}
}
}
}