增长信号未识别到付费功能高风险权限组合
CSS Undefined Variable Checker icon

CSS Undefined Variable Checker

A Devtools extension that detects usages of undefined CSS variables

用户数284当前公开安装规模
评分3.0商店平均评分
评论数1公开评论体量
Manifest 版本V3插件平台版本
7日增长+9近 7 天净增用户
7日增长率+3.27%相对周增长速度
视觉预览

CSS Undefined Variable Checker 媒体预览

1 项素材
趋势

用户增长趋势

按已采集快照查看用户数变化。

用户增长趋势

2832832842842842026年7月15日2026年7月18日2026年7月21日最新值: 284
评分趋势

近 7 日评分趋势

展示最近 7 日窗口内已采集的评分快照,辅助判断近期评分是否稳定。

7 日评分变化

起始值
3.00
最新值
3.00
7 日评分变化
0.00
2.902.953.003.053.102026年7月15日2026年7月18日2026年7月21日最新值: 3.00
2026年7月15日2026年7月21日
增长概览

日/周/月增长表现

同口径展示 1 天、7 天、30 天的绝对增长与增长率。

1日增长增长
+1+0.35%
7日增长增长
+9+3.27%
30日增长增长
+13+4.8%
技术摘要

版本、语言与抓取信息

查看发布时间、版本、支持语言、最近更新和抓取时间。

版本1.0
ManifestV3
大小250KiB
语言数1English (United States)
发布时间
最近更新
最近抓取
English (United States)
简介

插件简介

查看插件说明、主要功能和适用场景。

Do you write CSS using custom properties/variables? Have you ever misspelled one, and only noticed later that a color wasn't coming through correctly as a result? Have you ever yearned for a tool that would help you track down such uses of CSS variables which are not defined? Then you're in luck, because this is just such a tool!

This extension adds a tab to the Chrome Developer Tools which can check the current page for any undefined CSS variables used within "var()" expressions. Not only stylesheets, but also inline style attributes are analyzed, and the results are displayed in a friendly table with links to the offending element within the Developer Tools' Elements tab.

To use this extension, once it is installed open a website of your choice in Google Chrome, and then open the Developer Tools. You will see a new tab at the top of the Developer Tools titled "CSS Undefined Variable Checker". That tab will bring you to the UI of this extension. Initially, you will see only a button titled "Check for Undefined Variables" and an empty table. Clicking the button will begin the analysis on the page to which the devtools are connected and will report any results within the table. If there are no undefined CSS variables found, the table will instead be populated with a message indicating such.

The results within the table have three columns. The first column indicates the name of the undefined variable. The next column indicates the stylesheet in which it was found, and the third column indicates which element on the page the undefined variable was found on. This third column references the element by a CSS selector. If the undefined variable was found within a stylesheet, the Selector column is populated with the selector for the CSS style declaration where the variable was found. On the other hand if the undefined variable is found within an inline style, a selector is generated based on the classes, id, and tag name of the element in question and all of its ancestors. Note that this generated selector is not guaranteed to uniquely identify the element in question. Each cell in the Selector column of the results table is a hyperlink. Clicking each link will open the devtools' Elements tab and highlight the problematic element within it, helping you track down the undefined variable.

Note: This extension relies on APIs for accessing the stylesheet information which are constrained by Cross-Origin Resource Sharing. Any stylesheets which are loaded in the page but which are on a different origin from the page itself, and which were not served with an Access-Control-Allow-Origin header which would allow access from this page, will not be analyzed by this extension and will cause it to display errors. These errors do not stop the extension from analyzing other styles which are API-accessible.

The analysis logic behind this extension is also available as an npm package under the name @sonatype/undefined-css-variable-checker. See https://www.npmjs.com/package/@sonatype/undefined-css-variable-checker .

评价

最新评论快照

查看最近评论和评分分布。

商店综合星级3.0Chrome 商店给出的聚合评分,包含只有打分但没有同步评论正文的情况
已同步评论均分3.0仅基于下方已同步评论正文计算
有内容评论1已同步的评论正文数量
总评分/评论数1Chrome 商店公开评分/评论计数

商店综合星级:3.0。下方星级分布只统计已同步评论正文;如果某个插件只有公开分数、没有真实评论正文,这里可能为空。

5
0
4
0
3
1
2
0
1
0
Markus Mathieu2022年7月24日
3

I was very happy to find this extension, and I is very helpful. The problem is, that if you need an extension like this it probably is because you use css-custom-properties extensively and probably also in a complex (chaining) way. I found one problematic variable but showed me others, that actually worked as faulty, and showed some that I cannot finde anywhere. So if the developers are interested in a more in detail feedback, pleas let me know. (Btw: all my CSS is served from the same server)

语言 en