ObsidianTokenOnlyStylelintRules
The stylelint rules of obsidianTokenOnlyStylelintConfig.
Import:
import type { ObsidianTokenOnlyStylelintRules } from '@mnaoumov/obsidian-dev-toolkit/linters/stylelint-config';Signature:
export interface ObsidianTokenOnlyStylelintRulesProperties
| Property | Type | Description |
|---|---|---|
| 'color-named' | 'never' | Bans named colors (red, black). |
| 'color-no-hex' | true | Bans hex colors. |
| 'declaration-no-important' | true | Bans !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: