Skip to content

ObsidianTokenOnlyStylelintRules

The stylelint rules of obsidianTokenOnlyStylelintConfig.

Import:

import type { ObsidianTokenOnlyStylelintRules } from '@mnaoumov/obsidian-dev-toolkit/linters/stylelint-config';

Signature:

export interface ObsidianTokenOnlyStylelintRules

Properties

PropertyTypeDescription
'color-named''never'Bans named colors (red, black).
'color-no-hex'trueBans hex colors.
'declaration-no-important'trueBans !important.
'declaration-property-unit-disallowed-list'Readonly<Record<string, readonly string[]>>Bans raw pixel sizes on the size properties.
'declaration-property-value-allowed-list'Readonly<Record<string, readonly RegExp[]>>Allows only token values on the color, font, spacing, border, shadow and stacking properties.
'function-disallowed-list'readonly string[]Bans color functions with literal channels.

Links to this page: