π Shorthand rules automatically inherit related rule variables
1aron opened this issue Β· comments
Current
config.variables
{
'font-family': {
sans: ['InterVariable', 'Noto Sans TC', ...variables['font-family'].sans],
mono: ['Fira Code', ...variables['font-family'].mono]
},
'font-feature-settings': {
sans: "'cv06', 'cv10', 'cv11', 'cv12', 'cv13'"
}
}
config.rules
{
font: {
match: /^f:/,
layer: Layer.CoreNativeShorthand,
variables: [
'font-family',
'font-variant',
'font-weight',
'font-size',
'font-style',
'line-height'
]
} as RuleDefinition,
}
Expected
config.rules
{
font: {
match: /^f:/,
layer: Layer.CoreNativeShorthand,
- variables: [
- 'font-family',
- 'font-variant',
- 'font-weight',
- 'font-size',
- 'font-style',
- 'line-height'
- ]
} as RuleDefinition,
}
Inherits variables from any non-shorthand rule matching --font-.*
.