-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtokens.config.js
54 lines (50 loc) · 1.27 KB
/
tokens.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export default {
themes: [
{
name: 'dark',
colorScheme: 'dark',
tokenKey: 'dark',
},
{
name: 'light',
colorScheme: 'light',
tokenKey: 'light',
},
{
name: 'system',
colorScheme: 'normal',
tokenKey: 'primitive',
},
],
excludeCollections(collection) {
const collectionIds = [
'VariableCollectionId:14:62',
'VariableCollectionId:44:2502',
];
return !collectionIds.includes(collection.id);
},
excludeVariables(variable) {
// We intentionally skip over the following primitive
// design tokens as we prefer using semantic tokens.
const primitiveNamesToSkip = ['color', 'component'];
for (const name of primitiveNamesToSkip) {
if (variable.name.includes(name)) {
return true;
}
}
// We want to ignore tokens that are for
// designers experimenting.
if (variable.name.startsWith('dev-only/')) {
return true;
}
// `data-viz/pink` tokens are not intended to be
// used by developers and are for design use
// cases only.
if (variable.name.startsWith('data-viz/pink')) {
return true;
}
},
fileId: 'U5EY5xuIIibSN68gGRKlqt',
cssPrefix: 'glide-core',
outputDirectoryForStyles: 'src/styles/variables',
};