Configuration file
You can configure Argot by providing a configuration file. This is optional, but allows for more controls than the CLI alone. Provide the config via:
- An
argotkey in yourpackage.jsonfile - A
.argot.json,argot.json,.argotrc.json, orargot.config.jsonfile
At this time, only JSON files are supported.
CLI flags, when given, always take precedence over configuration file settings.
Example .argot.json #
Example shape:
{
"processor": {
"source": "styles/styles.css",
"destination": "dist/styles.css",
"lintConfig": "stylelint.config.js",
"minify": true
},
"scaffoldDirectory": "styles",
"palette": {
"output": "styles/primitives.css",
"seedColors": [
{
"name": "gray",
"color": "lch(66% 0.01 242deg)"
},
{
"name": "green",
"color": "#009366"
}
],
"lightnessCurve": "uniform",
"chromaCurve": "centered",
"format": "oklch"
},
"semantics": {
"output": "styles/semantics.css",
"set": "core"
}
}
All fields are optional, but CLI commands may require some values as command-line arguments if not provided in your config file.
Options are grouped under the feature they affect. Note that scaffolding uses
both palette and semantics, so options from those sections are used when running
argot scaffold.
See Configuration options for explanation of all options.