mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
32 lines
649 B
TypeScript
32 lines
649 B
TypeScript
import { Colors } from '../../Theme';
|
|
import TokenSettings from '../TokenSettings';
|
|
|
|
export default (colors: Colors): TokenSettings[] => [
|
|
punctuation(colors),
|
|
keys(colors)
|
|
];
|
|
|
|
function punctuation({ base }: Colors): TokenSettings {
|
|
return {
|
|
name: 'TOML separators',
|
|
scope: ['meta.group.double.toml', 'meta.group.toml'],
|
|
settings: {
|
|
foreground: base.pink
|
|
}
|
|
};
|
|
}
|
|
|
|
function keys({ base }: Colors): TokenSettings {
|
|
return {
|
|
name: 'TOML keys',
|
|
scope: [
|
|
'entity.name.section.toml',
|
|
'entity.name.tag.yaml',
|
|
'variable.other.key.toml'
|
|
],
|
|
settings: {
|
|
foreground: base.cyan
|
|
}
|
|
};
|
|
}
|