MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / #toPascal

Method #toPascal

src/theme/builder.js:350–355  ·  view source on GitHub ↗

* * @param {string} str

(str)

Source from the content-addressed store, hash-verified

348 * @param {string} str
349 */
350 static #toPascal(str) {
351 // e.g. '--primary-color' => 'PrimaryColor'
352 return str
353 .replace(/^--/, "")
354 .replace(/-([a-z])/g, (g) => g[1].toUpperCase());
355 }
356}
357
358export function createBuiltInTheme(name, type, version = "paid") {

Callers 2

toJSONMethod · 0.80
fromCSSMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected