From 5d2d71f46c964b860a2d1bbf14faa88b335f1d7b Mon Sep 17 00:00:00 2001 From: Mark Anthony Cianfrani Date: Sat, 2 Oct 2021 16:29:38 -0400 Subject: [PATCH] chore(docs): add selector option for css/variables format --- docs/formats.md | 3 +++ lib/common/formats.js | 1 + 2 files changed, 4 insertions(+) diff --git a/docs/formats.md b/docs/formats.md index 695ed680d..11c98de2f 100644 --- a/docs/formats.md +++ b/docs/formats.md @@ -728,6 +728,9 @@ Creates a CSS file with variable definitions based on the style dictionary [options.outputReferences]Booleanfalse

Whether or not to keep references (a -> b -> c) in the output.

+ + + [options.selector]string

Override the root css selector

diff --git a/lib/common/formats.js b/lib/common/formats.js index 9c75849cb..063b16bfe 100644 --- a/lib/common/formats.js +++ b/lib/common/formats.js @@ -32,6 +32,7 @@ module.exports = { * @param {Object} options * @param {Boolean} [options.showFileHeader=true] - Whether or not to include a comment that has the build date * @param {Boolean} [options.outputReferences=false] - Whether or not to keep [references](/#/formats?id=references-in-output-files) (a -> b -> c) in the output. + * @param {string} [options.selector] - Override the root css selector * @example * ```css * :root {