Skip to content

Commit

Permalink
doc: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
leeonon committed Sep 21, 2023
1 parent b11ae48 commit 0381a3e
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,51 @@ const result = getStyleVariable({ path: src });
console.log("result", result);
```

Input:

```ts
:root {
/* --color-red */
--color-red: "red";
--color-blue: "blue";
--color-green: "green";
--nvaHeight: 20rem;
}

body {
color: aqua;
/*body normal font size*/
--fontSize: 12px;
}

#main {
border: 1px solid black;
/*
* main color example
*/
--main-color: "yellow";
}

.name,
.age {
--age-color: #8855ff;
}

ul li {
padding: 5px;
--li-color: wheat;
}

:root {
--themeColor: #6622dd;
--aThemeColor: #8855ff;
}

```

Output Results:

```json
```ts
[
{
key: ':root--color-red',
Expand Down

0 comments on commit 0381a3e

Please sign in to comment.