Find and list non-compliant style classes and IDs in Chrome DevTools Console.
Non-compliant Style Finder Extension
Simply open the Developer Console with the F12 key and click on the extension icon. Instantly, any non-compliant CSS classes and IDs are revealed as a JavaScript array. You can copy this array to facilitate further automation, such as linting processes.
Acceptable Patterns:
- Lowercase with Hyphens: Ensures a seamless blend, like `mat-mdc-input-element`.
- Double Hyphens for Variants: Distinctively marks variants, for instance, `mdc-button--raised`.
- Double Underscores for Sub-elements: Defines elements within a block, e.g., `mdc-button__ripple`.
- Compound Variants: Allows for detailed specification of variants, such as `mdc-floating-label--float-above`.
Unacceptable Patterns:
- CamelCase: Use btn-wrapper instead of btnWrapper.
- Capital Letters at Start: Opt for a lowercase start instead of BtnWrapper or Btn-wrapper.
- Mixed Separators: Prefer mdc-button__label to mdc_button-label.
- Repeated Separators: Use mdc-button instead of mdc--button or mdc__button.
Enhance your workflow and ensure your stylesheets are easily navigable, upholding the highest coding standards.
Additional Note:
This Style Checker is utilized during the development phase to detect inconsistent class and ID names within your project when you're running your projects locally or are in development mode.
Production apps undergo \"minifying\" and \"uglifying\" processes, resulting in CSS styles that naturally won't adhere to naming conventions. This extension is crafted by developers for developers, aiming to streamline and ensure consistency in coding practices before deployment.
Source Manifest.json
Similar Extensions
Perplexity AI 13 22 ★ 874KiB
Gimli Tailwind 13 33 ★ 151KiB
Element Selectors 13 3 ★ 318KiB
Mokku 13 76 ★ 3.28MiB
Web Component DevTools 13 9 ★ 1.74MiB
CSS Stacking Context inspector 13 21 ★ 262KiB
Color Finder 13 27 ★ 335KiB
Font identifier 13 24 ★ 225KiB
Hex Code Finder 13 5 ★ 2.1MiB
GrowthBook DevTools 13 5 ★ 694KiB
Easy Highlight - Automatic Keyword Highlight 13 11 ★ 981KiB
RGB Color Picker 13 15 ★ 3.53MiB
HTML Diff Check Tool 13 17 ★ 1.46MiB
FontFinder 13 4 ★ 328KiB
axe DevTools - Web Accessibility Testing 13 114 ★ 2.89MiB
React code finder 13 5 ★ 2.95MiB
Code Formatter - JSON, CSS & JavaScript 13 15 ★ 1.38MiB
Complementary Color Finder 13 4 ★ 192KiB
NetSuite Field Highlighter 13 3 ★ 16.34KiB
Chrome Extension Builder 13 14 ★ 512KiB
YAML Validator 13 2 ★ 292KiB
CSS Debugger 13 9 ★ 13.27KiB
CSS Selector Capture Pro 13 11 ★ 116KiB
Gimli Bootstrap 13 1 ★ 117KiB