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

Theme Generator #206

Closed
TSenter opened this issue Oct 10, 2024 · 1 comment
Closed

Theme Generator #206

TSenter opened this issue Oct 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@TSenter
Copy link
Contributor

TSenter commented Oct 10, 2024

In order to currently generate a theme, a user must clone the repository, modify a file tracked by Git, generate the theme, and copy it out of an untracked directory. Users should not have to leave their current working environment to create/modify themes. Here is a rough guide for what the improved generator should look like:

  • A config file (JS) should be read from .nrg/config.js. If a config doesn't exist, it should be created.
    • autoFormat - if true, run Prettier on the generated theme file(s)
    • outputDir (required) - the location to save generated CSS to (defaults to app/styles/themes)
  • A series of theme SCSS files: .nrg/themes/<name>.scss
    • Each file specifies a new theme that can be used by setting the data-theme="<name>" attribute to any element. The name for the initial theme is light.
  • CLI commands
    • build [...name] - regenerate all (or named) themes
    • new <name> - create new theme with name <name>
@TSenter TSenter added the enhancement New feature or request label Oct 10, 2024
@KeithClinard
Copy link
Member

Resolved by:
#234
#241
#291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants