Add fonts, autotable, autotable examples
This commit is contained in:
@@ -1420,6 +1420,14 @@ func twCompile(input, baseDir string, candidates []string) (string, int, error)
|
||||
if e != nil {
|
||||
return "", 0, e
|
||||
}
|
||||
// The preflight is written against Tailwind's compile-time CSS functions —
|
||||
// `font-family: --theme(--default-font-family, …)` and five more like it. They
|
||||
// have to be resolved here, exactly as the theme's own declarations are above.
|
||||
// Left in, `--theme(…)` reaches the browser verbatim, which cannot parse it and
|
||||
// so DROPS THE WHOLE DECLARATION: html ends up with no font-family at all and
|
||||
// falls back to the browser default, and no @theme override of --font-sans can
|
||||
// ever take effect.
|
||||
substituteFunctions(pfAst, ds)
|
||||
out = append(out, atRule("@layer", "base", pfAst...))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user