Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/darkthemehub/csstostylefiles

Generates multiple types of style files used for applying custom themes to websites
https://github.com/darkthemehub/csstostylefiles

generator rust stylus stylus-theme themes userscript violentmonkey

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# Css-To-StyleFile

[![Rust](https://github.com/Snazzie/CssToStyleFiles/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/Snazzie/CssToStyleFiles/actions/workflows/rust.yml)

## Supported file outputs
* stylus
* userscript (tested with ViolentMonkey)

## How to build

`cargo run build --release`

## Usage

```
USAGE:
CssToStyleFiles.exe [OPTIONS]

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

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

ARGS:
Path to css file
Path to config file
```

#### Example config.yaml

```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?.*/"
```