A way to control the initial filename, including disabling the default timestamp and changing the "-" separator.
filename: {
name: "contract",
has_timestamp: true,
timestamp_separator: "-",
}
PostCSS source code with main.css as the entry point.
If using this see the readme file in the generator folder for info on re-compiling the contract styles into a single minified CSS file.
/* from css/main.css */
@layer reset, accessibility, animated-entrances, forms;
@layer from-quill-editor, from-quill-editor-overrides;
@layer utility;
@layer signatures, buttons;
@layer modal;
@layer contract-typography;
The resulting vanilla CSS uses CSS Layers to control the specificity and precedence of the different stylesheets.
2 HTML partials for the signed and un-signed versions of the contract:
These are HTML, but an .xml extension is used to prevent some local servers from injecting code (js for live-reloading) into them when they're being fetched. HTML is a subset of XML so the syntax highlighting should work fine.
A template to make the downloadable PHP file, split in 2 files:
These are to be treated as data files by the server (so they don't use a .php extension), but the .vscode/settings.json file in this repo should tell VS Code to apply the correct syntax highlighting for PHP.
Javascript code for the signed and un-signed versions of the contract + Javascript to set up the QR code.