What is Argot?
Argot is a modular CSS toolset built for developing with modern CSS.
The era of the CSS preprocessor has essentially passed, as native CSS can do nearly everything developers once relied on preprocessors to do: variables, color manipulation, nesting, mathematical calculations, and mixins.
Argot is a toolset designed not to get in the way of modern CSS, but instead supplement your development workflow to streamline daily development, guide CSS architecture, and speed the early stages of project setup.
- Processor — resolve
@imports locally, lint, and minify to an output CSS file. - Stylesheet scaffold — create a starter CSS tree (layers, reset, primitives, semantics). Incorporates color palettes and "semantic" custom properties.
- Palette generator — turn given color "seeds" into a palettes of 16 color shades for your site.
- Semantic tokens — a shared vocabulary of intent-based custom properties, plus a browsable reference.
- Linting — run Stylelint as part of the processor workflow. Argot provides extra lint rules to guide the use of custom properties for palette primitives and semantic tokens.
Argot provides some opinions on how to best structure your custom properties, but you are not required to follow this. The processor will work no matter how you author your stylesheets; you are free to use the generated palettes however you wish; Argot does not apply its opinionated lint rules unless you opt in to them.
Use the features that are useful to you and disregard the rest.
Start here #
- Getting started — process CSS, adopt tokens, optional palette and lint.
- Installation — requirements and package entrypoints.
- Custom property structure — the three-tier model Argot is built around.