Skip to content

Commit 7eeca6d

Browse files
committed
docs: add faq
1 parent b3c7d68 commit 7eeca6d

File tree

4 files changed

+33
-60
lines changed

4 files changed

+33
-60
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ node_modules
55
.turbo
66
dist
77
out
8-
.DS_Store
8+
.DS_Store
9+
10+
./packages/vscode-css-variables/README.md

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,34 @@ You can easily knows where the variable coming from by hold Alt/Cmd and click to
5454

5555
<img src="https://github.com/vunguyentuan/vscode-css-variables/raw/master/demo/goto-definition-trim.gif" alt="" />
5656

57+
## FAQ
58+
### I want to add files in `node_modules` folder
59+
*.vscode/settings.json*
60+
```json
61+
{
62+
"cssVariables.lookupFiles": [
63+
"**/*.css",
64+
"**/*.scss",
65+
"**/*.sass",
66+
"**/*.less",
67+
// if you want to include files in node_modules
68+
"node_modules/open-props/open-props.min.css"
69+
]
70+
}
71+
```
72+
73+
### I want to add files from public url, CDN
74+
*src/style.css*
75+
```css
76+
@import 'https://cdn.jsdelivr.net/gh/KunalTanwar/tailwind-colors/dist/css/colors.min.css';
77+
78+
body {
79+
color: var(--indigo-50);
80+
}
81+
82+
...
83+
```
84+
85+
### Example source code https://github.com/vunguyentuan/test-css-var
5786
## Full demo
5887
![Demo](https://github.com/vunguyentuan/vscode-css-variables/raw/master/demo/demo.v2.3.0.gif)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dev": "turbo run dev",
1313
"package": "turbo run package",
1414
"deploy": "turbo run deploy",
15-
"release": "npm run build && changeset publish"
15+
"release": "cp README.md packages/vscode-css-variables/README.md && npm run build && changeset publish"
1616
},
1717
"devDependencies": {
1818
"@changesets/cli": "^2.24.3",

packages/vscode-css-variables/README.md

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)