File tree Expand file tree Collapse file tree 4 files changed +33
-60
lines changed
packages/vscode-css-variables Expand file tree Collapse file tree 4 files changed +33
-60
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,6 @@ node_modules
5
5
.turbo
6
6
dist
7
7
out
8
- .DS_Store
8
+ .DS_Store
9
+
10
+ . /packages /vscode-css-variables /README.md
Original file line number Diff line number Diff line change @@ -54,5 +54,34 @@ You can easily knows where the variable coming from by hold Alt/Cmd and click to
54
54
55
55
<img src =" https://github.com/vunguyentuan/vscode-css-variables/raw/master/demo/goto-definition-trim.gif " alt =" " />
56
56
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
57
86
## Full demo
58
87

Original file line number Diff line number Diff line change 12
12
"dev" : " turbo run dev" ,
13
13
"package" : " turbo run package" ,
14
14
"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"
16
16
},
17
17
"devDependencies" : {
18
18
"@changesets/cli" : " ^2.24.3" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments