restructure theme css
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
// Command twcss compiles a Tailwind v4 stylesheet with kjol's native engine,
|
||||
// scanning explicit content globs for utility candidates. Unlike the app bundler
|
||||
// (which is wired to the frontend tree) it takes the entry, output, and content
|
||||
// globs as flags/args, so it works for markup authored in any language — used by
|
||||
// the kjol-website site, whose Go/WASM half writes its UI in Go.
|
||||
// Command twcss compiles a kjol app's Tailwind stylesheet with kjol's native
|
||||
// engine, scanning explicit content globs for utility candidates. Unlike the app
|
||||
// bundler (which is wired to the frontend tree) it takes the entry, output, and
|
||||
// content globs as flags/args, so it works for markup authored in any language —
|
||||
// used by the kjol-website site, whose Go/WASM half writes its UI in Go.
|
||||
//
|
||||
// It compiles via tw.CompileAppFiles, so the -entry stylesheet is layered onto
|
||||
// kjol's shared extension layer: base Tailwind → kjol extensions → this stylesheet.
|
||||
// The entry therefore carries only brand and names none of the shared tokens.
|
||||
//
|
||||
// Usage (globs are relative to -base; pass "**" for a recursive walk):
|
||||
//
|
||||
@@ -32,7 +36,7 @@ func main() {
|
||||
fmt.Fprintln(os.Stderr, "twcss:", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
css, err := tw.CompileFiles(string(src), *base, flag.Args())
|
||||
css, err := tw.CompileAppFiles(string(src), *base, flag.Args())
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, "twcss:", err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user