Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xiaohuohumax/vscode-theme-css-variables

VSCode Extension: VSCode theme css variables snippets; VSCode 扩展开发 CSS 变量提示
https://github.com/xiaohuohumax/vscode-theme-css-variables

Last synced: about 5 hours ago
JSON representation

VSCode Extension: VSCode theme css variables snippets; VSCode 扩展开发 CSS 变量提示

Awesome Lists containing this project

README

        

# vscode-theme-css-variables


Downloads
Installs
License
Last Commit
Stars

**VSCode Theme CSS Variables** is a VSCode extension that provides CSS variables snippets for VSCode themes.

## ⏬ Install

VSCode Extensions Select `VSCode Theme CSS Variables`

## 📖 Use

![vscode](/images/vscode.png)

## 📦 Add

### Add base css variables. [themeing.ts#L68](https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/webview/browser/themeing.ts#L68)

- vscode-font-family
- vscode-font-weight
- vscode-font-size
- vscode-editor-font-family
- vscode-editor-font-weight
- vscode-editor-font-size

### Add escape style css variables.

```css
/* variable */
/* diffEditor.move.border */
/* testing.message.error.decorationForeground */

/* base */
--vscode-diffEditor-move-border
--vscode-testing-message-error-decorationForeground

/* escape style */
--vscode-diffEditor-move\.border
--vscode-testing-message\.error\.decorationForeground
```

![escape](/images/escape.png)

## ⚙ Options

- `vscodeThemeCSSVariables.activationLanguages`: Activation languages
- `default`: [ "css", "less", "scss", "sass", "stylus", "html", "svelte" ]

## Default Activation Language

- css
- less
- scss
- sass
- stylus
- html
- svelte

## 🎉 Thanks

[connor4312/vscode-css-theme-completions](https://github.com/connor4312/vscode-css-theme-completions)