Initial Release — Feedback encouraged! Join the CIDM group or read the contribution guidelines. — Contribute
Install the Genentech design system theme in your existing projects.
Or copy directly from the components/public/ directory.
Copy the font files to your project's public directory:
cp -r components/public/fonts your-project/public/Copy the theme file and import it in your global styles:
cp components/public/genentech-theme.css your-project/src/styles/For Tailwind CSS v4:
/* global.css */
@import "tailwindcss";
@import "tw-animate-css"; /* optional */
@import "./genentech-theme.css";For Tailwind CSS v3 or vanilla CSS:
/* global.css */
@import "./genentech-theme.css";
/* Then add to tailwind.config.js if using v3 */Primary (Genentech Blue)
#005596
hsl(206 100% 29.4%)
Accent (Roche Light Blue)
#5cb3cc
hsl(193 53% 58%)
Secondary
#e8f4f7
hsl(193 53% 92%)
Destructive
#dc2626
hsl(0 72% 51%)
Muted
#f4f6f8
hsl(210 20% 96%)
Border
#dce4ed
hsl(214 25% 88%)
Gene Sans (Default)
The quick brown fox jumps over the lazy dog
Gene Serif
The quick brown fox jumps over the lazy dog
Gene Condensed
The quick brown fox jumps over the lazy dog
All design tokens are available as CSS custom properties. Use them in your styles:
.my-component {
background-color: hsl(var(--primary));
color: hsl(var(--primary-foreground));
border-radius: var(--radius);
font-family: var(--font-sans);
}With Tailwind CSS v4, these semantic classes are available:
| Class | Description |
|---|---|
| bg-primary | Genentech Blue background |
| text-primary | Genentech Blue text |
| bg-accent | Roche Light Blue background |
| bg-secondary | Light blue tint background |
| bg-muted | Subtle gray background |
| text-muted-foreground | Secondary text color |
| border-border | Default border color |
| bg-destructive | Error/danger background |
| font-sans | Gene Sans font |
| font-serif | Gene Serif font |