MCPcopy Create free account

hub / github.com/style-dictionary/style-dictionary / functions

Functions387 in github.com/style-dictionary/style-dictionary

↓ 39 callersFunctionconvertTokenData
(tokens, options)
lib/utils/convertTokenData.js:67
↓ 32 callersFunctionclearOutput
(outputFolder = '__tests__/__output', _fs = fs)
__tests__/__helpers.js:38
↓ 26 callersMethodadd
* @param {string} messageGroup * @param {string} message
lib/utils/groupMessages.js:36
↓ 26 callersFunctioncreateFormatArgs
({ dictionary, platform, options, file })
lib/utils/createFormatArgs.js:14
↓ 25 callersMethodbuildAllPlatforms
* @param {{ cache?: boolean }} [opts] * @returns
lib/StyleDictionary.js:939
↓ 25 callersFunctionformat
()
__tests__/StyleDictionary.test.js:980
↓ 21 callersFunctionresolve
(path, customVolumeUsed = false)
lib/resolve.js:12
↓ 14 callersFunctiondeepmerge
(target, source, dedupeArrays = true)
lib/utils/deepmerge.js:12
↓ 13 callersMethodextend
* @param {Config | string} [config] * @param {{ * mutateOriginal?: boolean, * verbosity?: LogConfig['verbosity'], * warnings?: LogCo
lib/StyleDictionary.js:186
↓ 12 callersMethodbuildPlatform
* @param {string} platform * @param {{ cache?: boolean }} [opts] * @returns
lib/StyleDictionary.js:890
↓ 11 callersFunctionusesReferences
(value)
lib/utils/references/usesReferences.js:9
↓ 10 callersFunctionfileExists
(filePath, _fs = fs)
__tests__/__helpers.js:46
↓ 9 callersMethodcount
* * @param {string} messageGroup * @returns {number}
lib/utils/groupMessages.js:65
↓ 9 callersMethodregisterFormat
* @param {Format} cfg
lib/Register.js:180
↓ 8 callersMethoddeleteExistingHook
* @param {typeof Register | Register} target * @param {keyof Hooks} hook * @param {string} name
lib/Register.js:81
↓ 8 callersFunctionregisterSuite
(opts)
__tests__/register/register.suite.js:4
↓ 8 callersMethodregisterTransform
* @param {Transform} cfg
lib/Register.js:91
↓ 8 callersMethodtoString
examples/complete/android/demo/src/main/java/com/amazon/styledictionaryexample/property/PropertyRecyclerViewAdapter.kt:46
↓ 7 callersMethodapply
(OkHttpClient.Builder builder)
examples/advanced/create-react-native-app/android/app/src/debug/java/com/createreactnativeapp/ReactNativeFlipper.java:39
↓ 7 callersMethodfetchMessages
* * @param {string} messageGroup * @returns {string[]}
lib/utils/groupMessages.js:74
↓ 7 callersFunctionfileToJSON
(_path, _fs = fs)
__tests__/__helpers.js:34
↓ 6 callersMethodclear
* @param {string} messageGroup
lib/utils/groupMessages.js:81
↓ 6 callersFunctiongetReferences
(value, tokens, opts = {}, references = [])
lib/utils/references/getReferences.js:31
↓ 5 callersFunctiondeepExtend
(objects, opts = {}, path)
lib/utils/deepExtend.js:22
↓ 5 callersFunctionfileHeader
({ file, commentStyle, formatting = {}, options = {} })
lib/common/formatHelpers/fileHeader.js:46
↓ 5 callersMethodflush
* * @param {string} messageGroup * @returns {string[]}
lib/utils/groupMessages.js:26
↓ 5 callersMethodgetPlatformConfig
* @param {string} platform * @param {{ cache?: boolean }} [opts]
lib/StyleDictionary.js:383
↓ 5 callersMethodgetPlatformTokens
* @param {string} platform * @param {{ cache?: boolean }} [opts]
lib/StyleDictionary.js:397
↓ 5 callersMethodinit
* @param {{verbosity?: LogConfig['verbosity'], warnings?: LogConfig['warnings']}} [opts] * @returns
lib/StyleDictionary.js:172
↓ 4 callersFunctionaddComment
(to_ret_token, comment, options)
lib/common/formatHelpers/createPropertyFormatter.js:36
↓ 4 callersMethodcleanPlatform
* @param {string} platform * @param {{ cache?: boolean }} [opts] * @returns
lib/StyleDictionary.js:953
↓ 4 callersFunctionconvertToDTCG
(dictionary, opts)
lib/utils/convertToDTCG.js:87
↓ 4 callersFunctioncreatePropertyFormatter
({ outputReferences = false, outputReferenceFallbacks = false, dictionary, format, formatting = {},
lib/common/formatHelpers/createPropertyFormatter.js:120
↓ 4 callersFunctionexpandTokens
(tokenMap, opts, platform)
lib/utils/expandObjectTokens.js:205
↓ 4 callersFunctionformattedVariables
({ format, dictionary, outputReferences = false, outputReferenceFallbacks, formatting = {}, themea
lib/common/formatHelpers/formattedVariables.js:50
↓ 4 callersMethodgetArrayOfProps
examples/complete/android/demo/src/main/java/com/amazon/styledictionaryexample/util/StyleDictionaryHelper.kt:86
↓ 4 callersFunctiongetTypeScriptType
(value, options)
lib/common/formatHelpers/getTypeScriptType.js:31
↓ 4 callersFunctionisDTCGColorObject
(val)
lib/common/transforms.js:71
↓ 4 callersFunctionloadFile
(filePath, vol)
lib/utils/loadFile.js:17
↓ 4 callersMethodregisterAction
* @param {Action} cfg
lib/Register.js:220
↓ 4 callersFunctionsortByReference
(tokens, { unfilteredTokens, usesDtcg } = {})
lib/common/formatHelpers/sortByReference.js:27
↓ 3 callersFunction_resolveReferences
( value, tokens, { usesDtcg = false, warnImmediately = true, // for internal usage ignor
lib/utils/references/resolveReferences.js:42
↓ 3 callersFunctionbundle
(inputString: string, _fs = fs)
docs/src/utils/rollup-bundle.ts:22
↓ 3 callersFunctioncleanFile
(file, platform = {}, vol = fs)
lib/cleanFile.js:34
↓ 3 callersFunctioncleanFiles
(platform, vol)
lib/cleanFiles.js:17
↓ 3 callersMethodexportPlatform
* Public wrapper around _exportPlatform, returns only tokens object * Here for backwards compatibility. * @deprecated use getPlatformTokens inst
lib/StyleDictionary.js:414
↓ 3 callersFunctionfixDate
()
__tests__/__helpers.js:58
↓ 3 callersMethodformatAllPlatforms
* @param {{ cache?: boolean }} [opts] * @returns
lib/StyleDictionary.js:859
↓ 3 callersMethodformatPlatform
* @param {string} platform * @param {{ cache?: boolean }} [opts]
lib/StyleDictionary.js:815
↓ 3 callersMethodgetFileData
(file: 'tokens' | 'config' | 'script' | 'output')
docs/src/components/sd-playground.ts:353
↓ 3 callersMethodgetProperty
examples/complete/android/demo/src/main/java/com/amazon/styledictionaryexample/util/StyleDictionaryHelper.kt:63
↓ 3 callersFunctiongetSelectedTheme
()
docs/src/setup.ts:54
↓ 3 callersFunctiongetTokenDimensionValue
(_val)
lib/common/transforms.js:390
↓ 3 callersFunctiongetValueByPath
(path, tokens)
lib/utils/references/getValueByPath.js:8
↓ 3 callersMethodnameToDisplay
examples/complete/android/demo/src/main/java/com/amazon/styledictionaryexample/util/StringHelper.kt:4
↓ 3 callersFunctionpreprocess
( tokens, appliedPreprocessors = [], preprocessorObj = {}, options = {}, )
lib/utils/preprocess.js:18
↓ 3 callersFunctionreadZIP
(zipBlob)
lib/utils/convertToDTCG.js:110
↓ 3 callersMethodregisterParser
* @param {Parser} cfg
lib/Register.js:298
↓ 3 callersMethodregisterTransformGroup
* @param {{ name: string; transforms: string[]; }} cfg
lib/Register.js:136
↓ 3 callersMethodremove
* @param {string} messageGroup * @param {string} message
lib/utils/groupMessages.js:51
↓ 3 callersMethodrender
()
docs/src/components/sd-playground.ts:200
↓ 3 callersFunctionresolveMap
(tokenMap, _opts)
lib/utils/resolveMap.js:22
↓ 3 callersFunctionstripMeta
(obj, options)
lib/utils/stripMeta.js:35
↓ 3 callersMethodwriteFile
(destination, output)
lib/StyleDictionary.js:899
↓ 2 callersFunctionasyncFilter
* @param {Token[]} arr * @param {Filter['filter']} predicate * @param {Config} options
lib/filterTokens.js:17
↓ 2 callersFunctionblobify
* @param {Blob|string} blobOrPath * @param {string} type
lib/utils/convertToDTCG.js:142
↓ 2 callersMethodchangeOutputs
(filePath: string, changeCurrentFile = false)
docs/src/components/sd-playground.ts:383
↓ 2 callersMethodcleanAllPlatforms
* @param {{ cache?: boolean }} [opts] * @returns
lib/StyleDictionary.js:976
↓ 2 callersFunctioncleanConsoleOutput
(str)
__integration__/_constants.js:2
↓ 2 callersFunctioncleanDir
(file, platform = {}, vol = fs)
lib/cleanDir.js:20
↓ 2 callersFunctioncleanDirs
(platform, vol)
lib/cleanDirs.js:17
↓ 2 callersFunctioncombineJSON
( arr, deep = false, collision, source = true, parsers = {}, usesDtcg, vol, )
lib/utils/combineJSON.js:45
↓ 2 callersFunctionconvertJSONToDTCG
(blobOrPath, opts)
lib/utils/convertToDTCG.js:167
↓ 2 callersFunctionconvertToBase64
(filePath, vol = fs)
lib/utils/convertToBase64.js:39
↓ 2 callersFunctionconvertZIPToDTCG
(blobOrPath, opts)
lib/utils/convertToDTCG.js:182
↓ 2 callersFunctiondeferProp
(key)
lib/transform/map.js:32
↓ 2 callersFunctiondetectDtcgSyntax
(tokens)
lib/utils/detectDtcgSyntax.js:9
↓ 2 callersFunctiondirExists
(dirPath, _fs = fs)
__tests__/__helpers.js:54
↓ 2 callersFunctiondownloadBlob
* @param {Blob} blob * @param {string} filename
lib/utils/downloadFile.js:14
↓ 2 callersFunctiondownloadZIP
(filesOrBlob, filename = 'output.zip')
lib/utils/downloadFile.js:45
↓ 2 callersFunctiondtcgToColorJS
* Convert a DTCG color object to a ColorJS Color instance * Handles 'none' values in components and alpha * @param {DTCGColorValue} dtcgColor * @re
lib/common/transforms.js:89
↓ 2 callersFunctionensureMonacoIsLoaded
( // srcPath = 'https://cdn.jsdelivr.net/npm/monaco-editor@0.29.1/dev' // <-- for debugging srcPath = 'htt
docs/src/monaco/monaco.ts:41
↓ 2 callersFunctionexpandTokenInMap
(token, tokenMap, opts, platform)
lib/utils/expandObjectTokens.js:126
↓ 2 callersFunctionexpectThrowsAsync
(method, errorMessage)
__tests__/__helpers.js:21
↓ 2 callersFunctionfilterTokens
(dictionary, filter, options = {})
lib/filterTokens.js:78
↓ 2 callersFunctionflattenTokens
(tokens, usesDtcg = false)
lib/utils/flattenTokens.js:49
↓ 2 callersMethodformatFile
* Runs the format step and collects logs * This step may also return no output if all has been filtered out * Or return no destination if no des
lib/StyleDictionary.js:639
↓ 2 callersMethodgetArrayAtPath
examples/complete/android/demo/src/main/java/com/amazon/styledictionaryexample/util/StyleDictionaryHelper.kt:49
↓ 2 callersFunctiongetColorJS
(val)
lib/common/transforms.js:178
↓ 2 callersFunctiongetColorStringFromTokenObjectValue
(tokenValue)
lib/common/transforms.js:141
↓ 2 callersFunctiongetConfigPath
* @param {BuildOptions} options
bin/style-dictionary.js:42
↓ 2 callersFunctiongetName
(path)
lib/utils/references/getName.js:8
↓ 2 callersFunctiongetPathFromName
(pathName)
lib/utils/references/getPathFromName.js:7
↓ 2 callersFunctiongetSD
* @param {string} configPath * @param {BuildOptions} options
bin/style-dictionary.js:133
↓ 2 callersFunctiongetTypeFromMap
(subtype, compositionType, expandTypesMap = {})
lib/utils/expandObjectTokens.js:59
↓ 2 callersFunctiongetViewportWidth
()
docs/src/setup.ts:24
↓ 2 callersMethodinitData
()
docs/src/components/sd-playground.ts:293
↓ 2 callersFunctionisColor
(token)
examples/advanced/tailwind-preset/config/filter.js:1
↓ 2 callersFunctionnormalizeDimensionProp
* @param {string | undefined} prop * @returns
lib/common/transforms.js:420
↓ 2 callersMethodregisterFileHeader
* @param {{name: string; fileHeader: FileHeader;}} cfg
lib/Register.js:385
next →1–100 of 387, ranked by callers