Graphite
tweakcnApache-2.0Light and dark · bothMedium · mediumNeutral · neutralMuted · mutedSerif · serifGeneral · generalLanding · landingProfessional · professional
A theme based on the Graphite color palette.
NNorthwind
Product · PricingSpecimen
Make the work feel finished
One interface, dressed in this style. Compare type, color, radius, and density.
128
Active
4.8
Score
12ms
Edge
Attribution
"Graphite" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/graphite.json @ a3b47b37cba9.
https://github.com/jnsahaj/tweakcn · r/themes/graphite.json · a3b47b37cba9 · © jnsahaj
Prompt
Design a user interface in the "Graphite" style. A theme based on the Graphite color palette. Apply these tokens to every surface. Do not invent a second palette. - Background oklch(0.9551 0 0), foreground oklch(0.3211 0 0) - Primary oklch(0.4891 0 0) on oklch(1.0000 0 0) - Accent oklch(0.8078 0 0), muted oklch(0.8853 0 0), border oklch(0.8576 0 0) - Radius 0.35rem, type Inter, sans-serif - Shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04) "Graphite" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/graphite.json @ a3b47b37cba9. powered by Styledex — https://styledex.dev
Tokens
DTCG
{
"$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
"$description": "Graphite. \"Graphite\" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/graphite.json @ a3b47b37cba9.",
"$extensions": {
"dev.styledex": {
"id": "tweakcn-graphite",
"license": "Apache-2.0",
"attribution": "\"Graphite\" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/graphite.json @ a3b47b37cba9.",
"banner": "powered by Styledex — https://styledex.dev"
}
},
"color": {
"background": {
"$type": "color",
"$value": "oklch(0.9551 0 0)"
},
"foreground": {
"$type": "color",
"$value": "oklch(0.3211 0 0)"
},
"card": {
"$type": "color",
"$value": "oklch(0.9702 0 0)"
},
"card-foreground": {
"$type": "color",
"$value": "oklch(0.3211 0 0)"
},
"primary": {
"$type": "color",
"$value": "oklch(0.4891 0 0)"
},
"primary-foreground": {
"$type": "color",
"$value": "oklch(1.0000 0 0)"
},
"secondary": {
"$type": "color",
"$value": "oklch(0.9067 0 0)"
},
"secondary-foreground": {
"$type": "color",
"$value": "oklch(0.3211 0 0)"
},
"accent": {
"$type": "color",
"$value": "oklch(0.8078 0 0)"
},
"accent-foreground": {
"$type": "color",
"$value": "oklch(0.3211 0 0)"
},
"muted": {
"$type": "color",
"$value": "oklch(0.8853 0 0)"
},
"muted-foreground": {
"$type": "color",
"$value": "oklch(0.5103 0 0)"
},
"border": {
"$type": "color",
"$value": "oklch(0.8576 0 0)"
},
"destructive": {
"$type": "color",
"$value": "oklch(0.5594 0.1900 25.8625)"
},
"ring": {
"$type": "color",
"$value": "oklch(0.4891 0 0)"
}
},
"font": {
"sans": {
"$type": "fontFamily",
"$value": [
"Inter",
"sans-serif"
]
},
"serif": {
"$type": "fontFamily",
"$value": [
"Georgia",
"serif"
]
},
"mono": {
"$type": "fontFamily",
"$value": [
"Fira Code",
"monospace"
]
}
},
"radius": {
"base": {
"$type": "dimension",
"$value": "0.35rem"
}
},
"spacing": {
"base": {
"$type": "dimension",
"$value": "0.25rem"
}
},
"shadow": {
"base": {
"$type": "shadow",
"$value": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
}
},
"dark": {
"color": {
"background": {
"$type": "color",
"$value": "oklch(0.2178 0 0)"
},
"foreground": {
"$type": "color",
"$value": "oklch(0.8853 0 0)"
},
"card": {
"$type": "color",
"$value": "oklch(0.2435 0 0)"
},
"card-foreground": {
"$type": "color",
"$value": "oklch(0.8853 0 0)"
},
"primary": {
"$type": "color",
"$value": "oklch(0.7058 0 0)"
},
"primary-foreground": {
"$type": "color",
"$value": "oklch(0.2178 0 0)"
},
"secondary": {
"$type": "color",
"$value": "oklch(0.3092 0 0)"
},
"secondary-foreground": {
"$type": "color",
"$value": "oklch(0.8853 0 0)"
},
"accent": {
"$type": "color",
"$value": "oklch(0.3715 0 0)"
},
"accent-foreground": {
"$type": "color",
"$value": "oklch(0.8853 0 0)"
},
"muted": {
"$type": "color",
"$value": "oklch(0.2850 0 0)"
},
"muted-foreground": {
"$type": "color",
"$value": "oklch(0.5999 0 0)"
},
"border": {
"$type": "color",
"$value": "oklch(0.3290 0 0)"
},
"destructive": {
"$type": "color",
"$value": "oklch(0.6591 0.1530 22.1703)"
},
"ring": {
"$type": "color",
"$value": "oklch(0.7058 0 0)"
}
}
}
}
CSS
/* powered by Styledex — https://styledex.dev */
/* "Graphite" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/graphite.json @ a3b47b37cba9. */
:root {
--background: oklch(0.9551 0 0);
--foreground: oklch(0.3211 0 0);
--card: oklch(0.9702 0 0);
--card-foreground: oklch(0.3211 0 0);
--primary: oklch(0.4891 0 0);
--primary-foreground: oklch(1.0000 0 0);
--secondary: oklch(0.9067 0 0);
--secondary-foreground: oklch(0.3211 0 0);
--accent: oklch(0.8078 0 0);
--accent-foreground: oklch(0.3211 0 0);
--muted: oklch(0.8853 0 0);
--muted-foreground: oklch(0.5103 0 0);
--border: oklch(0.8576 0 0);
--destructive: oklch(0.5594 0.1900 25.8625);
--ring: oklch(0.4891 0 0);
--radius: 0.35rem;
--font-sans: Inter, sans-serif;
--font-serif: Georgia, serif;
--font-mono: Fira Code, monospace;
--spacing: 0.25rem;
--shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
.dark {
--background: oklch(0.2178 0 0);
--foreground: oklch(0.8853 0 0);
--card: oklch(0.2435 0 0);
--card-foreground: oklch(0.8853 0 0);
--primary: oklch(0.7058 0 0);
--primary-foreground: oklch(0.2178 0 0);
--secondary: oklch(0.3092 0 0);
--secondary-foreground: oklch(0.8853 0 0);
--accent: oklch(0.3715 0 0);
--accent-foreground: oklch(0.8853 0 0);
--muted: oklch(0.2850 0 0);
--muted-foreground: oklch(0.5999 0 0);
--border: oklch(0.3290 0 0);
--destructive: oklch(0.6591 0.1530 22.1703);
--ring: oklch(0.7058 0 0);
--radius: 0.35rem;
--font-sans: Inter, sans-serif;
--font-serif: Georgia, serif;
--font-mono: Fira Code, monospace;
--spacing: 0.25rem;
--shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
Tailwind
/* powered by Styledex — https://styledex.dev */
/* "Graphite" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/graphite.json @ a3b47b37cba9. */
/** Tailwind theme extend for Graphite (tweakcn-graphite) */
module.exports = {
"theme": {
"extend": {
"colors": {
"background": "oklch(0.9551 0 0)",
"foreground": "oklch(0.3211 0 0)",
"card": "oklch(0.9702 0 0)",
"primary": "oklch(0.4891 0 0)",
"primary-foreground": "oklch(1.0000 0 0)",
"secondary": "oklch(0.9067 0 0)",
"accent": "oklch(0.8078 0 0)",
"muted": "oklch(0.8853 0 0)",
"border": "oklch(0.8576 0 0)",
"destructive": "oklch(0.5594 0.1900 25.8625)",
"ring": "oklch(0.4891 0 0)"
},
"borderRadius": {
"lg": "0.35rem"
},
"fontFamily": {
"sans": [
"Inter",
"sans-serif"
],
"serif": [
"Georgia",
"serif"
],
"mono": [
"Fira Code",
"monospace"
]
},
"boxShadow": {
"styledex": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
}
}
}
};
shadcn
/* powered by Styledex — https://styledex.dev */
/* "Graphite" from https://github.com/jnsahaj/tweakcn (Apache-2.0). © jnsahaj. r/themes/graphite.json @ a3b47b37cba9. */
@layer base {
:root {
--background: oklch(0.9551 0 0);
--foreground: oklch(0.3211 0 0);
--card: oklch(0.9702 0 0);
--card-foreground: oklch(0.3211 0 0);
--primary: oklch(0.4891 0 0);
--primary-foreground: oklch(1.0000 0 0);
--secondary: oklch(0.9067 0 0);
--secondary-foreground: oklch(0.3211 0 0);
--accent: oklch(0.8078 0 0);
--accent-foreground: oklch(0.3211 0 0);
--muted: oklch(0.8853 0 0);
--muted-foreground: oklch(0.5103 0 0);
--border: oklch(0.8576 0 0);
--destructive: oklch(0.5594 0.1900 25.8625);
--ring: oklch(0.4891 0 0);
--radius: 0.35rem;
--font-sans: Inter, sans-serif;
--font-serif: Georgia, serif;
--font-mono: Fira Code, monospace;
--spacing: 0.25rem;
--shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
.dark {
--background: oklch(0.2178 0 0);
--foreground: oklch(0.8853 0 0);
--card: oklch(0.2435 0 0);
--card-foreground: oklch(0.8853 0 0);
--primary: oklch(0.7058 0 0);
--primary-foreground: oklch(0.2178 0 0);
--secondary: oklch(0.3092 0 0);
--secondary-foreground: oklch(0.8853 0 0);
--accent: oklch(0.3715 0 0);
--accent-foreground: oklch(0.8853 0 0);
--muted: oklch(0.2850 0 0);
--muted-foreground: oklch(0.5999 0 0);
--border: oklch(0.3290 0 0);
--destructive: oklch(0.6591 0.1530 22.1703);
--ring: oklch(0.7058 0 0);
--radius: 0.35rem;
--font-sans: Inter, sans-serif;
--font-serif: Georgia, serif;
--font-mono: Fira Code, monospace;
--spacing: 0.25rem;
--shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
}