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

Integrate with FirefoxCSS store #34

Open
7 tasks
gwennlbh opened this issue Jul 10, 2021 · 0 comments
Open
7 tasks

Integrate with FirefoxCSS store #34

gwennlbh opened this issue Jul 10, 2021 · 0 comments
Assignees
Milestone

Comments

@gwennlbh
Copy link
Owner

gwennlbh commented Jul 10, 2021

URL: https://firefoxcss-store.github.io/

The registry for FirefoxCSS Store is located in a JSON file, themes.json

Maybe add a theme browser in the CLI that pulls from that?

Either way, add a command ffcss pull that:

  1. reads themes from that JSON file (using the URL)
  2. checks if slug.Slug(theme["title"]) + ".yaml" is already in the registry.
  3. if it isn't:
    1. ffcss use it with theme["link"] Note: links that have /tree/master/... need to be handled: if there's multiple themes with links that only differ after /tree/, it means that they are variants of each other
  4. If it is: warn the user that a theme wasn't added because it conflicts with an installed theme (and name it)

Maybe contact Neikon to talk about it: An optional ffcss_name entry in the JSON could be added to show sth. like

$ ffcss use <ffcss_name>    (?)

below the themes' cards

(and when you hover over the (?) icon, it tells sth like “This theme can be installed on the command line using ffcss”)

  • Make a PR for that!
  • Parse \nCompatibility: V89+ in theme["description"] into a FirefoxVersionConstraint
@gwennlbh gwennlbh added this to the 1.0.0 milestone Jul 10, 2021
@gwennlbh gwennlbh self-assigned this Jul 10, 2021
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

No branches or pull requests

1 participant