Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fantasyui-com/larceny
Transport select remote CSS declarations into the rule of a local css file (Select and inject remote CSS code into your local CSS file). [CLI, CSS, Web Design, PostCSS]
https://github.com/fantasyui-com/larceny
cli npx postcss
Last synced: 1 day ago
JSON representation
Transport select remote CSS declarations into the rule of a local css file (Select and inject remote CSS code into your local CSS file). [CLI, CSS, Web Design, PostCSS]
- Host: GitHub
- URL: https://github.com/fantasyui-com/larceny
- Owner: fantasyui-com
- License: gpl-3.0
- Created: 2017-07-27T18:02:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-22T18:16:19.000Z (21 days ago)
- Last Synced: 2024-12-22T19:28:51.457Z (21 days ago)
- Topics: cli, npx, postcss
- Language: JavaScript
- Homepage:
- Size: 329 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# larceny
Command line interface to PostCSS theft plugin.## NPX
```Bash
$ npx larceny -ca -u https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css -s .btn -t .my-button -f my-style.css
```
## NPM -g Installation
```Bash
$ npm -g install larceny
```
## Prepare a CSS file (optional if -ca is used)
You can skip this step if you use ```-c``` to create target file and ```-a``` to append then missing .my-button target selector.
```Bash
$ echo '.my-button {}' > style.css
```
## Perpetrate Larceny <3```Bash
$ larceny -u https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css -s .btn -t .my-button -f style.css
```
## The perfect crime.
```Bash
$ cat style.css
.my-button {
display: inline-block;
font-weight: 400;
line-height: 1.25;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border: 1px solid transparent;
padding: .5rem 1rem;
font-size: 1rem;
border-radius: .25rem;
-webkit-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}```
## Usage
```
-V, --version output the version number
-u, --url [url] Url of remote file.
-s, --source-selector [selector] Source selector
-t, --target-selector [selector] Target selector (in local file)
-f, --file [path] Add the specified type of cheese [styles.css]
-c, --create-file Create css file if it does not exist
-a, --append-target Create target selector if missing
-h, --help output usage information```