Skip to content

Certificate of Completion

A landscape certificate with nested decorative borders and centred typography, driven entirely by sys.inputs params.

/*javasculpt-params
# A standalone parametric document (not a doc-gen script): its params come in
# individually as sys.inputs.<name>, not bundled in a `data` JSON. Every value
# passed via --input arrives as a STRING, so numbers/dates are read as text.
- name: recipient
type: text
caption: Recipient name
default: "Jordan Rivera"
- name: achievement
type: text
caption: Awarded for
default: "Completion of the Seasonal Floristry Masterclass"
- name: issued_on
type: date
caption: Date issued
default: "2026-06-15"
- name: issuer
type: text
caption: Issuing organisation
default: "Fabrikam Florals"
- name: signatory
type: text
caption: Signatory
default: "Alex Bloom, Lead Florist"
- name: accent
type: color
caption: Accent colour
default: "#1f3a5f"
*/
// ── Example: certificate of completion ─────────────────────────────────────
// Reads its fields straight from sys.inputs.<name>. Landscape A4, nested
// borders, centred typography. Business identity is fictional (Fabrikam
// Florals / .example) — never a real business.
#let accent = rgb(sys.inputs.at("accent", default: "#1f3a5f"))
#let gold = rgb("#c9a227")
#set page(
paper: "a4",
flipped: true,
margin: 18mm,
fill: white,
)
#set text(font: ("Libertinus Serif", "DejaVu Serif"), fill: luma(30))
#set align(center)
// Nested decorative border.
#block(
width: 100%,
height: 100%,
stroke: 2pt + accent,
inset: 6mm,
)[
#block(
width: 100%,
height: 100%,
stroke: 0.75pt + gold,
inset: (x: 14mm, y: 12mm),
)[
#v(1fr)
#text(size: 13pt, tracking: 4pt, fill: accent)[C E R T I F I C A T E]
#v(0.4em)
#text(size: 10pt, tracking: 2pt, fill: luma(120))[OF COMPLETION]
#v(2.2em)
#text(size: 11pt, fill: luma(110))[This certificate is proudly presented to]
#v(0.8em)
#text(size: 30pt, weight: "bold", fill: accent)[#sys.inputs.recipient]
#v(0.4em)
#line(length: 40%, stroke: 0.75pt + gold)
#v(1.4em)
#block(width: 70%)[
#text(size: 12pt, fill: luma(90))[#sys.inputs.achievement]
]
#v(1fr)
#grid(
columns: (1fr, 1fr),
column-gutter: 6em,
align: center,
[
#text(size: 12pt, weight: "bold")[#sys.inputs.issued_on]
#v(0.2em)
#line(length: 100%, stroke: 0.6pt + luma(150))
#v(0.2em)
#text(size: 9pt, fill: luma(120))[Date]
],
[
#text(size: 12pt, weight: "bold", font: ("Libertinus Serif", "DejaVu Serif"))[#sys.inputs.signatory]
#v(0.2em)
#line(length: 100%, stroke: 0.6pt + luma(150))
#v(0.2em)
#text(size: 9pt, fill: luma(120))[#sys.inputs.issuer]
],
)
#v(1.2em)
]
]