@nswds/tokens 2.31.0 → 2.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -63
- package/package.json +15 -30
- package/src/brand/black/logo.png +0 -0
- package/src/brand/black/logo.svg +0 -30
- package/src/brand/icon-dark.ico +0 -0
- package/src/brand/icon-dark.png +0 -0
- package/src/brand/icon-dark.svg +0 -17
- package/src/brand/icon-light.ico +0 -0
- package/src/brand/icon-light.png +0 -0
- package/src/brand/icon-light.svg +0 -30
- package/src/brand/icon.svg +0 -30
- package/src/brand/logo.png +0 -0
- package/src/brand/logo.svg +0 -34
- package/src/brand/placeholder.svg +0 -1
- package/src/brand/profile.jpg +0 -0
- package/src/brand/profile.png +0 -0
- package/src/brand/profile_matildas.jpg +0 -0
- package/src/brand/profile_pride.jpg +0 -0
- package/src/brand/reversed/logo.png +0 -0
- package/src/brand/reversed/logo.svg +0 -34
- package/src/brand/white/logo.png +0 -0
- package/src/brand/white/logo.svg +0 -21
- package/src/css/colors/global/hex.css +0 -344
- package/src/css/colors/global/hsl.css +0 -344
- package/src/css/colors/global/oklch.css +0 -344
- package/src/css/colors/global/rgb.css +0 -344
- package/src/css/colors/semantic/hex.css +0 -78
- package/src/css/colors/semantic/hsl.css +0 -78
- package/src/css/colors/semantic/oklch.css +0 -78
- package/src/css/colors/semantic/rgb.css +0 -78
- package/src/css/colors/themes/masterbrand/hex.css +0 -59
- package/src/css/colors/themes/masterbrand/hsl.css +0 -59
- package/src/css/colors/themes/masterbrand/oklch.css +0 -59
- package/src/css/colors/themes/masterbrand/rgb.css +0 -59
- package/src/css/prism/prism.css +0 -719
- package/src/figma/color/global/hex.json +0 -1406
- package/src/figma/color/global/hsl.json +0 -4142
- package/src/figma/color/global/oklch.json +0 -4142
- package/src/figma/color/global/rgb.json +0 -4142
- package/src/figma/color/semantic/hex.json +0 -314
- package/src/figma/color/semantic/hsl.json +0 -618
- package/src/figma/color/semantic/oklch.json +0 -618
- package/src/figma/color/semantic/rgb.json +0 -618
- package/src/figma/color/themes/masterbrand/color/hex.json +0 -236
- package/src/figma/color/themes/masterbrand/color/hsl.json +0 -464
- package/src/figma/color/themes/masterbrand/color/oklch.json +0 -464
- package/src/figma/color/themes/masterbrand/color/rgb.json +0 -464
- package/src/index.ts +0 -417
- package/src/js/colors/global/hex.js +0 -378
- package/src/js/colors/global/hsl.js +0 -378
- package/src/js/colors/global/oklch.js +0 -378
- package/src/js/colors/global/rgb.js +0 -378
- package/src/js/colors/semantic/hex.js +0 -87
- package/src/js/colors/semantic/hsl.js +0 -87
- package/src/js/colors/semantic/oklch.js +0 -87
- package/src/js/colors/semantic/rgb.js +0 -87
- package/src/js/colors/themes/masterbrand/hex.js +0 -63
- package/src/js/colors/themes/masterbrand/hsl.js +0 -63
- package/src/js/colors/themes/masterbrand/oklch.js +0 -63
- package/src/js/colors/themes/masterbrand/rgb.js +0 -63
- package/src/json/colors/global/hex.json +0 -380
- package/src/json/colors/global/hsl.json +0 -380
- package/src/json/colors/global/oklch.json +0 -380
- package/src/json/colors/global/rgb.json +0 -380
- package/src/json/colors/semantic/hex.json +0 -86
- package/src/json/colors/semantic/hsl.json +0 -86
- package/src/json/colors/semantic/oklch.json +0 -86
- package/src/json/colors/semantic/rgb.json +0 -86
- package/src/json/colors/themes/masterbrand/hex.json +0 -65
- package/src/json/colors/themes/masterbrand/hsl.json +0 -65
- package/src/json/colors/themes/masterbrand/oklch.json +0 -65
- package/src/json/colors/themes/masterbrand/rgb.json +0 -65
- package/src/less/colors/global/hex.less +0 -342
- package/src/less/colors/global/hsl.less +0 -342
- package/src/less/colors/global/oklch.less +0 -342
- package/src/less/colors/global/rgb.less +0 -342
- package/src/less/colors/semantic/hex.less +0 -76
- package/src/less/colors/semantic/hsl.less +0 -76
- package/src/less/colors/semantic/oklch.less +0 -76
- package/src/less/colors/semantic/rgb.less +0 -76
- package/src/less/colors/themes/masterbrand/hex.less +0 -57
- package/src/less/colors/themes/masterbrand/hsl.less +0 -57
- package/src/less/colors/themes/masterbrand/oklch.less +0 -57
- package/src/less/colors/themes/masterbrand/rgb.less +0 -57
- package/src/scss/colors/global/hex.scss +0 -342
- package/src/scss/colors/global/hsl.scss +0 -342
- package/src/scss/colors/global/oklch.scss +0 -342
- package/src/scss/colors/global/rgb.scss +0 -342
- package/src/scss/colors/semantic/hex.scss +0 -76
- package/src/scss/colors/semantic/hsl.scss +0 -76
- package/src/scss/colors/semantic/oklch.scss +0 -76
- package/src/scss/colors/semantic/rgb.scss +0 -76
- package/src/scss/colors/themes/masterbrand/hex.scss +0 -57
- package/src/scss/colors/themes/masterbrand/hsl.scss +0 -57
- package/src/scss/colors/themes/masterbrand/oklch.scss +0 -57
- package/src/scss/colors/themes/masterbrand/rgb.scss +0 -57
- package/src/tailwind/colors/global/hex.css +0 -689
- package/src/tailwind/colors/global/hsl.css +0 -689
- package/src/tailwind/colors/global/oklch.css +0 -689
- package/src/tailwind/colors/global/rgb.css +0 -689
- package/src/tailwind/colors/semantic/hex.css +0 -157
- package/src/tailwind/colors/semantic/hsl.css +0 -157
- package/src/tailwind/colors/semantic/oklch.css +0 -157
- package/src/tailwind/colors/semantic/rgb.css +0 -157
- package/src/tailwind/colors/themes/data-visualisation/hex.css +0 -417
- package/src/tailwind/colors/themes/data-visualisation/hsl.css +0 -417
- package/src/tailwind/colors/themes/data-visualisation/oklch.css +0 -417
- package/src/tailwind/colors/themes/data-visualisation/rgb.css +0 -417
- package/src/tailwind/colors/themes/fuchsia-blue/hex.css +0 -59
- package/src/tailwind/colors/themes/fuchsia-blue/hsl.css +0 -59
- package/src/tailwind/colors/themes/fuchsia-blue/oklch.css +0 -59
- package/src/tailwind/colors/themes/fuchsia-blue/rgb.css +0 -59
- package/src/tailwind/colors/themes/fuchsia-orange/hex.css +0 -59
- package/src/tailwind/colors/themes/fuchsia-orange/hsl.css +0 -59
- package/src/tailwind/colors/themes/fuchsia-orange/oklch.css +0 -59
- package/src/tailwind/colors/themes/fuchsia-orange/rgb.css +0 -59
- package/src/tailwind/colors/themes/masterbrand/hex.css +0 -59
- package/src/tailwind/colors/themes/masterbrand/hsl.css +0 -59
- package/src/tailwind/colors/themes/masterbrand/oklch.css +0 -59
- package/src/tailwind/colors/themes/masterbrand/rgb.css +0 -59
- package/src/ts/colors/global/hex.ts +0 -378
- package/src/ts/colors/global/hsl.ts +0 -378
- package/src/ts/colors/global/oklch.ts +0 -378
- package/src/ts/colors/global/rgb.ts +0 -378
- package/src/ts/colors/semantic/hex.ts +0 -84
- package/src/ts/colors/semantic/hsl.ts +0 -84
- package/src/ts/colors/semantic/oklch.ts +0 -84
- package/src/ts/colors/semantic/rgb.ts +0 -84
- package/src/ts/colors/themes/masterbrand/hex.ts +0 -63
- package/src/ts/colors/themes/masterbrand/hsl.ts +0 -63
- package/src/ts/colors/themes/masterbrand/oklch.ts +0 -63
- package/src/ts/colors/themes/masterbrand/rgb.ts +0 -63
- package/src/types.d.ts +0 -27
package/src/index.ts
DELETED
|
@@ -1,417 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// JSON Tokens Imports
|
|
3
|
-
const globalColorHex = require('../tokens/global/color/hex.json')
|
|
4
|
-
const globalColorHsl = require('../tokens/global/color/hsl.json')
|
|
5
|
-
const globalColorOklch = require('../tokens/global/color/oklch.json')
|
|
6
|
-
const globalColorRgb = require('../tokens/global/color/rgb.json')
|
|
7
|
-
|
|
8
|
-
const masterbrandColorHex = require('../tokens/themes/color/masterbrand/hex.json')
|
|
9
|
-
const rawMasterbrandColorHsl = require('../tokens/themes/color/masterbrand/hsl.json')
|
|
10
|
-
const rawMasterbrandColorOklch = require('../tokens/themes/color/masterbrand/oklch.json')
|
|
11
|
-
const rawMasterbrandColorRgb = require('../tokens/themes/color/masterbrand/rgb.json')
|
|
12
|
-
|
|
13
|
-
const semanticColorHex = require('../tokens/semantic/color/hex.json')
|
|
14
|
-
const semanticColorHsl = require('../tokens/semantic/color/hsl.json')
|
|
15
|
-
const semanticColorOklch = require('../tokens/semantic/color/oklch.json')
|
|
16
|
-
const semanticColorRgb = require('../tokens/semantic/color/rgb.json')
|
|
17
|
-
|
|
18
|
-
type AnyObject = Record<string, unknown>
|
|
19
|
-
|
|
20
|
-
type ColorValue = {
|
|
21
|
-
colorSpace: string
|
|
22
|
-
channels: unknown
|
|
23
|
-
alpha?: unknown
|
|
24
|
-
[key: string]: unknown
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
type AliasLookup = Record<string, ColorValue>
|
|
28
|
-
|
|
29
|
-
const ALIAS_PATTERN = /^\{([\w-]+(?:\.[\w-]+)*)\}$/
|
|
30
|
-
|
|
31
|
-
const isObject = (value: unknown): value is AnyObject =>
|
|
32
|
-
typeof value === 'object' && value !== null && !Array.isArray(value)
|
|
33
|
-
|
|
34
|
-
const clone = <T>(value: T): T => JSON.parse(JSON.stringify(value))
|
|
35
|
-
|
|
36
|
-
const buildColorLookup = (palette: AnyObject): AliasLookup => {
|
|
37
|
-
const lookup: AliasLookup = {}
|
|
38
|
-
|
|
39
|
-
const walk = (node: AnyObject, path: string[]): void => {
|
|
40
|
-
if ('$value' in node && isObject(node.$value) && 'colorSpace' in node.$value) {
|
|
41
|
-
lookup[path.join('.')] = node.$value as ColorValue
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
for (const [key, value] of Object.entries(node)) {
|
|
45
|
-
if (key === '$value' || key === '$type') continue
|
|
46
|
-
|
|
47
|
-
if (isObject(value)) {
|
|
48
|
-
walk(value, [...path, key])
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
for (const [key, value] of Object.entries(palette)) {
|
|
54
|
-
if (isObject(value)) {
|
|
55
|
-
walk(value, [key])
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return lookup
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const rehydrateAliases = (palette: AnyObject, lookup: AliasLookup): AnyObject => {
|
|
63
|
-
if (!isObject(palette)) {
|
|
64
|
-
return palette
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const cloned = clone(palette)
|
|
68
|
-
|
|
69
|
-
const walk = (node: AnyObject): void => {
|
|
70
|
-
if (typeof node.$value === 'string') {
|
|
71
|
-
const match = ALIAS_PATTERN.exec(node.$value)
|
|
72
|
-
if (match) {
|
|
73
|
-
const alias = match[1]
|
|
74
|
-
const resolved = lookup[alias]
|
|
75
|
-
if (resolved) {
|
|
76
|
-
node.$value = clone(resolved)
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
for (const [key, value] of Object.entries(node)) {
|
|
82
|
-
if (key === '$value' || key === '$type') continue
|
|
83
|
-
|
|
84
|
-
if (isObject(value)) {
|
|
85
|
-
walk(value)
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
walk(cloned)
|
|
91
|
-
|
|
92
|
-
return cloned
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
const globalHslLookup = buildColorLookup(globalColorHsl)
|
|
96
|
-
const globalOklchLookup = buildColorLookup(globalColorOklch)
|
|
97
|
-
const globalRgbLookup = buildColorLookup(globalColorRgb)
|
|
98
|
-
|
|
99
|
-
const masterbrandColorHsl = rehydrateAliases(rawMasterbrandColorHsl, globalHslLookup)
|
|
100
|
-
const masterbrandColorOklch = rehydrateAliases(rawMasterbrandColorOklch, globalOklchLookup)
|
|
101
|
-
const masterbrandColorRgb = rehydrateAliases(rawMasterbrandColorRgb, globalRgbLookup)
|
|
102
|
-
|
|
103
|
-
// CSS Imports
|
|
104
|
-
import * as globalCssHex from './css/colors/global/hex.css'
|
|
105
|
-
import * as globalCssHsl from './css/colors/global/hsl.css'
|
|
106
|
-
import * as globalCssOklch from './css/colors/global/oklch.css'
|
|
107
|
-
import * as globalCssRgb from './css/colors/global/rgb.css'
|
|
108
|
-
import * as masterbrandCssHex from './css/colors/themes/masterbrand/hex.css'
|
|
109
|
-
import * as masterbrandCssHsl from './css/colors/themes/masterbrand/hsl.css'
|
|
110
|
-
import * as masterbrandCssOklch from './css/colors/themes/masterbrand/oklch.css'
|
|
111
|
-
import * as masterbrandCssRgb from './css/colors/themes/masterbrand/rgb.css'
|
|
112
|
-
import * as semanticCssHex from './css/colors/semantic/hex.css'
|
|
113
|
-
import * as semanticCssHsl from './css/colors/semantic/hsl.css'
|
|
114
|
-
import * as semanticCssOklch from './css/colors/semantic/oklch.css'
|
|
115
|
-
import * as semanticCssRgb from './css/colors/semantic/rgb.css'
|
|
116
|
-
|
|
117
|
-
// JavaScript Imports
|
|
118
|
-
import * as globalJsHex from './js/colors/global/hex.js'
|
|
119
|
-
import * as globalJsHsl from './js/colors/global/hsl.js'
|
|
120
|
-
import * as globalJsOklch from './js/colors/global/oklch.js'
|
|
121
|
-
import * as globalJsRgb from './js/colors/global/rgb.js'
|
|
122
|
-
import * as masterbrandJsHex from './js/colors/themes/masterbrand/hex.js'
|
|
123
|
-
import * as masterbrandJsHsl from './js/colors/themes/masterbrand/hsl.js'
|
|
124
|
-
import * as masterbrandJsOklch from './js/colors/themes/masterbrand/oklch.js'
|
|
125
|
-
import * as masterbrandJsRgb from './js/colors/themes/masterbrand/rgb.js'
|
|
126
|
-
import * as semanticJsHex from './js/colors/semantic/hex.js'
|
|
127
|
-
import * as semanticJsHsl from './js/colors/semantic/hsl.js'
|
|
128
|
-
import * as semanticJsOklch from './js/colors/semantic/oklch.js'
|
|
129
|
-
import * as semanticJsRgb from './js/colors/semantic/rgb.js'
|
|
130
|
-
|
|
131
|
-
// JSON Imports
|
|
132
|
-
const globalJsonHex = require('./json/colors/global/hex.json')
|
|
133
|
-
const globalJsonHsl = require('./json/colors/global/hsl.json')
|
|
134
|
-
const globalJsonOklch = require('./json/colors/global/oklch.json')
|
|
135
|
-
const globalJsonRgb = require('./json/colors/global/rgb.json')
|
|
136
|
-
const masterbrandJsonHex = require('./json/colors/themes/masterbrand/hex.json')
|
|
137
|
-
const masterbrandJsonHsl = require('./json/colors/themes/masterbrand/hsl.json')
|
|
138
|
-
const masterbrandJsonOklch = require('./json/colors/themes/masterbrand/oklch.json')
|
|
139
|
-
const masterbrandJsonRgb = require('./json/colors/themes/masterbrand/rgb.json')
|
|
140
|
-
const semanticJsonHex = require('./json/colors/semantic/hex.json')
|
|
141
|
-
const semanticJsonHsl = require('./json/colors/semantic/hsl.json')
|
|
142
|
-
const semanticJsonOklch = require('./json/colors/semantic/oklch.json')
|
|
143
|
-
const semanticJsonRgb = require('./json/colors/semantic/rgb.json')
|
|
144
|
-
|
|
145
|
-
// LESS Imports
|
|
146
|
-
import * as globalLessHex from './less/colors/global/hex.less'
|
|
147
|
-
import * as globalLessHsl from './less/colors/global/hsl.less'
|
|
148
|
-
import * as globalLessOklch from './less/colors/global/oklch.less'
|
|
149
|
-
import * as globalLessRgb from './less/colors/global/rgb.less'
|
|
150
|
-
import * as masterbrandLessHex from './less/colors/themes/masterbrand/hex.less'
|
|
151
|
-
import * as masterbrandLessHsl from './less/colors/themes/masterbrand/hsl.less'
|
|
152
|
-
import * as masterbrandLessOklch from './less/colors/themes/masterbrand/oklch.less'
|
|
153
|
-
import * as masterbrandLessRgb from './less/colors/themes/masterbrand/rgb.less'
|
|
154
|
-
import * as semanticLessHex from './less/colors/semantic/hex.less'
|
|
155
|
-
import * as semanticLessHsl from './less/colors/semantic/hsl.less'
|
|
156
|
-
import * as semanticLessOklch from './less/colors/semantic/oklch.less'
|
|
157
|
-
import * as semanticLessRgb from './less/colors/semantic/rgb.less'
|
|
158
|
-
|
|
159
|
-
// SCSS Imports
|
|
160
|
-
import * as globalScssHex from './scss/colors/global/hex.scss'
|
|
161
|
-
import * as globalScssHsl from './scss/colors/global/hsl.scss'
|
|
162
|
-
import * as globalScssOklch from './scss/colors/global/oklch.scss'
|
|
163
|
-
import * as globalScssRgb from './scss/colors/global/rgb.scss'
|
|
164
|
-
import * as masterbrandScssHex from './scss/colors/themes/masterbrand/hex.scss'
|
|
165
|
-
import * as masterbrandScssHsl from './scss/colors/themes/masterbrand/hsl.scss'
|
|
166
|
-
import * as masterbrandScssOklch from './scss/colors/themes/masterbrand/oklch.scss'
|
|
167
|
-
import * as masterbrandScssRgb from './scss/colors/themes/masterbrand/rgb.scss'
|
|
168
|
-
import * as semanticScssHex from './scss/colors/semantic/hex.scss'
|
|
169
|
-
import * as semanticScssHsl from './scss/colors/semantic/hsl.scss'
|
|
170
|
-
import * as semanticScssOklch from './scss/colors/semantic/oklch.scss'
|
|
171
|
-
import * as semanticScssRgb from './scss/colors/semantic/rgb.scss'
|
|
172
|
-
|
|
173
|
-
// Tailwind Imports
|
|
174
|
-
import * as globalTailwindHex from './tailwind/colors/global/hex.css'
|
|
175
|
-
import * as globalTailwindHsl from './tailwind/colors/global/hsl.css'
|
|
176
|
-
import * as globalTailwindOklch from './tailwind/colors/global/oklch.css'
|
|
177
|
-
import * as globalTailwindRgb from './tailwind/colors/global/rgb.css'
|
|
178
|
-
import * as masterbrandTailwindHex from './tailwind/colors/themes/masterbrand/hex.css'
|
|
179
|
-
import * as masterbrandTailwindHsl from './tailwind/colors/themes/masterbrand/hsl.css'
|
|
180
|
-
import * as masterbrandTailwindOklch from './tailwind/colors/themes/masterbrand/oklch.css'
|
|
181
|
-
import * as masterbrandTailwindRgb from './tailwind/colors/themes/masterbrand/rgb.css'
|
|
182
|
-
import * as datavisTailwindHex from './tailwind/colors/themes/data-visualisation/hex.css'
|
|
183
|
-
import * as datavisTailwindHsl from './tailwind/colors/themes/data-visualisation/hsl.css'
|
|
184
|
-
import * as datavisTailwindOklch from './tailwind/colors/themes/data-visualisation/oklch.css'
|
|
185
|
-
import * as datavisTailwindRgb from './tailwind/colors/themes/data-visualisation/rgb.css'
|
|
186
|
-
import * as semanticTailwindHex from './tailwind/colors/semantic/hex.css'
|
|
187
|
-
import * as semanticTailwindHsl from './tailwind/colors/semantic/hsl.css'
|
|
188
|
-
import * as semanticTailwindOklch from './tailwind/colors/semantic/oklch.css'
|
|
189
|
-
import * as semanticTailwindRgb from './tailwind/colors/semantic/rgb.css'
|
|
190
|
-
|
|
191
|
-
// TypeScript Imports
|
|
192
|
-
import * as globalTsHex from './ts/colors/global/hex.js'
|
|
193
|
-
import * as globalTsHsl from './ts/colors/global/hsl.js'
|
|
194
|
-
import * as globalTsOklch from './ts/colors/global/oklch.js'
|
|
195
|
-
import * as globalTsRgb from './ts/colors/global/rgb.js'
|
|
196
|
-
import * as masterbrandTsHex from './ts/colors/themes/masterbrand/hex.js'
|
|
197
|
-
import * as masterbrandTsHsl from './ts/colors/themes/masterbrand/hsl.js'
|
|
198
|
-
import * as masterbrandTsOklch from './ts/colors/themes/masterbrand/oklch.js'
|
|
199
|
-
import * as masterbrandTsRgb from './ts/colors/themes/masterbrand/rgb.js'
|
|
200
|
-
import * as semanticTsHex from './ts/colors/semantic/hex.js'
|
|
201
|
-
import * as semanticTsHsl from './ts/colors/semantic/hsl.js'
|
|
202
|
-
import * as semanticTsOklch from './ts/colors/semantic/oklch.js'
|
|
203
|
-
import * as semanticTsRgb from './ts/colors/semantic/rgb.js'
|
|
204
|
-
|
|
205
|
-
export const tokens = {
|
|
206
|
-
colors: {
|
|
207
|
-
global: {
|
|
208
|
-
hex: globalColorHex,
|
|
209
|
-
hsl: globalColorHsl,
|
|
210
|
-
oklch: globalColorOklch,
|
|
211
|
-
rgb: globalColorRgb,
|
|
212
|
-
},
|
|
213
|
-
themes: {
|
|
214
|
-
masterbrand: {
|
|
215
|
-
hex: masterbrandColorHex,
|
|
216
|
-
hsl: masterbrandColorHsl,
|
|
217
|
-
oklch: masterbrandColorOklch,
|
|
218
|
-
rgb: masterbrandColorRgb,
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
semantic: {
|
|
222
|
-
hex: semanticColorHex,
|
|
223
|
-
hsl: semanticColorHsl,
|
|
224
|
-
oklch: semanticColorOklch,
|
|
225
|
-
rgb: semanticColorRgb,
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
css: {
|
|
229
|
-
global: {
|
|
230
|
-
hex: globalCssHex,
|
|
231
|
-
hsl: globalCssHsl,
|
|
232
|
-
oklch: globalCssOklch,
|
|
233
|
-
rgb: globalCssRgb,
|
|
234
|
-
},
|
|
235
|
-
themes: {
|
|
236
|
-
masterbrand: {
|
|
237
|
-
hex: masterbrandCssHex,
|
|
238
|
-
hsl: masterbrandCssHsl,
|
|
239
|
-
oklch: masterbrandCssOklch,
|
|
240
|
-
rgb: masterbrandCssRgb,
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
|
-
semantic: {
|
|
244
|
-
hex: semanticCssHex,
|
|
245
|
-
hsl: semanticCssHsl,
|
|
246
|
-
oklch: semanticCssOklch,
|
|
247
|
-
rgb: semanticCssRgb,
|
|
248
|
-
},
|
|
249
|
-
},
|
|
250
|
-
js: {
|
|
251
|
-
global: {
|
|
252
|
-
hex: globalJsHex,
|
|
253
|
-
hsl: globalJsHsl,
|
|
254
|
-
oklch: globalJsOklch,
|
|
255
|
-
rgb: globalJsRgb,
|
|
256
|
-
},
|
|
257
|
-
themes: {
|
|
258
|
-
masterbrand: {
|
|
259
|
-
hex: masterbrandJsHex,
|
|
260
|
-
hsl: masterbrandJsHsl,
|
|
261
|
-
oklch: masterbrandJsOklch,
|
|
262
|
-
rgb: masterbrandJsRgb,
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
semantic: {
|
|
266
|
-
hex: semanticJsHex,
|
|
267
|
-
hsl: semanticJsHsl,
|
|
268
|
-
oklch: semanticJsOklch,
|
|
269
|
-
rgb: semanticJsRgb,
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
json: {
|
|
273
|
-
global: {
|
|
274
|
-
hex: globalJsonHex,
|
|
275
|
-
hsl: globalJsonHsl,
|
|
276
|
-
oklch: globalJsonOklch,
|
|
277
|
-
rgb: globalJsonRgb,
|
|
278
|
-
},
|
|
279
|
-
themes: {
|
|
280
|
-
masterbrand: {
|
|
281
|
-
hex: masterbrandJsonHex,
|
|
282
|
-
hsl: masterbrandJsonHsl,
|
|
283
|
-
oklch: masterbrandJsonOklch,
|
|
284
|
-
rgb: masterbrandJsonRgb,
|
|
285
|
-
},
|
|
286
|
-
},
|
|
287
|
-
semantic: {
|
|
288
|
-
hex: semanticJsonHex,
|
|
289
|
-
hsl: semanticJsonHsl,
|
|
290
|
-
oklch: semanticJsonOklch,
|
|
291
|
-
rgb: semanticJsonRgb,
|
|
292
|
-
},
|
|
293
|
-
},
|
|
294
|
-
less: {
|
|
295
|
-
global: {
|
|
296
|
-
hex: globalLessHex,
|
|
297
|
-
hsl: globalLessHsl,
|
|
298
|
-
oklch: globalLessOklch,
|
|
299
|
-
rgb: globalLessRgb,
|
|
300
|
-
},
|
|
301
|
-
themes: {
|
|
302
|
-
masterbrand: {
|
|
303
|
-
hex: masterbrandLessHex,
|
|
304
|
-
hsl: masterbrandLessHsl,
|
|
305
|
-
oklch: masterbrandLessOklch,
|
|
306
|
-
rgb: masterbrandLessRgb,
|
|
307
|
-
},
|
|
308
|
-
},
|
|
309
|
-
semantic: {
|
|
310
|
-
hex: semanticLessHex,
|
|
311
|
-
hsl: semanticLessHsl,
|
|
312
|
-
oklch: semanticLessOklch,
|
|
313
|
-
rgb: semanticLessRgb,
|
|
314
|
-
},
|
|
315
|
-
},
|
|
316
|
-
scss: {
|
|
317
|
-
global: {
|
|
318
|
-
hex: globalScssHex,
|
|
319
|
-
hsl: globalScssHsl,
|
|
320
|
-
oklch: globalScssOklch,
|
|
321
|
-
rgb: globalScssRgb,
|
|
322
|
-
},
|
|
323
|
-
themes: {
|
|
324
|
-
masterbrand: {
|
|
325
|
-
hex: masterbrandScssHex,
|
|
326
|
-
hsl: masterbrandScssHsl,
|
|
327
|
-
oklch: masterbrandScssOklch,
|
|
328
|
-
rgb: masterbrandScssRgb,
|
|
329
|
-
},
|
|
330
|
-
},
|
|
331
|
-
semantic: {
|
|
332
|
-
hex: semanticScssHex,
|
|
333
|
-
hsl: semanticScssHsl,
|
|
334
|
-
oklch: semanticScssOklch,
|
|
335
|
-
rgb: semanticScssRgb,
|
|
336
|
-
},
|
|
337
|
-
},
|
|
338
|
-
tailwind: {
|
|
339
|
-
global: {
|
|
340
|
-
hex: globalTailwindHex,
|
|
341
|
-
hsl: globalTailwindHsl,
|
|
342
|
-
oklch: globalTailwindOklch,
|
|
343
|
-
rgb: globalTailwindRgb,
|
|
344
|
-
},
|
|
345
|
-
themes: {
|
|
346
|
-
masterbrand: {
|
|
347
|
-
hex: masterbrandTailwindHex,
|
|
348
|
-
hsl: masterbrandTailwindHsl,
|
|
349
|
-
oklch: masterbrandTailwindOklch,
|
|
350
|
-
rgb: masterbrandTailwindRgb,
|
|
351
|
-
},
|
|
352
|
-
'data-visualisation': {
|
|
353
|
-
hex: datavisTailwindHex,
|
|
354
|
-
hsl: datavisTailwindHsl,
|
|
355
|
-
oklch: datavisTailwindOklch,
|
|
356
|
-
rgb: datavisTailwindRgb,
|
|
357
|
-
},
|
|
358
|
-
},
|
|
359
|
-
semantic: {
|
|
360
|
-
hex: semanticTailwindHex,
|
|
361
|
-
hsl: semanticTailwindHsl,
|
|
362
|
-
oklch: semanticTailwindOklch,
|
|
363
|
-
rgb: semanticTailwindRgb,
|
|
364
|
-
},
|
|
365
|
-
},
|
|
366
|
-
ts: {
|
|
367
|
-
global: {
|
|
368
|
-
hex: globalTsHex,
|
|
369
|
-
hsl: globalTsHsl,
|
|
370
|
-
oklch: globalTsOklch,
|
|
371
|
-
rgb: globalTsRgb,
|
|
372
|
-
},
|
|
373
|
-
themes: {
|
|
374
|
-
masterbrand: {
|
|
375
|
-
hex: masterbrandTsHex,
|
|
376
|
-
hsl: masterbrandTsHsl,
|
|
377
|
-
oklch: masterbrandTsOklch,
|
|
378
|
-
rgb: masterbrandTsRgb,
|
|
379
|
-
},
|
|
380
|
-
},
|
|
381
|
-
semantic: {
|
|
382
|
-
hex: semanticTsHex,
|
|
383
|
-
hsl: semanticTsHsl,
|
|
384
|
-
oklch: semanticTsOklch,
|
|
385
|
-
rgb: semanticTsRgb,
|
|
386
|
-
},
|
|
387
|
-
},
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
export const colorTokens = tokens.colors
|
|
391
|
-
export const cssTokens = tokens.css
|
|
392
|
-
export const jsTokens = tokens.js
|
|
393
|
-
export const jsonTokens = tokens.json
|
|
394
|
-
export const lessTokens = tokens.less
|
|
395
|
-
export const scssTokens = tokens.scss
|
|
396
|
-
export const tailwindTokens = tokens.tailwind
|
|
397
|
-
export const tsTokens = tokens.ts
|
|
398
|
-
|
|
399
|
-
// Export brand assets
|
|
400
|
-
export const brand = {
|
|
401
|
-
iconDark: {
|
|
402
|
-
ico: './brand/icon-dark.ico',
|
|
403
|
-
png: './brand/icon-dark.png',
|
|
404
|
-
svg: './brand/icon-dark.svg',
|
|
405
|
-
},
|
|
406
|
-
iconLight: {
|
|
407
|
-
ico: './brand/icon-light.ico',
|
|
408
|
-
png: './brand/icon-light.png',
|
|
409
|
-
svg: './brand/icon-light.svg',
|
|
410
|
-
},
|
|
411
|
-
icon: './brand/icon.svg',
|
|
412
|
-
logo: {
|
|
413
|
-
png: './brand/logo.png',
|
|
414
|
-
svg: './brand/logo.svg',
|
|
415
|
-
},
|
|
416
|
-
placeholder: './brand/placeholder.svg',
|
|
417
|
-
}
|