Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate valid variable names from theme names and fix comma in output formatting #223

Closed
wants to merge 203 commits into from

Conversation

thierryc
Copy link

Description

Implemented a JavaScript regex to sanitize theme names for use as variable names:

  • Replaces spaces, hyphens, plus signs, and other invalid characters with underscores.
  • Ensures adherence to JavaScript variable naming conventions.

Addressed a missing comma in output formatting:

  • Added a comma between the "output" and "formula" elements for clarity and consistency.

Motivation

Fix output

NateBaldwinDesign and others added 30 commits December 6, 2019 15:51
Merge branch 'master' of github.com:adobe/leonardo
style: fixed issue with tabs indicator color fallback
feat: adding link to demo app in UI
style: Updated demo app to a calendar with more colors to demonstrate
style: updated styles of links
…ize-to-js-3.0.2

build(deps): bump serialize-to-js from 3.0.0 to 3.0.2
style: dropdown width override to correct width
NateBaldwinDesign and others added 17 commits August 9, 2022 15:15
* added initial form fill for contrast. WCAG 2 formula works

* added apca to bulk contrast

Co-authored-by: Nathan Baldwin <[email protected]>
…be#207)

* explicit types location

* initial commit

* rm extra whitespace

* add note for later

* verbose FIXMEs

* improve inline documentation

* adjust some inline documentation

* color string templates to provide some IDE hints

* adjust whitespace

* fix type union

* fix apca-w3 incorrectly marked as devdep

* rm unreferenced devdep

* correct import and entry paths

* "mjs" => "js" since package.json specifies "type"

* adjust test file glob

* add module declaration for chroma-js extension

* add missing oklab/oklch string types

* replace missing oklab/oklch colorspaces

* update functional notation to reflect std per MDN
…#210)

Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](minimistjs/minimist@v1.2.5...v1.2.8)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](minimistjs/minimist@v1.2.5...v1.2.8)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](minimistjs/minimist@v1.2.5...v1.2.8)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
** Commit: Generate valid variable names from theme names and fix comma in output formatting**

Implemented a JavaScript regex to sanitize theme names for use as variable names:
- Replaces spaces, hyphens, plus signs, and other invalid characters with underscores.
- Ensures adherence to JavaScript variable naming conventions.

Addressed a missing comma in output formatting:
- Added a comma between the "output" and "formula" elements for clarity and consistency.
@thierryc
Copy link
Author

Adobe CLA Signed!

@GarthDB
Copy link
Member

GarthDB commented Apr 19, 2024

Moved work to #243

@GarthDB GarthDB closed this Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.