Skip to content
rafaelfachinelliPublic

About

📐 Datum, the design system of Rafael Fachinelli: W3C design tokens, seasonal themes and accessible React components (Tailwind 4, Radix, shadcn/ui).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Datum

Repository size Last commit Developed by Rafael Fachinelli License

Storybook • How it was made

Preview • About • Tasks • Run • Technologies • Author • License


👁️‍🗨️ Preview

Datum components: Button, Badge, Card, Field, Callout, RadioGroup, Select and Stat on the drafting board

ℹ️ About

📐 Datum is the design system of rafaelfachinelli.com and its tools. In technical drawing, the datum is the reference every dimension is measured from; here it is the reference for color, space and type, so every page fits.

  • Tokens in the W3C Design Tokens Community Group format: palette, dark theme, type, a 4 px spacing scale and a 2 px radius. One build turns them into CSS variables, a Tailwind 4 theme and a typed module.
  • Eight seasons: the accent and the logo colors change with the date (Carnival, Halloween, Christmas…), set before the first paint. Layout and contrast never change.
  • 14 React components (primitives and general patterns) on Radix and shadcn/ui, with the Blueprint personality on top: Button, Badge, Card, Field, Input, Select, RadioGroup, Sheet, Tooltip, Callout, Stat and more.
  • Rules in code: every text and background pair passes WCAG AA (4.5:1) in every season, or the token tests fail the build.
  • Storybook in Portuguese at design.rafaelfachinelli.com: foundations, one story per state, accessibility checks with axe, and the release notes (Novidades).

The packages are being prepared for npm as @rafaelfachinelli/datum-tokens and @rafaelfachinelli/datum-ui. How Datum was made: the article (Portuguese and English).


📝 Tasks

Click to view
State Task
✔️ Tokens in the W3C format, built to CSS, Tailwind 4 and TypeScript
✔️ Eight seasonal themes with WCAG AA contrast tests
✔️ 14 accessible React components
✔️ Storybook with foundations, one story per state and release notes
✔️ Used by rafaelfachinelli.com and its tools
❌ Published on npm

▶️ Run

You need Node.js 20+.

# Install the workspace
npm install

# Storybook on http://localhost:6006
npm run dev

# Build the tokens, the components and the Storybook
npm run build

# Token tests (contrast and season dates)
npm test
Repository layout
Path What it is
packages/tokens Design tokens, seasons and contrast tests
packages/ui React components on the token theme
apps/storybook The documentation site
docs Rules of the design system and the brand principles

🛠️ Technologies


👦 Author

Rafael Fachinelli
Rafael Fachinelli

Tech Lead and software engineer. Get in touch!

Portfolio LinkedIn GitHub E-mail


⚖️ License

This project is under the MIT license.

The license covers the code. The name Datum, the RF logo and the Blueprint visual identity (the drafting board and the seasonal themes as a brand) belong to Rafael Fachinelli and are not covered by it: use the components freely, and give your product its own name and look.

About

📐 Datum, the design system of Rafael Fachinelli: W3C design tokens, seasonal themes and accessible React components (Tailwind 4, Radix, shadcn/ui).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages