Brickfolio design system — Next.js
Import everything from @/design-system. Components never import @/content: data comes through props, sections map
content with src/lib/to-ui.ts. Catalog: /style-guide.
Tokens
Section titled “Tokens”| Token | Where | Values |
|---|---|---|
| Breakpoints | theme.css |
md 810 (tablet) · lg 1000 (laptop) · xl 1440 (desktop); phone is the default |
| Colours | theme.css |
ink #050505 · light #e4e4e4 · grey #8d8d8d · accent #fc5000 · white · snow #fafafa · field #bbbbbb (/15) · field-line #888888 (/10) · focus #0099ff · danger #ff2244 (/15); translucent whites and oranges are opacity modifiers (white/80 text, white/60 meta, white/10 lines, white/5 hairlines, white/3 fills; accent/80, /10, /5, /3) |
| Shadows | theme.css |
shadow-pill, shadow-pill-hover (the orange pills), shadow-card-hover (service card) |
| Easing | theme.css |
ease-spring duration-spring (Framer’s spring 500 / 60 as linear(), 714 ms) · ease-form (0.44, 0, 0.56, 1; 0.2 s) |
| Animations | theme.css |
animate-ticker, animate-ticker-up, animate-ticker-down (distance in --ticker-distance, duration set inline from the speed) · animate-turn (spinner, 1 s) |
| Text styles | tokens/text.ts |
h1 24/26/28 · h2 20/22/24 (+ accent: bold italic) · title 22/24/26 (“More Projects”, the 404 message) · h5 18/19/20 · h6 14/16/18 (all medium, 1.2) · large 16 · body 14 · small 12 · tiny 10 (1.4) · button 12 medium upper case · nav 12 upper case, 0.03 em |
| Motion | tokens/motion.ts |
spring (500 / 60, every state change) · roleSpring (200 / 40) + roleInterval 4 s · formTween · tickerSpeed (testimonials 10, logos 20, service images 5 px/s) |
| Font | app/layout.tsx |
Inter (variable, with italic) with optical size pinned to 14 on <body>; font-mono = Fragment Mono (inline code), loaded by the post page (--font-fragment-mono) |
hairline / cardSurface (components/utils/surface.ts): Framer’s 1px border drawn inside the box (an ::after), White 5 %.
Components
Section titled “Components”| Component | Group | Props | Framer |
|---|---|---|---|
Logo |
brand | href, src, label, onClick? |
header logo, 66 / 77 / 88 wide |
ActionLink |
actions | href, download? |
picks <a> or <Link> |
PillButton |
actions | href, label, variant (primary · secondary · white), download?, onClick? |
Button/Primary |
TextLink |
actions | href, label |
Button/Secondary (“Contact Me”) |
CloseButton |
actions | href, label (screen readers) |
Button/Primary, variant Close (the project and post pages) |
LoadMoreButton |
actions | label, onClick?, controls? |
Button/Load More |
NavLink |
navigation | href, label, onClick? |
Button/Menu |
MenuButton |
navigation | open, openLabel, closeLabel, controls, onClick |
Button/Hamburger |
Section, Divider |
layout | id?, label?, gap? |
a block of Home’s column; the White 10 % line |
ArticleHeader |
layout | title, facts (label, value, dateTime?), cover |
Project Title (project and post pages) |
SectionTitle |
layout | title, accent?, text?, as? (h2 · h3 · h5), textClassName? |
Title Section |
Stars |
data | rating, label |
Misc/Rating |
SocialList |
data | items (label, name, href, icon) |
Misc/Social List |
RoleTicker |
data | roles |
Slide/Text |
CardMeta |
cards | first, date, dateTime |
the cards’ meta line |
ProjectCard |
cards | project (ProjectCardData), sizes? |
Card/Project |
PostCard |
cards | post (PostCardData), sizes? |
Card/Post |
ServiceCard |
cards | service (ServiceCardData) |
Card/Service |
TestimonialCard |
cards | testimonial (TestimonialCardData) |
Card/Testimonials |
ExperienceCard |
cards | item (ExperienceData) |
Card/Experience |
Ticker |
media | speed, gap, label? |
Ticker (left), testimonials and logos |
ImageColumns |
media | images, running, speed |
Ticker/Service Image |
FaqAccordion |
patterns | items (question, answer) |
Misc/FAQ + Misc/Accordions |
LoadMoreList |
patterns | pageSize, label, className (grid) |
CMS list + Load More |
RichText |
patterns | blocks |
CMS rich text: post bodies, project description and highlights (Framer spacing 20 / 40 / 15, bullets and numbers 1.25 em in) |
Collapse |
motion | open, id? |
the accordion’s height animation |
Form, FormField, SubmitButton |
forms | see the files | the contact form, Button/Form |
NewsletterForm |
forms | action, placeholder, submitLabel, successLabel, errorLabel |
Section/Footer’s field |
MotionProvider, CurrentYear |
providers, utils | — | reduced motion, the default spring |