Skip to content

Commit fadaa24

Browse files
committed
update readme
1 parent 393be9e commit fadaa24

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# invert-css-variables-ui
2+
3+
A simple UI to bulk invert CSS variables.
4+
Good for creating light/dark themes - just invert the colors and you're more than likely halfway there.
5+
6+
- Uses [@invert-css](https://www.npmjs.com/package/invert-css), a package I made to invert the variables.
7+
8+
## Usage
9+
10+
Example input:
11+
12+
```bash
13+
--accent-1: #111;
14+
--accent-2: rgb(255,170,204);
15+
--accent-3: hsl(340,100%,88%);
16+
--accent-4: #FFFFFF;
17+
```
18+
19+
Example output:
20+
21+
```
22+
--accent-1: #eeeeee;
23+
--accent-2: rgb(0,85,51);
24+
--accent-3: hsl(160,100%,88%);
25+
--accent-4: #000000;
26+
```
27+
28+
- Invalid CSS variables/input will just output the invalid input. A console error will be logged.
29+
30+
## Features
31+
32+
- Maintains the variable names and output will have proper spacing.
33+
- Copy to clipboard.
34+
35+
### Supported Color Formats
36+
37+
- Hex (both short `#123` and long `#112233` formats)
38+
- RGB (`rgb(255,255,255)`)
39+
- RGBA (`rgba(255,255,255,0.5)`)
40+
- HSL (`hsl(120,100%,50%)`)
41+
- HSLA (`hsla(120,100%,50%,0.5)`)

0 commit comments

Comments
 (0)