@labmgm/styles
v0.1.0
Published
Tailwind preset and base CSS for the MGM Laboratory Design System. Builds on `@labmgm/tokens` and ships self-hosted Geist + Bricolage Grotesque + Geist Mono with brand-spec defaults.
Maintainers
Readme
@labmgm/styles
Tailwind preset + base CSS for the MGM Laboratory Design System.
Install
pnpm add @labmgm/styles @labmgm/tokens tailwindcssUse
Tailwind preset
// tailwind.config.ts
import type { Config } from "tailwindcss";
import preset from "@labmgm/styles";
export default {
presets: [preset],
content: ["./src/**/*.{ts,tsx,html,mdx}"],
} satisfies Config;Base CSS
/* app/globals.css */
@import "@labmgm/styles/base.css";
@tailwind base;
@tailwind components;
@tailwind utilities;@labmgm/styles/base.css pulls in:
- The light + dark theme CSS variables from
@labmgm/tokens. - Self-hosted Geist + Bricolage Grotesque + Geist Mono
@font-facedeclarations. - A reset layered on top of Tailwind's preflight: visible focus ring, brand-coloured
::selection, body/ink defaults. - Pattern positioning helpers —
pattern-corner-*classes and apattern-dadoutility for the 8 px alternating footer band (brand spec §7.8).
Brand-spec behaviours baked into the preset
prefers-reduced-motion: reduceis honoured globally — animations collapse to ~0 ms, transitions too, smooth-scroll disabled. (Brand spec §6.4.)darkModeis configured for[data-theme='dark']so<html data-theme="dark">lights up everydark:utility.- Custom utilities:
tabular-nums,oldstyle-nums,text-balance,text-pretty.
Fonts
The variable font binaries are NOT bundled here for licensing reasons. Drop them into dist/fonts/ (see dist/fonts/README.md) or override @font-face paths in your own CSS. The Geist family is SIL OFL 1.1.
License
MIT © MGM Laboratory.
