mirror of
https://github.com/bitbaum/solon.git
synced 2026-12-04 05:07:04 +01:00
The tokens were hand-copied into three repos and drifted: Solon's globals.css
carried a comment claiming it matched OrangeCat's while sharing zero names or
values with it. Copies drift; imports cannot. So the tokens now live in one
place — @fleet/design-tokens — and Solon imports them.
- globals.css goes from 168 lines to a comment and `height: 100%`
- tailwind.config.js maps nothing; it consumes the shared preset
- the package owns the self-hosted faces too, so changing the display
typeface for all three products is one line in one file
Display face is now Instrument Serif. Every AI and infra company competes
inside the same dark-canvas grotesque, where the winner is whoever has the
biggest design budget; a high-contrast serif exits that comparison and reads
institutional, which is what a product whose output is *legitimacy* should
look like.
Two rules fell out of actually looking at it, both now enforced by
design:check rather than remembered:
- the face has ONE weight, so `font-bold` next to `font-display` would make
the browser synthesize a fake bold. Weight and tracking are declared with
the face in the package, so a future face swap stays one line.
- a high-contrast serif goes weak as it shrinks: at 18px the card titles
rendered LIGHTER than the 16px body under them and the hierarchy
inverted. Display type starts at text-2xl; below that, sans at 600. The
uppercase, open-tracked wordmark is the one sanctioned exception.
Verified: design:check (incl. a negative test that the new rules fire),
typecheck, build, and a local prod render of the hero, cards and auth error.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
34 lines
1.0 KiB
JavaScript
34 lines
1.0 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
|
|
// The colour/typography/geometry scales come from the shared preset, which maps
|
|
// every utility onto a CSS var owned by @fleet/design-tokens. Nothing visual is
|
|
// defined here — if you find yourself adding a colour or a font below, it almost
|
|
// certainly belongs in the token package so all three products get it.
|
|
module.exports = {
|
|
presets: [require("@fleet/design-tokens/tailwind-preset")],
|
|
content: [
|
|
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
|
|
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
],
|
|
theme: {
|
|
extend: {
|
|
animation: {
|
|
"fade-in": "fadeIn 0.5s ease-in-out",
|
|
"slide-up": "slideUp 0.3s ease-out",
|
|
},
|
|
keyframes: {
|
|
fadeIn: {
|
|
"0%": { opacity: "0" },
|
|
"100%": { opacity: "1" },
|
|
},
|
|
slideUp: {
|
|
"0%": { transform: "translateY(10px)", opacity: "0" },
|
|
"100%": { transform: "translateY(0)", opacity: "1" },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
};
|