Options

Options may be set via configuration file or, in most cases, via CLI commands. Command-line arguments always override config file settings.

Processor #

These four options control the Argot processor (CLI command argot or argot process), and are specified under the processor key of the config file.

Input source #

Config CLI Type Default
processor.source 1st positional argument (<input.css>) string none (required)

File path to the entry stylesheet for processing. Relative paths resolve from the current working directory. Must end in .css.

Processor input source and output destination must both be provided via the same method (i.e. if one is passed via CLI, both must be).

Output destination #

Config CLI Type Default
processor.destination 2nd positional argument (<output.css>) string none (required)

File path where processed CSS will be written. Relative paths resolve from the current working directory. Must end in .css. Parent directories are created as needed.

Processor input source and output processor destination must both be provided via the same method (i.e. if one is passed via CLI, both must be).

Stylelint config #

Config CLI Type Default
processor.lintConfig --lint-config / -c string built-in Stylelint config

Path to a Stylelint config file. Relative paths resolve from the current working directory. When omitted, Argot uses its built-in default.

CSS minify #

Config CLI Type Default
processor.minify none boolean or "both" true

Controls whether or not processed CSS is minified using cssnano.

Valid options:

  • true — minifies processed CSS
  • false — does not minify CSS during processing
  • "both" — outputs both minified (*.min.css) and unminified (*.css) copies of processed CSS.

Scaffold directory #

Config CLI Type Default
scaffoldDirectory --directory string ./styles

Path where output files of scaffold will be written. Relative paths resolve from the current working directory.

Palette #

The following options control the palette generator when running argot palette and argot scaffold.

These are specified under the palette key of the config file. The --force and --dry-run flags documented below apply only to argot palette CLI command and cannot be set it config.

Palette output file #

Config CLI Type Default
palette.output first positional argument
for argot palette
string <scaffoldDirectory>/vars-primitive.css

Path where palette custom properties will be written. Relative paths resolve from the current working directory.

Palette seed colors #

Config CLI Type Default
palette.seedColors none array of objects []

An array of seed color definitions. Each seed color will be used to produce a scale of 16 color shades. Each seed color object contains a color and an optional name:

{
  "name": "green",
  "color": "#009366"
}

A color name will be generated if one is not provided. The resulting shades will be the name followed by a numbers 1 through 16 (e.g. green-4), with 1 near white and 16 near black.

The color value may be expressed in any valid CSS color format.

These seeds are only used during palette generation. Once you are satisfied with your site's colors, it is safe to delete them, but it may be beneficial to keep them for future reference or for redesigns.

Lightness curve #

Config CLI Type Default
palette.lightnessCurve none string uniform

Controls the lightness values of the 16 generated shades of each hue.

Valid options:

  • uniform — Uses hand-crafted lightness scales and ensures all palette hues share uniform lightness. Seed colors may be rounded slightly.
  • inclusive — Preserves seed colors and evenly spaces shades around them.
  • centered — Places seed colors at the middle of each set of shades.

See palette generator for more details.

Chroma curve #

Config CLI Type Default
palette.chromaCurve none string centered

Controls the chroma values (vividness) of the 16 generated shades of each hue.

Valid options:

  • centered — Shades near the center of the scale have the highest chroma.
  • weighted — Shades near the seed color have the highest chroma. Useful for light/pastel palettes.

See palette generator for more details.

Color format #

Config CLI Type Default
palette.format none string oklch

The color format of the generated palette CSS.

Valid options:

  • hex
  • rgb
  • hsl
  • hwb
  • oklch
  • oklab
  • lch
  • lab

Note that hex, rgb, hsl, or hwb color formats can only specify colors in the sRGB gamut; computed colors will be rounded to the nearest sRGB value. The newer color formats can express wide gamut colors; computed colors will be rounded to the nearest P3 gamut value (most hardware is not capable of displaying colors outside this range).

Force overwrite #

Config CLI Type Default
none --force
for argot palette
boolean false

The argot palette and argot scaffold commands will not overwrite existing files unless this flag is set.

Dry run #

Config CLI Type Default
none --dry-run
for argot palette
boolean false

Running argot palette --dry-run will validate your palette config and generate CSS without writing it to disc.

Semantic properties #

The following two properties control the use of Argot's semantic tokens.

Semantic output file #

Config CLI Type Default
semantics.output first positional argument
for argot semantic
string <scaffoldDirectory>/vars-semantic.css

Path where semantic custom properties will be written. Relative paths resolve from the current working directory.

Semantic token set #

Config CLI Type Default
semantics.set --set string core

Controls whether to generate the core or extended set of semantic properties.

Supported values:

  • core
  • extended