UI/typograhy: init typography extension

This commit is contained in:
Johannes Kirschbauer
2024-11-14 10:31:55 +01:00
parent e39461bf66
commit fca6e875a2
8 changed files with 72 additions and 8 deletions

View File

@@ -0,0 +1,20 @@
import plugin from "tailwindcss/plugin";
import { typography } from "./typography";
import theme from "tailwindcss/defaultTheme";
export default plugin.withOptions(
(_options = {}) =>
() => {
// add more base styles
},
// add configuration which is merged with the final config
() => ({
corePlugins: {
// we are using our own preflight (see above)
preflight: false,
},
theme: {
...typography,
},
}),
);