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
55.turbo
66dist
77out
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
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
Original file line number Diff line number Diff line change 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" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments