/Tantan-guidelines-assistant

Sketch assistant checking naming conventions and other guidelines defined in external JSON file by UX team @Netural

Primary LanguageTypeScriptMIT LicenseMIT

Netural Guidelines Assistant for Sketch

alt text

This Sketch assistant validates document opacities, radiuses, shadows, border styles, border colors, fill colors, text colors, text sizes, text line-heights and font families against generic design tokens defined in a JSON file.

About Sketch Assistants

First time using a Sketch Assistant? 🤔 How can I add assistant to my sketch file?

Links

👉 Netural.com

👉 Download this Assistant

Linting rules

Opacity

Opacities should match the defined token values.

  • Reports a violation if a font is different than defined in JSON file.

Radius

Radiuses should match the defined token values.

  • Reports a violation if a radius is different than defined in JSON file.

Shadow

Shadows should match the defined token values.

  • Reports a violation if a shadow is different than defined in JSON file.

Border style

Border styles should match the defined token values.

  • Reports a violation if a border style is different than defined in JSON file.

Border color

Border colors should match defined border or generic color token values.

  • Reports a violation if a border color is different than defined in JSON file.

Fill color

Fill colors should match defined fill or generic color token values.

  • Reports a violation if a fill color is different than defined in JSON file.

Text color

Text colors should match defined text or generic color token values.

  • Reports a violation if a text color is different than defined in JSON file.

Text size

Text sizes should match the defined token values.

  • Reports a violation if a text size is different than defined in JSON file.

Text line height

Text line heights should match the defined token values.

  • Reports a violation if a text line height is different than defined in JSON file.

Text font family

Font families should match the defined token values.

  • Reports a violation if a font family used is different than defined in JSON file.

Artboard names

Artboard names should follow the naming conventions.

  • Reports a violation if an artboard name is different than defined in JSON file.

Symbol names

Symbol names should follow the naming conventions.

  • Reports a violation if a symbol name is different than defined in JSON file.

Shared text style names

Names of shared text styles should follow the naming conventions.

  • Reports a violation if a shared text style name is different than defined in JSON file.

Text content

Texts should not contain defined phrases.

  • Reports a violation if a text contains any of the defined phrases.