Open Food Facts design system e guia de estilo DESIGN.md
ConsumerProv1.0.0 (Mais recente)A non-profit food-products database built on warm cream grounds and a warm near-black, with a coral accent that carries the entire donation argument, Public Sans as the only family at a 14px root, an 8px workhorse radius beside 1000px pills, one shadow on the product cards, and headings set at regular weight.
Você pode ler gratuitamente a narrativa de design completa e até 8 cores principais de Open Food Facts. Assine o Pro para acessar todos os 95 design tokens, downloads completos de DESIGN.md e 1 revisões.
Assine o DesignMD Pro para copiar todas as cores como :root variáveis CSS, inspecionar referências de tokens de componentes e baixar o arquivo completo.
Diretrizes de design
Overview
Open Food Facts is a non-profit database of food products, and its world portal is a working tool dressed as a campaign page. A dark utility bar and a cream header sit above a coral-edged hero that asks for money in the largest type on the site; below it two illustrated panels introduce the project, then a dark product bar hands over to an enormous grid of product cards that is the page's real content. A dark app-install band, a repeat of the donation panel and a footer close it.
The page is built on warm neutrals, one coral accent, one family and one shadow. The grounds are all warm — a cream header, a deeper cream nav, a paler cream panel, and a warm near-black for the bars. The coral #ff6e78 appears only in the donation panel: its heading, its progress bar, its button and its arrow. Everything else is restrained. The measured shadow list contains exactly one value, and it is used fifty times, all on the product cards.
The personality is civic and warm. This is a volunteer-run non-profit, and the page reads like one: the donation ask is unmissable but not desperate, the illustrations are flat vector with thick outlines, and the product grid is presented as a public resource rather than as a catalogue.
The emotional register is earnest and matter-of-fact. "WE STILL NEED €120,000 TO FINISH 2026!" is the loudest sentence on the page and it is set in a flat blue banner with no gradient and no urgency device. The number does the work.
Colors
primary#ff6e78— a coral pink, and the system's one accent. It is confined to the donation panel: the "Become an Open Food Facts patron" heading, the progress bar, the "I SUPPORT" button and the curved arrow that points at the team photograph. It is the only saturated colour in the chrome and its restriction to a single panel is the page's most disciplined colour decision — the coral is the sound of the ask, and nothing else is allowed to make that sound.night#201a17— a warm near-black, and the page's framing colour. It grounds the top utility bar, the donation panel, the product bar, the app-install band and the footer. Twenty measured background uses make it the second most common ground after white, and its warmth is what keeps a page with this much dark area from feeling cold.cream#ede0db— a warm cream, and the header's ground. It is the site's signature neutral: not white, not grey, and warm enough to sit beside the coral without fighting it.cream-deep#f2e9e4— a deeper cream, and the navigation bar's ground, a step below the header so the two bars read as separate bands.cream-pale#f6f3f0— a paler cream, and the ground of the lighter panels, a step above the page white.bark#341100— a very dark warm brown, and the fill of the two most important controls: the search button and the "GET THE APP" button. It is darker thannightand warmer than it, and using it for actions rather thannightis what makes those buttons read as objects rather than as bars.surface#ffffff— pure white, and the ground of the product cards and the "Learn more" pills.ink#000000— pure black, and the body text on light grounds, with 75 measured uses.ink-warm#222222— a soft near-black, and the heading and list colour.slate#333333— a dark grey, and the control and link colour, with 26 measured uses.
The overall character is warm cream, warm near-black, dark brown and one coral. There is no cool grey anywhere, no blue in the chrome, and no gradient. The illustrations carry their own palette — the globe's teal and the jigsaw's golden yellow #f5c100 and orange #ef7e1a — and those are artwork, not interface.
Typography
One family. Public Sans sets every piece of type on the page — 122 measured uses — with Material Icons carrying the glyphs. There is no display face, no serif and no monospace.
The most distinctive typographic decision is that the headings are set at regular weight. The 31px section headings are weight 400, and only the 18px sub-headings step up to 600. On a page this content-heavy that is the right answer: a 31px heading at regular weight in a near-black still reads as a heading, and it lets the coral donation ask be the only thing that shouts.
The second decision is the 14px root. The document is set at font-size: 14px and every size and space is rem-based, which is why the whole page measures small: the body is 14px, the controls are 13px, the captions are 10px, and the spacing values include 2.8px, 4px, 5px and 10.5px — all exact rem multiples. Knowing the rem basis matters, because the entire system rescales with the root and the relationships, not the pixel values, are the design.
The scale itself is unusually compressed: 31px, 18px, 16px, 14px, 13px and 10px. There is nothing between 18px and 31px, and the gap between the largest heading and the body is barely two to one. Leading is a uniform 1.4 on headings and controls and 1.6 on body copy. Nothing is italic and nothing is tracked.
display31px/400 — the section headings, "Discover", "Contribute", "Scan a product", at 1.4 leading.heading18px/600 — the sub-headings, "Join the community", "Discover the project".body14px/400 — the paragraphs, list items and inline links, at 1.6 leading.control13px/400 — the button and navigation labels, at 1.4 leading.control-lg16px/400 — the "GET THE APP" and "I SUPPORT" labels.caption10px/700 — the smallest labels, the only place weight 700 appears.
Layout
The page is a centred column at 1280px, used nine times and clearly the house container, with the dark bars and the app-install band running full-bleed to the 1440px window.
The vertical and horizontal scale is rem-based at 14px and dominated by two values: 10px with 250 measured uses and 2.8px with 208. They are followed by 4px (200), 12px (165), 8px (116), 5px (108), 7px (63), 10.5px (36) and 15px (29), with 28px (13), 21px (7) and 35px (2) carrying the section rhythm. The near-total dominance of a single 10px value — a quarter of all measured spacing — is the page's most distinctive layout decision, and it is what gives a page with a hundred product cards a single uniform pulse.
The structure is a strict vertical stack of alternating grounds: dark utility bar → cream header → cream nav → coral-edged donation panel → two illustrated panels → dark product bar → white card grid → dark app band → donation panel again → footer. The grounds alternate warm-cream and warm-dark with almost no transition, and the two full-bleed dark bands are placed exactly where the page needs to change gear.
The donation panel is the page's one composed moment and it is asymmetric: a blue banner and a team photograph on the left, the coral heading, a five-item bullet list, a progress bar and the "I SUPPORT" pill on the right. It is the only place on the page where a single panel carries a complete argument, and it appears twice — at the top, where it interrupts the hero, and again at the foot, where it closes it.
The product grid is the page's real content and it is ruthlessly regular: white cards at 8px radius, four across, each with a product image, a name, a quantity and a row of small coloured indicators. The grid repeats more than twenty times down the page, and its regularity is what makes the donation panel above it feel like an interruption rather than like a decoration.
Elevation & Depth
The page has exactly one shadow, used fifty times. A measured rgba(0, 0, 0, 0.25) 0px 4px 4px 0px appears on every product card and on nothing else — no button, no panel, no bar, no input.
This is a precise and unusual answer. One elevation level, applied to one component family, is what a working database needs: the cards are objects that sit on a surface, and everything else is a ground or a control. There is no second shadow level, no hover lift and no inset.
Depth is otherwise created entirely by ground changes — cream against near-black, near-black against white, white cards against a pale ground — and by the coral border that frames the donation panel, which is the only decorative edge on the page.
The consequence is that the product cards are the only things on the page that feel physical, and they are the page's bulk. Everything else — the bars, the panels, the buttons — is flat. That division is exactly right: the content is a shelf of objects, and the chrome is a building.
Shapes
The shape system is one workhorse radius and one pill.
md8px — the workhorse, with 115 measured uses. The product cards, the "GET THE APP" button, the search button and the panels all carry it. At 115 uses it is by a wide margin the most common value on the page, and its uniformity is what makes a page with three component families feel like one system.pill1000px — every capsule on the page, with eight measured uses: the search field, the "Sign in" button, the "Learn more" buttons, the sort and filter dropdowns, and the "I SUPPORT" button. The pill is reserved for controls that sit inline in a bar or a list.sm5px — the smallest controls, with two measured uses.
The search group is the page's one shape idea: the field and its button are asymmetric pills — 1000px 0 0 1000px on the field and 0 1000px 1000px 0 on the button — so that together they form a single capsule with a square seam where they meet. Two further asymmetric pills appear once each. A 28px radius and a 14px radius each appear once, and seven elements are fully round at 50%.
The relationship is simple: cards and block buttons are 8px, inline controls are pills, and the search group is two half-pills. There are no squircles and nothing between 8px and 1000px.
Motion & Micro-interaction
Motion is one primitive, used thirty-two times.
- 300ms
ease-outonbackground-color(32 instances). This is the house transition and it governs every interactive state change on the page — link hovers, button hovers, card hovers, dropdown openers.
Four further transitions appear once each — a 1s ease-out on top, a 0.3s ease on all, a 0.3s ease-out on left, and a 0.5s ease on transform — and they belong to the page's one moving element, the sticky product bar that follows the scroll. Treat 300ms ease-out as the default for every state change and reserve the slower curves for the sticky bar alone.
There are no keyframe loops on the page's chrome, no parallax, no counters and no carousel. The illustrations have their own animation — a rotating globe and a bumping tag — but those are artwork, not interface.
Voice & Content Strategy
The voice is civic, plain and unembarrassed about asking. The donation banner states the need in eight words — "WE STILL NEED €120,000 TO FINISH 2026!" — and the panel beneath it itemises exactly what the money does: "keeping our database open and available to all, technical infrastructure (website/mobile app) and a small permanent team, remain independent of the food industry, engage a community of committed citizens, support the advancement of public health research." The progress bar reports the truth to the euro: "€55,326 of €170,000 · 33%" and "€114,674 short."
The closing line of the panel is the page's best sentence and it is a bargain rather than a plea: "If every visitor this month clicked on Donate and gave just 1€, we'd get over 8 times our yearly budget!"
The two project panels explain the product in the register of a public library. "Open Food Facts is a food products database made by everyone, for everyone. You can use it to make better food choices, and as it is open data, anyone can re-use it for any purpose." The contribute panel names the mechanism directly: "You can start contributing by adding a product from your kitchen with our app for iPhone or Android."
The product bar reports scale with a live number — 4,936,932 products — and offers two ways in: "Most scanned products" and "Explore products by". The footer closes with "Join the community", "Discover the project" and a one-line description of the association.
There is no testimonial, no logo wall, no press mention and no pricing. The page's only persuasion is its own usefulness and one very direct ask.
Components
cta-support— the donation button. A 1000px-radius capsule filled withprimary#ff6e78, 38px tall, with 7px 28px padding and a white Public Sans 16px/400 label. Label: "I SUPPORT". It is the only coral control on the page and the loudest object in the layout.cta-app— the app-install button. An 8px-radius rectangle filled withbark#341100, 36px tall, with 2.8px 15px padding and a white 16px/400 label, preceded by a phone glyph. Label: "GET THE APP". It appears in the header and in the app band.cta-search— the search button. An 8px-radius square filled withbark, 33px tall, with 5.6px 7px padding, carrying a magnifier glyph. It is the right half of the search capsule.cta-learn— the quiet link-button. A 1000px-radius capsule filled withsurfacewhite, 38px tall, with 7px 10.5px padding and aslate13px/400 label, preceded by a book glyph. Labels: "Learn more about Open Food Facts", "Learn more about how you can join us".chip— the inline control. A 1000px-radius capsule filled withcream#ede0db, 38px tall, with 7px 10.5px padding and aslate13px/400 label, preceded by a glyph. Labels: "Most scanned products", "Explore products by", "Edit your preferences".chip-signin— the smaller chip. The same cream fill and 1000px radius at only 28px tall, with 2.8px 15px padding, preceded by an account glyph. Label: "Sign in". It sits in the dark top bar, where its cream fill is the only light object.search-field— the product search. A white input, 33px tall, with a 1px#ccccccborder, a1000px 0 0 1000pxradius and a 14px/400inklabel. Placeholder: "Search for a product". With its button it forms one capsule.product-card— the grid cell. A white 8px-radius rectangle carrying the page's one shadow, holding a product image, a name, a quantity and a row of small indicators. It repeats more than twenty times and it is the only elevated object in the system.top-bar— the utility bar. A full-bleednightband carrying the world and language selectors and the sign-in chip.header-bar— the main header. A full-bleedcreamband carrying the wordmark, the search group, the primary navigation and the app button.nav-bar— the navigation strip. A full-bleedcream-deepband, a step below the header, carrying "Discover" and "Contribute".patron-band— the donation panel. Anightpanel framed by a coral border, carrying the blue need banner, the team photograph, the coral heading, the five-item list, the progress bar and the support pill. It is the page's one composed argument and it appears twice.panel-pale— the lighter panel. Acream-paleground used for the paler of the two project panels.product-bar— the sticky product bar. A full-bleednightband carrying the live product count and the two sort chips. It is the page's one sticky element and the only one that moves on scroll.footer-bar— the closing bands. A light community and project area above a full-bleednightbar carrying the association's one-line description.heading-display/heading-section— the 31px/400 and 18px/600 Public Sans headings inink-warm. The regular weight on the larger size is the system's signature decision.heading-patron— the donation heading, the one placedisplaysize is set inprimarycoral.body-copy— the 14px/400 paragraphs inink, at 1.6 leading.list-item— the 14px/400 list items inink-warm.nav-link— the 13px/400 navigation labels inslate.link-body— the inline links, inbark#341100— the only place the dark brown is used as a text colour.caption-label— the 10px/700 labels, the only place weight 700 appears.
Do's and Don'ts
- Do keep every ground warm.
night,cream,cream-deep,cream-paleandbarkare all warm, and a single cool grey would immediately cost the page its character. - Do confine
primary#ff6e78to the donation panel. The coral is the sound of the ask — its heading, its progress bar, its button, its arrow — and nothing else on the page may make that sound. - Do set headings at regular weight. 31px/400 and 18px/600 is the system's whole weight scale, and it is what lets the coral ask be the only thing that shouts.
- Do keep the root at 14px and let every value be a rem multiple. The 2.8px, 4px, 5px and 10.5px measurements are not noise; they are the scale.
- Do use 10px as the default spacing value. It has 250 measured uses and it is the page's uniform pulse.
- Do use 8px for every card and block button, and reserve the 1000px pill for inline controls. The two radii never swap jobs.
- Do build the search group as two asymmetric half-pills —
1000px 0 0 1000pxand0 1000px 1000px 0— so the field and button read as one capsule with a square seam. - Do apply the one shadow to the product cards and to nothing else.
rgba(0, 0, 0, 0.25) 0 4px 4px 0is the system's only elevation level. - Do use
bark#341100for actions rather thannight. The two are close in value, and reserving the warmer, darker one for buttons is what makes them read as objects rather than as bars. - Do default every state change to 300ms
ease-outonbackground-color, and reserve the slower curves for the sticky product bar. - Do know that the support button is the page's one flagged contrast case and treat it as the documented exception: white on
primary#ff6e78measures 2.71:1, below the 4.5:1 AA minimum for its 16px/400 label. This is the site's own measured pairing, and the coral heading on thenightpanel above it measures 6.35:1 and needs no change. If compliance is the priority over fidelity, darkenprimarytoward#e04f5afor the button fill only and leave the heading and the progress bar alone. - Don't add a second accent. There is one coral, and the illustrations' teal, golden yellow and orange are artwork, not chrome.
- Don't bold the headings. Weight 700 appears exactly once in the system, on the 10px caption.
- Don't add a display face or a serif. Public Sans and Material Icons are the whole system.
- Don't add a second shadow level, a hover lift, a glow or a gradient. The page has exactly one elevation value.
- Don't round the product cards beyond 8px, and don't put a pill on a card.
- Don't cool the neutrals, and don't introduce a blue into the chrome — the only blue on the page is the donation banner, and it is a single flat fill.
- Don't add scroll animations, parallax or counters to the chrome. The only moving element is the sticky product bar.
Como usar o DESIGN.md de Open Food Facts com um agente de IA
Obtenha o DESIGN.md de Open Food Facts
Busque em https://www.designmdpro.app/websites/open-food-facts.md ou chame a ferramenta get_design_md com o slug "open-food-facts" no MCP server do DesignMD Pro para obter a versão pública. O conjunto completo de tokens exige Pro.
Salve como DESIGN.md na raiz do projeto
Coloque o arquivo ao lado de AGENTS.md ou CLAUDE.md para que Claude Code, Cursor, Codex e outros agentes de programação o encontrem.
Peça ao seu agente para segui-lo
Por exemplo: "Construa a página de configurações seguindo o design system de Open Food Facts em DESIGN.md — use seus tokens de cores, tipografia e espaçamento."
Prompt de IA no estilo de Open Food Facts
Construa uma landing page responsiva no estilo visual de Open Food Facts (world.openfoodfacts.org), seguindo seu design system DESIGN.md.
## Cores
- ink: #000000
- bark: #341100
- cream: #EDE0DB
- night: #201A17
- slate: #333333
- primary: #FF6E78
- surface: #FFFFFF
- ink-warm: #222222
## Tipografia
- body: "Public Sans", 14px, weight 400, line-height 1.6, letter-spacing 0em
- caption: "Public Sans", 10px, weight 700, line-height 1.5, letter-spacing 0em
## Raio de borda
- md: 8px
- sm: 5px
- pill: 1000px
## Regras
- Use apenas as cores acima para fundos, textos, bordas e destaques; não invente novas cores.
- Aplique os estilos tipográficos acima em todo o texto e preserve a hierarquia de tamanhos e pesos.
- Use os raios de borda e espaçamentos das escalas acima para manter os componentes consistentes.
DESIGN.md completo: https://www.designmdpro.app/websites/open-food-facts.mdPersonalizar no gerador de prompt v0 →Perguntas frequentes
Qual é a cor primária de Open Food Facts?
A cor primária da marca Open Food Facts é Coral (#FF6E78). Seu DESIGN.md define 10 tokens de cor no total.
Qual fonte Open Food Facts utiliza?
Open Food Facts usa Public Sans como fonte principal.
Public Sans é uma fonte gratuita?
Sim. Public Sans é gratuita e open source, disponível no Google Fonts.
Como usar os design tokens de Open Food Facts no Tailwind CSS ou shadcn/ui?
A cor primária de Open Food Facts (#FF6E78) é pública nesta página. Gerar um tema completo para Tailwind ou shadcn requer o DESIGN.md integral, disponível no DesignMD Pro.
Este DESIGN.md de Open Food Facts é oficial?
Não. O DesignMD Pro o extraiu do site público world.openfoodfacts.org. Não há afiliação nem endosso por parte de Open Food Facts.
Quando o DESIGN.md de Open Food Facts foi atualizado pela última vez?
A versão 1.0.0 foi capturada em 28 de novembro de 2026.
Open Food Facts e suas marcas registradas pertencem aos respectivos proprietários. DesignMD Pro é um projeto independente, sem afiliação nem endosso de Open Food Facts; este DESIGN.md foi extraído do site público apenas para referência.