Skip to content

Generates multiple types of style files used for applying custom themes to websites

License

Notifications You must be signed in to change notification settings

DarkThemeHub/CssToStyleFiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Css-To-StyleFile

Rust

Supported file outputs

  • stylus
  • userscript (tested with ViolentMonkey)

How to build

cargo run build --release

Usage

USAGE:
    CssToStyleFiles.exe [OPTIONS] <Input> <Config>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -o, --output <Output>              Overrides default output path [default: ./Output]
    -r, --release-version <Release>    Overrides the use of version in config file

ARGS:
    <Input>     Path to css file
    <Config>    Path to config file

Example config.yaml

themeName: "The Theme Name"
namespace: "github.com/user/repo"
version: "1.0.0"
description: "Theme Description"
author: "Author Name"
homepageUrl: "https://github.com/user/repo"
supportUrl: "https://github.com/user/repo/issues"
updateUrl: "https://raw.githubusercontent.com/user/repo/master/Generated/themename.user.extension"
urlRegex: "/^https?.*/"