@atom-learning/theme 6.0.1 → 6.1.0-beta.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 CHANGED
@@ -12,7 +12,7 @@ If you need to add tokens that are not part of the [theme specification](https:/
12
12
  - first level: the `category` mentioned in the step above
13
13
  - second level: the `type` mentioned in the step above
14
14
  - third level: the token name, as you would use it with `$`, e.g.: `$16-9`
15
- - fourth level: `value`, the value the token will be replaced by.
15
+ - fourth level: `$value`, the value the token will be replaced by (token sources use the [DTCG format](https://tr.designtokens.org/format/); groups may also declare a `$type`).
16
16
 
17
17
  e.g.:
18
18
  ```json
@@ -20,19 +20,19 @@ If you need to add tokens that are not part of the [theme specification](https:/
20
20
  "ratios": {
21
21
  "ratio": {
22
22
  "16-9": {
23
- "value": "16/9"
23
+ "$value": "16/9"
24
24
  },
25
25
  "3-2": {
26
- "value": "3/2"
26
+ "$value": "3/2"
27
27
  },
28
28
  "4-3": {
29
- "value": "4/3"
29
+ "$value": "4/3"
30
30
  },
31
31
  "1-1": {
32
- "value": "1/1"
32
+ "$value": "1/1"
33
33
  },
34
34
  "3-4": {
35
- "value": "3/4"
35
+ "$value": "3/4"
36
36
  }
37
37
  }
38
38
  }
@@ -67,3 +67,31 @@ const stitchesConfig = createStitches({
67
67
 
68
68
  ### Why/When do we need `themeMap`?
69
69
  Some CSS properties are not included in the [defaultThemeMap](https://stitches.dev/docs/api#defaultthememap). If they are missing (e.g.: aspectRatio) you need to add them to our custom `themeMap` which we pass to stitches [themeMap](https://stitches.dev/docs/api#thememap) config
70
+
71
+ ## Native outputs (Swift & Kotlin)
72
+
73
+ Alongside the web outputs, the build emits the tokens in native-consumable form for the iOS and Android apps:
74
+
75
+ - `lib/theme-*.swift` — a `ThemeTokens` enum of SwiftUI `Color(red:green:blue:opacity:)` and `CGFloat` constants (style-dictionary's `ios-swift/enum.swift` format)
76
+ - `lib/theme-*.kt` — the equivalent Compose `Color(0xAARRGGBB)`, `.sp`/`.dp` constants in `package uk.co.atomlearning.theme` (style-dictionary's `compose/object` format)
77
+
78
+ Values are converted at build time by style-dictionary's built-in transforms (`color/ColorSwiftUI`, `color/composeColor`, `size/swift/remToCGFloat`, `size/compose/remToSp`, `size/compose/remToDp`), driven by the `$type` declared on each token group: colours from hsl()/hex to sRGB components, `size.font`/`size.radii`/`size.space` from rem to pt (× 16). `size.leading` has no transform on purpose — the multipliers pass through unitless. Constant names come from the custom `name/native/camel` transform in `src/native.ts`: flat camelCase from the token path (`color.blue.800` → `blue800`, `size.font.sm` → `fontSm`) — **renames are breaking** for the native apps.
79
+
80
+ Deliberately excluded: `font.families.*` (web font stacks — the apps bundle their own fonts), `size.breakpoint.*` (windowed-web concern) and `effects.*` (CSS box-shadow strings don't translate to native shadow parameters).
81
+
82
+ The files ship inside the npm tarball; the native repos vendor the file for a pinned version (e.g. fetched from unpkg in their build). There is no Swift Package or Maven artifact.
83
+
84
+ ## Testing
85
+
86
+ `yarn test` (watch) and `yarn test:run` (single run) both build first via a `pretest` hook, so the suite never asserts against stale `lib/` output. CI runs the same suite on every PR (`.github/workflows/ci.yml`), plus `yarn validate:types`.
87
+
88
+ The suite is output-focused — it builds the package and inspects the real artifacts in `lib/`:
89
+
90
+ - `test/theme.test.ts` — JS / CSS / `.d.ts` / media query structure and formatting
91
+ - `test/completeness.test.ts` — reconciles the token sources against every output, so a filter or naming regression that silently drops tokens fails the build
92
+ - `test/values.test.ts` — exact values for shadows, breakpoints and font stacks, and cross-output consistency (Swift colours are re-derived from the source hsl and checked against the JS theme and the Kotlin output)
93
+ - `test/native.test.ts` — Swift/Kotlin structure, conversions and per-theme filtering
94
+ - `test/native-compile.test.ts` — compiles the generated files with `swiftc` and `kotlinc`. These tests **skip when the toolchain is absent**, so a local run without Xcode or Kotlin still passes. Both CI runners have them (GitHub's Ubuntu image ships Swift and Kotlin; the macOS job additionally validates against the real Xcode toolchain), so they always execute in CI. Invoking a real compiler far exceeds vitest's default 5s timeout, hence the explicit `COMPILE_TIMEOUT`
95
+ - `test/assets.test.ts` — every `package.json` export target, `typesVersions` path and copied asset exists and is non-empty
96
+
97
+ One known failure is encoded as an expected failure (`it.fails`) in `test/completeness.test.ts`: the CSS formatters emit `--color-coolGrey-100` while the JS/`.d.ts` `properties` map declares `--color-cool-grey-100`, so `var(--color-cool-grey-100)` resolves to nothing. This predates the native outputs work; remove the `.fails` marker when the naming is reconciled.
@@ -0,0 +1,25 @@
1
+
2
+
3
+ // Do not edit directly, this file was auto-generated.
4
+
5
+
6
+
7
+ package uk.co.atomlearning.theme
8
+
9
+ import androidx.compose.ui.graphics.Color
10
+ import androidx.compose.ui.unit.*
11
+
12
+ object ThemeTokens {
13
+ val primary100 = Color(0xfff5f9ff)
14
+ val primary1000 = Color(0xff102da2)
15
+ val primary1100 = Color(0xff162460)
16
+ val primary1200 = Color(0xff0c132c)
17
+ val primary200 = Color(0xffe5f1ff)
18
+ val primary300 = Color(0xffd6eaff)
19
+ val primary400 = Color(0xffc2dfff)
20
+ val primary500 = Color(0xff99c9ff)
21
+ val primary600 = Color(0xff6baeff)
22
+ val primary700 = Color(0xff2986ff)
23
+ val primary800 = Color(0xff0f67f5)
24
+ val primary900 = Color(0xff184ac9)
25
+ }
@@ -0,0 +1,24 @@
1
+
2
+ //
3
+ // theme-atom.swift
4
+ //
5
+
6
+ // Do not edit directly, this file was auto-generated.
7
+
8
+
9
+ import SwiftUI
10
+
11
+ public enum ThemeTokens {
12
+ public static let primary100 = Color(red: 0.961, green: 0.976, blue: 1.000, opacity: 1)
13
+ public static let primary1000 = Color(red: 0.063, green: 0.176, blue: 0.635, opacity: 1)
14
+ public static let primary1100 = Color(red: 0.086, green: 0.141, blue: 0.376, opacity: 1)
15
+ public static let primary1200 = Color(red: 0.047, green: 0.075, blue: 0.173, opacity: 1)
16
+ public static let primary200 = Color(red: 0.898, green: 0.945, blue: 1.000, opacity: 1)
17
+ public static let primary300 = Color(red: 0.839, green: 0.918, blue: 1.000, opacity: 1)
18
+ public static let primary400 = Color(red: 0.761, green: 0.875, blue: 1.000, opacity: 1)
19
+ public static let primary500 = Color(red: 0.600, green: 0.788, blue: 1.000, opacity: 1)
20
+ public static let primary600 = Color(red: 0.420, green: 0.682, blue: 1.000, opacity: 1)
21
+ public static let primary700 = Color(red: 0.161, green: 0.525, blue: 1.000, opacity: 1)
22
+ public static let primary800 = Color(red: 0.059, green: 0.404, blue: 0.961, opacity: 1)
23
+ public static let primary900 = Color(red: 0.094, green: 0.290, blue: 0.788, opacity: 1)
24
+ }
@@ -0,0 +1,272 @@
1
+
2
+
3
+ // Do not edit directly, this file was auto-generated.
4
+
5
+
6
+
7
+ package uk.co.atomlearning.theme
8
+
9
+ import androidx.compose.ui.graphics.Color
10
+ import androidx.compose.ui.unit.*
11
+
12
+ object ThemeTokens {
13
+ val alpha100 = Color(0x1a333333)
14
+ val alpha150 = Color(0x26333333)
15
+ val alpha200 = Color(0x33333333)
16
+ val alpha250 = Color(0x40333333)
17
+ val alpha600 = Color(0x99333333)
18
+ val background = Color(0xfff5f5f5)
19
+ val backgroundAccent = Color(0xfff5f9ff)
20
+ val black = Color(0xff000000)
21
+ val blue100 = Color(0xfff5f9ff)
22
+ val blue1000 = Color(0xff102da2)
23
+ val blue1100 = Color(0xff162460)
24
+ val blue1200 = Color(0xff0c132c)
25
+ val blue200 = Color(0xffe5f1ff)
26
+ val blue300 = Color(0xffd6eaff)
27
+ val blue400 = Color(0xffc2dfff)
28
+ val blue500 = Color(0xff99c9ff)
29
+ val blue600 = Color(0xff6baeff)
30
+ val blue700 = Color(0xff2986ff)
31
+ val blue800 = Color(0xff0f67f5)
32
+ val blue900 = Color(0xff184ac9)
33
+ val coolGrey100 = Color(0xfff4f8fb)
34
+ val coolGrey1000 = Color(0xff1d242a)
35
+ val coolGrey1100 = Color(0xff161d22)
36
+ val coolGrey1200 = Color(0xff0f1215)
37
+ val coolGrey200 = Color(0xffe7eef3)
38
+ val coolGrey300 = Color(0xffdfe6ec)
39
+ val coolGrey400 = Color(0xffcbd5dc)
40
+ val coolGrey500 = Color(0xffb8c3cc)
41
+ val coolGrey600 = Color(0xff99a7b2)
42
+ val coolGrey700 = Color(0xff727e88)
43
+ val coolGrey800 = Color(0xff4f5a63)
44
+ val coolGrey900 = Color(0xff303941)
45
+ val cyan100 = Color(0xfff0faff)
46
+ val cyan1000 = Color(0xff003e6b)
47
+ val cyan1100 = Color(0xff012b4b)
48
+ val cyan1200 = Color(0xff061928)
49
+ val cyan200 = Color(0xffe0f5ff)
50
+ val cyan300 = Color(0xffc7ebff)
51
+ val cyan400 = Color(0xffade4ff)
52
+ val cyan500 = Color(0xff78cefc)
53
+ val cyan600 = Color(0xff42b0f0)
54
+ val cyan700 = Color(0xff1688d4)
55
+ val cyan800 = Color(0xff0071c2)
56
+ val cyan900 = Color(0xff005799)
57
+ val danger = Color(0xfff00505)
58
+ val dangerDark = Color(0xffab0303)
59
+ val dangerLight = Color(0xfffce8e8)
60
+ val dangerMid = Color(0xffcd0404)
61
+ val font2xl = 37.00.sp
62
+ val font3xl = 50.00.sp
63
+ val font4xl = 90.00.sp
64
+ val fontLg = 21.00.sp
65
+ val fontMd = 16.00.sp
66
+ val fontSm = 14.00.sp
67
+ val fontXl = 28.00.sp
68
+ val fontXs = 12.00.sp
69
+ val glBlueDark = Color(0xff475e94)
70
+ val glBlueLight = Color(0xffa1b8ed)
71
+ val glBluePrimary = Color(0xff4c73cd)
72
+ val green100 = Color(0xffe1feef)
73
+ val green1000 = Color(0xff115545)
74
+ val green1100 = Color(0xff033028)
75
+ val green1200 = Color(0xff01190f)
76
+ val green200 = Color(0xffd2fee7)
77
+ val green300 = Color(0xffb7fad5)
78
+ val green400 = Color(0xff72f3ae)
79
+ val green500 = Color(0xff32e284)
80
+ val green600 = Color(0xff1acb6d)
81
+ val green700 = Color(0xff0fa957)
82
+ val green800 = Color(0xff10845a)
83
+ val green900 = Color(0xff126954)
84
+ val grey100 = Color(0xfff5f5f5)
85
+ val grey1000 = Color(0xff1f1f1f)
86
+ val grey1100 = Color(0xff1a1a1a)
87
+ val grey1200 = Color(0xff0f0f0f)
88
+ val grey200 = Color(0xffebebeb)
89
+ val grey300 = Color(0xffe0e0e0)
90
+ val grey400 = Color(0xffcfcfcf)
91
+ val grey500 = Color(0xffbababa)
92
+ val grey600 = Color(0xff9e9e9e)
93
+ val grey700 = Color(0xff757575)
94
+ val grey800 = Color(0xff545454)
95
+ val grey900 = Color(0xff333333)
96
+ val info = Color(0xff0f67f5)
97
+ val infoDark = Color(0xff102da2)
98
+ val infoLight = Color(0xfff5f9ff)
99
+ val infoMid = Color(0xff184ac9)
100
+ val lapis100 = Color(0xfff0f6ff)
101
+ val lapis1000 = Color(0xff1b1b79)
102
+ val lapis1100 = Color(0xff060656)
103
+ val lapis1200 = Color(0xff01013c)
104
+ val lapis200 = Color(0xffe5f0ff)
105
+ val lapis300 = Color(0xffbde7ff)
106
+ val lapis400 = Color(0xffa8d1ff)
107
+ val lapis500 = Color(0xff88aefc)
108
+ val lapis600 = Color(0xff7288f3)
109
+ val lapis700 = Color(0xff6464ed)
110
+ val lapis800 = Color(0xff3c3ccd)
111
+ val lapis900 = Color(0xff292999)
112
+ val leading2xl = 1.08
113
+ val leading3xl = 1.12
114
+ val leading4xl = 1
115
+ val leadingLg = 1.52
116
+ val leadingMd = 1.5
117
+ val leadingSm = 1.53
118
+ val leadingXl = 1.42
119
+ val leadingXs = 1.6
120
+ val lime100 = Color(0xfff7fedc)
121
+ val lime1000 = Color(0xff394d00)
122
+ val lime1100 = Color(0xff222e00)
123
+ val lime1200 = Color(0xff171f00)
124
+ val lime200 = Color(0xfff0fdbf)
125
+ val lime300 = Color(0xffe2f990)
126
+ val lime400 = Color(0xffd3f16f)
127
+ val lime500 = Color(0xffbbdd4b)
128
+ val lime600 = Color(0xff93b918)
129
+ val lime700 = Color(0xff779e00)
130
+ val lime800 = Color(0xff678a00)
131
+ val lime900 = Color(0xff496100)
132
+ val magenta100 = Color(0xfffffafc)
133
+ val magenta1000 = Color(0xff77093a)
134
+ val magenta1100 = Color(0xff500225)
135
+ val magenta1200 = Color(0xff290a17)
136
+ val magenta200 = Color(0xffffebf5)
137
+ val magenta300 = Color(0xffffd6e9)
138
+ val magenta400 = Color(0xffffcce3)
139
+ val magenta500 = Color(0xfffa9ec7)
140
+ val magenta600 = Color(0xfff679b1)
141
+ val magenta700 = Color(0xffe5488f)
142
+ val magenta800 = Color(0xffd32774)
143
+ val magenta900 = Color(0xffa01855)
144
+ val maroon100 = Color(0xfffff7f5)
145
+ val maroon1000 = Color(0xff750f27)
146
+ val maroon1100 = Color(0xff580e2d)
147
+ val maroon1200 = Color(0xff37061a)
148
+ val maroon200 = Color(0xffffe5db)
149
+ val maroon300 = Color(0xffffcebd)
150
+ val maroon400 = Color(0xffffb499)
151
+ val maroon500 = Color(0xfff77e6e)
152
+ val maroon600 = Color(0xffe95c49)
153
+ val maroon700 = Color(0xffbb3725)
154
+ val maroon800 = Color(0xff9f1604)
155
+ val maroon900 = Color(0xff87081f)
156
+ val marsh100 = Color(0xfff0faf4)
157
+ val marsh1000 = Color(0xff26362d)
158
+ val marsh1100 = Color(0xff192920)
159
+ val marsh1200 = Color(0xff0f1412)
160
+ val marsh200 = Color(0xffd8e9e0)
161
+ val marsh300 = Color(0xffc5ddd0)
162
+ val marsh400 = Color(0xffa9cbb8)
163
+ val marsh500 = Color(0xff83af97)
164
+ val marsh600 = Color(0xff688d79)
165
+ val marsh700 = Color(0xff506d5d)
166
+ val marsh800 = Color(0xff395b48)
167
+ val marsh900 = Color(0xff284334)
168
+ val orange100 = Color(0xfffffaeb)
169
+ val orange1000 = Color(0xffc74200)
170
+ val orange1100 = Color(0xff8a2900)
171
+ val orange1200 = Color(0xff6b2000)
172
+ val orange200 = Color(0xfffff2c7)
173
+ val orange300 = Color(0xffffe48a)
174
+ val orange400 = Color(0xffffcf4d)
175
+ val orange500 = Color(0xffffb61a)
176
+ val orange600 = Color(0xfff99406)
177
+ val orange700 = Color(0xffff881a)
178
+ val orange800 = Color(0xfff86c1b)
179
+ val orange900 = Color(0xffeb5600)
180
+ val pink100 = Color(0xfffff5fd)
181
+ val pink1000 = Color(0xff822665)
182
+ val pink1100 = Color(0xff510139)
183
+ val pink1200 = Color(0xff3c012a)
184
+ val pink200 = Color(0xffffe5fb)
185
+ val pink300 = Color(0xffffccf6)
186
+ val pink400 = Color(0xffff99e9)
187
+ val pink500 = Color(0xfff37cd9)
188
+ val pink600 = Color(0xffef61cc)
189
+ val pink700 = Color(0xffd548b0)
190
+ val pink800 = Color(0xffb72a8f)
191
+ val pink900 = Color(0xff9a2376)
192
+ val purple100 = Color(0xfff7f6fe)
193
+ val purple1000 = Color(0xff452a89)
194
+ val purple1100 = Color(0xff2a195c)
195
+ val purple1200 = Color(0xff15083a)
196
+ val purple200 = Color(0xffeae9fc)
197
+ val purple300 = Color(0xffdedbfa)
198
+ val purple400 = Color(0xffc2bcf5)
199
+ val purple500 = Color(0xffa396ee)
200
+ val purple600 = Color(0xff846ce5)
201
+ val purple700 = Color(0xff815fdd)
202
+ val purple800 = Color(0xff5c42c2)
203
+ val purple900 = Color(0xff5231a5)
204
+ val radiiLg = 12.00.dp
205
+ val radiiMd = 8.00.dp
206
+ val radiiSm = 4.00.dp
207
+ val radiiXl = 16.00.dp
208
+ val red100 = Color(0xfffffafa)
209
+ val red1000 = Color(0xff770e13)
210
+ val red1100 = Color(0xff530408)
211
+ val red1200 = Color(0xff2c0709)
212
+ val red200 = Color(0xffffebeb)
213
+ val red300 = Color(0xffffdbdd)
214
+ val red400 = Color(0xffffcccf)
215
+ val red500 = Color(0xfffdaab0)
216
+ val red600 = Color(0xfff87c82)
217
+ val red700 = Color(0xffea434b)
218
+ val red800 = Color(0xffdc1e27)
219
+ val red900 = Color(0xffa31920)
220
+ val space = 4.00.dp
221
+ val subjectCreativeWriting = Color(0xffff881a)
222
+ val subjectEnglish = Color(0xffe5488f)
223
+ val subjectExamSkills = Color(0xff452a89)
224
+ val subjectGcseBiology = Color(0xff0fa957)
225
+ val subjectGcseChemistry = Color(0xffff881a)
226
+ val subjectGcseEnglishLanguage = Color(0xff815fdd)
227
+ val subjectGcseEnglishLiterature = Color(0xffe5488f)
228
+ val subjectGcseMaths = Color(0xff2986ff)
229
+ val subjectGcsePhysics = Color(0xff727e88)
230
+ val subjectMaths = Color(0xff2986ff)
231
+ val subjectNonVerbalReasoning = Color(0xffffb61a)
232
+ val subjectScience = Color(0xff815fdd)
233
+ val subjectVerbalReasoning = Color(0xff0fa957)
234
+ val success = Color(0xff028a00)
235
+ val successDark = Color(0xff005709)
236
+ val successLight = Color(0xffe9f6e9)
237
+ val successMid = Color(0xff007007)
238
+ val teal100 = Color(0xffe8fdfd)
239
+ val teal1000 = Color(0xff003f42)
240
+ val teal1100 = Color(0xff022b31)
241
+ val teal1200 = Color(0xff081a1c)
242
+ val teal200 = Color(0xffc9f7f7)
243
+ val teal300 = Color(0xff9fefef)
244
+ val teal400 = Color(0xff81e9e7)
245
+ val teal500 = Color(0xff35d4d2)
246
+ val teal600 = Color(0xff19b8b5)
247
+ val teal700 = Color(0xff079795)
248
+ val teal800 = Color(0xff00807b)
249
+ val teal900 = Color(0xff005c5c)
250
+ val textBold = Color(0xff1f1f1f)
251
+ val textMinimal = Color(0xff757575)
252
+ val textRegular = Color(0xff333333)
253
+ val textSubtle = Color(0xff545454)
254
+ val warning = Color(0xffffb61a)
255
+ val warningDark = Color(0xffd18f00)
256
+ val warningLight = Color(0xfffff4e0)
257
+ val warningMid = Color(0xffe7a20d)
258
+ val warningText = Color(0xffbd4b00)
259
+ val white = Color(0xffffffff)
260
+ val yellow100 = Color(0xfffefadc)
261
+ val yellow1000 = Color(0xff5c4300)
262
+ val yellow1100 = Color(0xff382600)
263
+ val yellow1200 = Color(0xff291b00)
264
+ val yellow200 = Color(0xfffcf5b6)
265
+ val yellow300 = Color(0xfffaee85)
266
+ val yellow400 = Color(0xfffce445)
267
+ val yellow500 = Color(0xffebc700)
268
+ val yellow600 = Color(0xffc7a200)
269
+ val yellow700 = Color(0xffb38f00)
270
+ val yellow800 = Color(0xff997500)
271
+ val yellow900 = Color(0xff705200)
272
+ }
@@ -0,0 +1,271 @@
1
+
2
+ //
3
+ // theme-base.swift
4
+ //
5
+
6
+ // Do not edit directly, this file was auto-generated.
7
+
8
+
9
+ import SwiftUI
10
+
11
+ public enum ThemeTokens {
12
+ public static let alpha100 = Color(red: 0.200, green: 0.200, blue: 0.200, opacity: 0.1)
13
+ public static let alpha150 = Color(red: 0.200, green: 0.200, blue: 0.200, opacity: 0.15)
14
+ public static let alpha200 = Color(red: 0.200, green: 0.200, blue: 0.200, opacity: 0.2)
15
+ public static let alpha250 = Color(red: 0.200, green: 0.200, blue: 0.200, opacity: 0.25)
16
+ public static let alpha600 = Color(red: 0.200, green: 0.200, blue: 0.200, opacity: 0.6)
17
+ public static let background = Color(red: 0.961, green: 0.961, blue: 0.961, opacity: 1)
18
+ public static let backgroundAccent = Color(red: 0.961, green: 0.976, blue: 1.000, opacity: 1)
19
+ public static let black = Color(red: 0.000, green: 0.000, blue: 0.000, opacity: 1)
20
+ public static let blue100 = Color(red: 0.961, green: 0.976, blue: 1.000, opacity: 1)
21
+ public static let blue1000 = Color(red: 0.063, green: 0.176, blue: 0.635, opacity: 1)
22
+ public static let blue1100 = Color(red: 0.086, green: 0.141, blue: 0.376, opacity: 1)
23
+ public static let blue1200 = Color(red: 0.047, green: 0.075, blue: 0.173, opacity: 1)
24
+ public static let blue200 = Color(red: 0.898, green: 0.945, blue: 1.000, opacity: 1)
25
+ public static let blue300 = Color(red: 0.839, green: 0.918, blue: 1.000, opacity: 1)
26
+ public static let blue400 = Color(red: 0.761, green: 0.875, blue: 1.000, opacity: 1)
27
+ public static let blue500 = Color(red: 0.600, green: 0.788, blue: 1.000, opacity: 1)
28
+ public static let blue600 = Color(red: 0.420, green: 0.682, blue: 1.000, opacity: 1)
29
+ public static let blue700 = Color(red: 0.161, green: 0.525, blue: 1.000, opacity: 1)
30
+ public static let blue800 = Color(red: 0.059, green: 0.404, blue: 0.961, opacity: 1)
31
+ public static let blue900 = Color(red: 0.094, green: 0.290, blue: 0.788, opacity: 1)
32
+ public static let coolGrey100 = Color(red: 0.957, green: 0.973, blue: 0.984, opacity: 1)
33
+ public static let coolGrey1000 = Color(red: 0.114, green: 0.141, blue: 0.165, opacity: 1)
34
+ public static let coolGrey1100 = Color(red: 0.086, green: 0.114, blue: 0.133, opacity: 1)
35
+ public static let coolGrey1200 = Color(red: 0.059, green: 0.071, blue: 0.082, opacity: 1)
36
+ public static let coolGrey200 = Color(red: 0.906, green: 0.933, blue: 0.953, opacity: 1)
37
+ public static let coolGrey300 = Color(red: 0.875, green: 0.902, blue: 0.925, opacity: 1)
38
+ public static let coolGrey400 = Color(red: 0.796, green: 0.835, blue: 0.863, opacity: 1)
39
+ public static let coolGrey500 = Color(red: 0.722, green: 0.765, blue: 0.800, opacity: 1)
40
+ public static let coolGrey600 = Color(red: 0.600, green: 0.655, blue: 0.698, opacity: 1)
41
+ public static let coolGrey700 = Color(red: 0.447, green: 0.494, blue: 0.533, opacity: 1)
42
+ public static let coolGrey800 = Color(red: 0.310, green: 0.353, blue: 0.388, opacity: 1)
43
+ public static let coolGrey900 = Color(red: 0.188, green: 0.224, blue: 0.255, opacity: 1)
44
+ public static let cyan100 = Color(red: 0.941, green: 0.980, blue: 1.000, opacity: 1)
45
+ public static let cyan1000 = Color(red: 0.000, green: 0.243, blue: 0.420, opacity: 1)
46
+ public static let cyan1100 = Color(red: 0.004, green: 0.169, blue: 0.294, opacity: 1)
47
+ public static let cyan1200 = Color(red: 0.024, green: 0.098, blue: 0.157, opacity: 1)
48
+ public static let cyan200 = Color(red: 0.878, green: 0.961, blue: 1.000, opacity: 1)
49
+ public static let cyan300 = Color(red: 0.780, green: 0.922, blue: 1.000, opacity: 1)
50
+ public static let cyan400 = Color(red: 0.678, green: 0.894, blue: 1.000, opacity: 1)
51
+ public static let cyan500 = Color(red: 0.471, green: 0.808, blue: 0.988, opacity: 1)
52
+ public static let cyan600 = Color(red: 0.259, green: 0.690, blue: 0.941, opacity: 1)
53
+ public static let cyan700 = Color(red: 0.086, green: 0.533, blue: 0.831, opacity: 1)
54
+ public static let cyan800 = Color(red: 0.000, green: 0.443, blue: 0.761, opacity: 1)
55
+ public static let cyan900 = Color(red: 0.000, green: 0.341, blue: 0.600, opacity: 1)
56
+ public static let danger = Color(red: 0.941, green: 0.020, blue: 0.020, opacity: 1)
57
+ public static let dangerDark = Color(red: 0.671, green: 0.012, blue: 0.012, opacity: 1)
58
+ public static let dangerLight = Color(red: 0.988, green: 0.910, blue: 0.910, opacity: 1)
59
+ public static let dangerMid = Color(red: 0.804, green: 0.016, blue: 0.016, opacity: 1)
60
+ public static let font2xl = CGFloat(37.00)
61
+ public static let font3xl = CGFloat(50.00)
62
+ public static let font4xl = CGFloat(90.00)
63
+ public static let fontLg = CGFloat(21.00)
64
+ public static let fontMd = CGFloat(16.00)
65
+ public static let fontSm = CGFloat(14.00)
66
+ public static let fontXl = CGFloat(28.00)
67
+ public static let fontXs = CGFloat(12.00)
68
+ public static let glBlueDark = Color(red: 0.278, green: 0.369, blue: 0.580, opacity: 1)
69
+ public static let glBlueLight = Color(red: 0.631, green: 0.722, blue: 0.929, opacity: 1)
70
+ public static let glBluePrimary = Color(red: 0.298, green: 0.451, blue: 0.804, opacity: 1)
71
+ public static let green100 = Color(red: 0.882, green: 0.996, blue: 0.937, opacity: 1)
72
+ public static let green1000 = Color(red: 0.067, green: 0.333, blue: 0.271, opacity: 1)
73
+ public static let green1100 = Color(red: 0.012, green: 0.188, blue: 0.157, opacity: 1)
74
+ public static let green1200 = Color(red: 0.004, green: 0.098, blue: 0.059, opacity: 1)
75
+ public static let green200 = Color(red: 0.824, green: 0.996, blue: 0.906, opacity: 1)
76
+ public static let green300 = Color(red: 0.718, green: 0.980, blue: 0.835, opacity: 1)
77
+ public static let green400 = Color(red: 0.447, green: 0.953, blue: 0.682, opacity: 1)
78
+ public static let green500 = Color(red: 0.196, green: 0.886, blue: 0.518, opacity: 1)
79
+ public static let green600 = Color(red: 0.102, green: 0.796, blue: 0.427, opacity: 1)
80
+ public static let green700 = Color(red: 0.059, green: 0.663, blue: 0.341, opacity: 1)
81
+ public static let green800 = Color(red: 0.063, green: 0.518, blue: 0.353, opacity: 1)
82
+ public static let green900 = Color(red: 0.071, green: 0.412, blue: 0.329, opacity: 1)
83
+ public static let grey100 = Color(red: 0.961, green: 0.961, blue: 0.961, opacity: 1)
84
+ public static let grey1000 = Color(red: 0.122, green: 0.122, blue: 0.122, opacity: 1)
85
+ public static let grey1100 = Color(red: 0.102, green: 0.102, blue: 0.102, opacity: 1)
86
+ public static let grey1200 = Color(red: 0.059, green: 0.059, blue: 0.059, opacity: 1)
87
+ public static let grey200 = Color(red: 0.922, green: 0.922, blue: 0.922, opacity: 1)
88
+ public static let grey300 = Color(red: 0.878, green: 0.878, blue: 0.878, opacity: 1)
89
+ public static let grey400 = Color(red: 0.812, green: 0.812, blue: 0.812, opacity: 1)
90
+ public static let grey500 = Color(red: 0.729, green: 0.729, blue: 0.729, opacity: 1)
91
+ public static let grey600 = Color(red: 0.620, green: 0.620, blue: 0.620, opacity: 1)
92
+ public static let grey700 = Color(red: 0.459, green: 0.459, blue: 0.459, opacity: 1)
93
+ public static let grey800 = Color(red: 0.329, green: 0.329, blue: 0.329, opacity: 1)
94
+ public static let grey900 = Color(red: 0.200, green: 0.200, blue: 0.200, opacity: 1)
95
+ public static let info = Color(red: 0.059, green: 0.404, blue: 0.961, opacity: 1)
96
+ public static let infoDark = Color(red: 0.063, green: 0.176, blue: 0.635, opacity: 1)
97
+ public static let infoLight = Color(red: 0.961, green: 0.976, blue: 1.000, opacity: 1)
98
+ public static let infoMid = Color(red: 0.094, green: 0.290, blue: 0.788, opacity: 1)
99
+ public static let lapis100 = Color(red: 0.941, green: 0.965, blue: 1.000, opacity: 1)
100
+ public static let lapis1000 = Color(red: 0.106, green: 0.106, blue: 0.475, opacity: 1)
101
+ public static let lapis1100 = Color(red: 0.024, green: 0.024, blue: 0.337, opacity: 1)
102
+ public static let lapis1200 = Color(red: 0.004, green: 0.004, blue: 0.235, opacity: 1)
103
+ public static let lapis200 = Color(red: 0.898, green: 0.941, blue: 1.000, opacity: 1)
104
+ public static let lapis300 = Color(red: 0.741, green: 0.906, blue: 1.000, opacity: 1)
105
+ public static let lapis400 = Color(red: 0.659, green: 0.820, blue: 1.000, opacity: 1)
106
+ public static let lapis500 = Color(red: 0.533, green: 0.682, blue: 0.988, opacity: 1)
107
+ public static let lapis600 = Color(red: 0.447, green: 0.533, blue: 0.953, opacity: 1)
108
+ public static let lapis700 = Color(red: 0.392, green: 0.392, blue: 0.929, opacity: 1)
109
+ public static let lapis800 = Color(red: 0.235, green: 0.235, blue: 0.804, opacity: 1)
110
+ public static let lapis900 = Color(red: 0.161, green: 0.161, blue: 0.600, opacity: 1)
111
+ public static let leading2xl = 1.08
112
+ public static let leading3xl = 1.12
113
+ public static let leading4xl = 1
114
+ public static let leadingLg = 1.52
115
+ public static let leadingMd = 1.5
116
+ public static let leadingSm = 1.53
117
+ public static let leadingXl = 1.42
118
+ public static let leadingXs = 1.6
119
+ public static let lime100 = Color(red: 0.969, green: 0.996, blue: 0.863, opacity: 1)
120
+ public static let lime1000 = Color(red: 0.224, green: 0.302, blue: 0.000, opacity: 1)
121
+ public static let lime1100 = Color(red: 0.133, green: 0.180, blue: 0.000, opacity: 1)
122
+ public static let lime1200 = Color(red: 0.090, green: 0.122, blue: 0.000, opacity: 1)
123
+ public static let lime200 = Color(red: 0.941, green: 0.992, blue: 0.749, opacity: 1)
124
+ public static let lime300 = Color(red: 0.886, green: 0.976, blue: 0.565, opacity: 1)
125
+ public static let lime400 = Color(red: 0.827, green: 0.945, blue: 0.435, opacity: 1)
126
+ public static let lime500 = Color(red: 0.733, green: 0.867, blue: 0.294, opacity: 1)
127
+ public static let lime600 = Color(red: 0.576, green: 0.725, blue: 0.094, opacity: 1)
128
+ public static let lime700 = Color(red: 0.467, green: 0.620, blue: 0.000, opacity: 1)
129
+ public static let lime800 = Color(red: 0.404, green: 0.541, blue: 0.000, opacity: 1)
130
+ public static let lime900 = Color(red: 0.286, green: 0.380, blue: 0.000, opacity: 1)
131
+ public static let magenta100 = Color(red: 1.000, green: 0.980, blue: 0.988, opacity: 1)
132
+ public static let magenta1000 = Color(red: 0.467, green: 0.035, blue: 0.227, opacity: 1)
133
+ public static let magenta1100 = Color(red: 0.314, green: 0.008, blue: 0.145, opacity: 1)
134
+ public static let magenta1200 = Color(red: 0.161, green: 0.039, blue: 0.090, opacity: 1)
135
+ public static let magenta200 = Color(red: 1.000, green: 0.922, blue: 0.961, opacity: 1)
136
+ public static let magenta300 = Color(red: 1.000, green: 0.839, blue: 0.914, opacity: 1)
137
+ public static let magenta400 = Color(red: 1.000, green: 0.800, blue: 0.890, opacity: 1)
138
+ public static let magenta500 = Color(red: 0.980, green: 0.620, blue: 0.780, opacity: 1)
139
+ public static let magenta600 = Color(red: 0.965, green: 0.475, blue: 0.694, opacity: 1)
140
+ public static let magenta700 = Color(red: 0.898, green: 0.282, blue: 0.561, opacity: 1)
141
+ public static let magenta800 = Color(red: 0.827, green: 0.153, blue: 0.455, opacity: 1)
142
+ public static let magenta900 = Color(red: 0.627, green: 0.094, blue: 0.333, opacity: 1)
143
+ public static let maroon100 = Color(red: 1.000, green: 0.969, blue: 0.961, opacity: 1)
144
+ public static let maroon1000 = Color(red: 0.459, green: 0.059, blue: 0.153, opacity: 1)
145
+ public static let maroon1100 = Color(red: 0.345, green: 0.055, blue: 0.176, opacity: 1)
146
+ public static let maroon1200 = Color(red: 0.216, green: 0.024, blue: 0.102, opacity: 1)
147
+ public static let maroon200 = Color(red: 1.000, green: 0.898, blue: 0.859, opacity: 1)
148
+ public static let maroon300 = Color(red: 1.000, green: 0.808, blue: 0.741, opacity: 1)
149
+ public static let maroon400 = Color(red: 1.000, green: 0.706, blue: 0.600, opacity: 1)
150
+ public static let maroon500 = Color(red: 0.969, green: 0.494, blue: 0.431, opacity: 1)
151
+ public static let maroon600 = Color(red: 0.914, green: 0.361, blue: 0.286, opacity: 1)
152
+ public static let maroon700 = Color(red: 0.733, green: 0.216, blue: 0.145, opacity: 1)
153
+ public static let maroon800 = Color(red: 0.624, green: 0.086, blue: 0.016, opacity: 1)
154
+ public static let maroon900 = Color(red: 0.529, green: 0.031, blue: 0.122, opacity: 1)
155
+ public static let marsh100 = Color(red: 0.941, green: 0.980, blue: 0.957, opacity: 1)
156
+ public static let marsh1000 = Color(red: 0.149, green: 0.212, blue: 0.176, opacity: 1)
157
+ public static let marsh1100 = Color(red: 0.098, green: 0.161, blue: 0.125, opacity: 1)
158
+ public static let marsh1200 = Color(red: 0.059, green: 0.078, blue: 0.071, opacity: 1)
159
+ public static let marsh200 = Color(red: 0.847, green: 0.914, blue: 0.878, opacity: 1)
160
+ public static let marsh300 = Color(red: 0.773, green: 0.867, blue: 0.816, opacity: 1)
161
+ public static let marsh400 = Color(red: 0.663, green: 0.796, blue: 0.722, opacity: 1)
162
+ public static let marsh500 = Color(red: 0.514, green: 0.686, blue: 0.592, opacity: 1)
163
+ public static let marsh600 = Color(red: 0.408, green: 0.553, blue: 0.475, opacity: 1)
164
+ public static let marsh700 = Color(red: 0.314, green: 0.427, blue: 0.365, opacity: 1)
165
+ public static let marsh800 = Color(red: 0.224, green: 0.357, blue: 0.282, opacity: 1)
166
+ public static let marsh900 = Color(red: 0.157, green: 0.263, blue: 0.204, opacity: 1)
167
+ public static let orange100 = Color(red: 1.000, green: 0.980, blue: 0.922, opacity: 1)
168
+ public static let orange1000 = Color(red: 0.780, green: 0.259, blue: 0.000, opacity: 1)
169
+ public static let orange1100 = Color(red: 0.541, green: 0.161, blue: 0.000, opacity: 1)
170
+ public static let orange1200 = Color(red: 0.420, green: 0.125, blue: 0.000, opacity: 1)
171
+ public static let orange200 = Color(red: 1.000, green: 0.949, blue: 0.780, opacity: 1)
172
+ public static let orange300 = Color(red: 1.000, green: 0.894, blue: 0.541, opacity: 1)
173
+ public static let orange400 = Color(red: 1.000, green: 0.812, blue: 0.302, opacity: 1)
174
+ public static let orange500 = Color(red: 1.000, green: 0.714, blue: 0.102, opacity: 1)
175
+ public static let orange600 = Color(red: 0.976, green: 0.580, blue: 0.024, opacity: 1)
176
+ public static let orange700 = Color(red: 1.000, green: 0.533, blue: 0.102, opacity: 1)
177
+ public static let orange800 = Color(red: 0.973, green: 0.424, blue: 0.106, opacity: 1)
178
+ public static let orange900 = Color(red: 0.922, green: 0.337, blue: 0.000, opacity: 1)
179
+ public static let pink100 = Color(red: 1.000, green: 0.961, blue: 0.992, opacity: 1)
180
+ public static let pink1000 = Color(red: 0.510, green: 0.149, blue: 0.396, opacity: 1)
181
+ public static let pink1100 = Color(red: 0.318, green: 0.004, blue: 0.224, opacity: 1)
182
+ public static let pink1200 = Color(red: 0.235, green: 0.004, blue: 0.165, opacity: 1)
183
+ public static let pink200 = Color(red: 1.000, green: 0.898, blue: 0.984, opacity: 1)
184
+ public static let pink300 = Color(red: 1.000, green: 0.800, blue: 0.965, opacity: 1)
185
+ public static let pink400 = Color(red: 1.000, green: 0.600, blue: 0.914, opacity: 1)
186
+ public static let pink500 = Color(red: 0.953, green: 0.486, blue: 0.851, opacity: 1)
187
+ public static let pink600 = Color(red: 0.937, green: 0.380, blue: 0.800, opacity: 1)
188
+ public static let pink700 = Color(red: 0.835, green: 0.282, blue: 0.690, opacity: 1)
189
+ public static let pink800 = Color(red: 0.718, green: 0.165, blue: 0.561, opacity: 1)
190
+ public static let pink900 = Color(red: 0.604, green: 0.137, blue: 0.463, opacity: 1)
191
+ public static let purple100 = Color(red: 0.969, green: 0.965, blue: 0.996, opacity: 1)
192
+ public static let purple1000 = Color(red: 0.271, green: 0.165, blue: 0.537, opacity: 1)
193
+ public static let purple1100 = Color(red: 0.165, green: 0.098, blue: 0.361, opacity: 1)
194
+ public static let purple1200 = Color(red: 0.082, green: 0.031, blue: 0.227, opacity: 1)
195
+ public static let purple200 = Color(red: 0.918, green: 0.914, blue: 0.988, opacity: 1)
196
+ public static let purple300 = Color(red: 0.871, green: 0.859, blue: 0.980, opacity: 1)
197
+ public static let purple400 = Color(red: 0.761, green: 0.737, blue: 0.961, opacity: 1)
198
+ public static let purple500 = Color(red: 0.639, green: 0.588, blue: 0.933, opacity: 1)
199
+ public static let purple600 = Color(red: 0.518, green: 0.424, blue: 0.898, opacity: 1)
200
+ public static let purple700 = Color(red: 0.506, green: 0.373, blue: 0.867, opacity: 1)
201
+ public static let purple800 = Color(red: 0.361, green: 0.259, blue: 0.761, opacity: 1)
202
+ public static let purple900 = Color(red: 0.322, green: 0.192, blue: 0.647, opacity: 1)
203
+ public static let radiiLg = CGFloat(12.00)
204
+ public static let radiiMd = CGFloat(8.00)
205
+ public static let radiiSm = CGFloat(4.00)
206
+ public static let radiiXl = CGFloat(16.00)
207
+ public static let red100 = Color(red: 1.000, green: 0.980, blue: 0.980, opacity: 1)
208
+ public static let red1000 = Color(red: 0.467, green: 0.055, blue: 0.075, opacity: 1)
209
+ public static let red1100 = Color(red: 0.325, green: 0.016, blue: 0.031, opacity: 1)
210
+ public static let red1200 = Color(red: 0.173, green: 0.027, blue: 0.035, opacity: 1)
211
+ public static let red200 = Color(red: 1.000, green: 0.922, blue: 0.922, opacity: 1)
212
+ public static let red300 = Color(red: 1.000, green: 0.859, blue: 0.867, opacity: 1)
213
+ public static let red400 = Color(red: 1.000, green: 0.800, blue: 0.812, opacity: 1)
214
+ public static let red500 = Color(red: 0.992, green: 0.667, blue: 0.690, opacity: 1)
215
+ public static let red600 = Color(red: 0.973, green: 0.486, blue: 0.510, opacity: 1)
216
+ public static let red700 = Color(red: 0.918, green: 0.263, blue: 0.294, opacity: 1)
217
+ public static let red800 = Color(red: 0.863, green: 0.118, blue: 0.153, opacity: 1)
218
+ public static let red900 = Color(red: 0.639, green: 0.098, blue: 0.125, opacity: 1)
219
+ public static let space = CGFloat(4.00)
220
+ public static let subjectCreativeWriting = Color(red: 1.000, green: 0.533, blue: 0.102, opacity: 1)
221
+ public static let subjectEnglish = Color(red: 0.898, green: 0.282, blue: 0.561, opacity: 1)
222
+ public static let subjectExamSkills = Color(red: 0.271, green: 0.165, blue: 0.537, opacity: 1)
223
+ public static let subjectGcseBiology = Color(red: 0.059, green: 0.663, blue: 0.341, opacity: 1)
224
+ public static let subjectGcseChemistry = Color(red: 1.000, green: 0.533, blue: 0.102, opacity: 1)
225
+ public static let subjectGcseEnglishLanguage = Color(red: 0.506, green: 0.373, blue: 0.867, opacity: 1)
226
+ public static let subjectGcseEnglishLiterature = Color(red: 0.898, green: 0.282, blue: 0.561, opacity: 1)
227
+ public static let subjectGcseMaths = Color(red: 0.161, green: 0.525, blue: 1.000, opacity: 1)
228
+ public static let subjectGcsePhysics = Color(red: 0.447, green: 0.494, blue: 0.533, opacity: 1)
229
+ public static let subjectMaths = Color(red: 0.161, green: 0.525, blue: 1.000, opacity: 1)
230
+ public static let subjectNonVerbalReasoning = Color(red: 1.000, green: 0.714, blue: 0.102, opacity: 1)
231
+ public static let subjectScience = Color(red: 0.506, green: 0.373, blue: 0.867, opacity: 1)
232
+ public static let subjectVerbalReasoning = Color(red: 0.059, green: 0.663, blue: 0.341, opacity: 1)
233
+ public static let success = Color(red: 0.008, green: 0.541, blue: 0.000, opacity: 1)
234
+ public static let successDark = Color(red: 0.000, green: 0.341, blue: 0.035, opacity: 1)
235
+ public static let successLight = Color(red: 0.914, green: 0.965, blue: 0.914, opacity: 1)
236
+ public static let successMid = Color(red: 0.000, green: 0.439, blue: 0.027, opacity: 1)
237
+ public static let teal100 = Color(red: 0.910, green: 0.992, blue: 0.992, opacity: 1)
238
+ public static let teal1000 = Color(red: 0.000, green: 0.247, blue: 0.259, opacity: 1)
239
+ public static let teal1100 = Color(red: 0.008, green: 0.169, blue: 0.192, opacity: 1)
240
+ public static let teal1200 = Color(red: 0.031, green: 0.102, blue: 0.110, opacity: 1)
241
+ public static let teal200 = Color(red: 0.788, green: 0.969, blue: 0.969, opacity: 1)
242
+ public static let teal300 = Color(red: 0.624, green: 0.937, blue: 0.937, opacity: 1)
243
+ public static let teal400 = Color(red: 0.506, green: 0.914, blue: 0.906, opacity: 1)
244
+ public static let teal500 = Color(red: 0.208, green: 0.831, blue: 0.824, opacity: 1)
245
+ public static let teal600 = Color(red: 0.098, green: 0.722, blue: 0.710, opacity: 1)
246
+ public static let teal700 = Color(red: 0.027, green: 0.592, blue: 0.584, opacity: 1)
247
+ public static let teal800 = Color(red: 0.000, green: 0.502, blue: 0.482, opacity: 1)
248
+ public static let teal900 = Color(red: 0.000, green: 0.361, blue: 0.361, opacity: 1)
249
+ public static let textBold = Color(red: 0.122, green: 0.122, blue: 0.122, opacity: 1)
250
+ public static let textMinimal = Color(red: 0.459, green: 0.459, blue: 0.459, opacity: 1)
251
+ public static let textRegular = Color(red: 0.200, green: 0.200, blue: 0.200, opacity: 1)
252
+ public static let textSubtle = Color(red: 0.329, green: 0.329, blue: 0.329, opacity: 1)
253
+ public static let warning = Color(red: 1.000, green: 0.714, blue: 0.102, opacity: 1)
254
+ public static let warningDark = Color(red: 0.820, green: 0.561, blue: 0.000, opacity: 1)
255
+ public static let warningLight = Color(red: 1.000, green: 0.957, blue: 0.878, opacity: 1)
256
+ public static let warningMid = Color(red: 0.906, green: 0.635, blue: 0.051, opacity: 1)
257
+ public static let warningText = Color(red: 0.741, green: 0.294, blue: 0.000, opacity: 1)
258
+ public static let white = Color(red: 1.000, green: 1.000, blue: 1.000, opacity: 1)
259
+ public static let yellow100 = Color(red: 0.996, green: 0.980, blue: 0.863, opacity: 1)
260
+ public static let yellow1000 = Color(red: 0.361, green: 0.263, blue: 0.000, opacity: 1)
261
+ public static let yellow1100 = Color(red: 0.220, green: 0.149, blue: 0.000, opacity: 1)
262
+ public static let yellow1200 = Color(red: 0.161, green: 0.106, blue: 0.000, opacity: 1)
263
+ public static let yellow200 = Color(red: 0.988, green: 0.961, blue: 0.714, opacity: 1)
264
+ public static let yellow300 = Color(red: 0.980, green: 0.933, blue: 0.522, opacity: 1)
265
+ public static let yellow400 = Color(red: 0.988, green: 0.894, blue: 0.271, opacity: 1)
266
+ public static let yellow500 = Color(red: 0.922, green: 0.780, blue: 0.000, opacity: 1)
267
+ public static let yellow600 = Color(red: 0.780, green: 0.635, blue: 0.000, opacity: 1)
268
+ public static let yellow700 = Color(red: 0.702, green: 0.561, blue: 0.000, opacity: 1)
269
+ public static let yellow800 = Color(red: 0.600, green: 0.459, blue: 0.000, opacity: 1)
270
+ public static let yellow900 = Color(red: 0.439, green: 0.322, blue: 0.000, opacity: 1)
271
+ }
@@ -0,0 +1,33 @@
1
+
2
+
3
+ // Do not edit directly, this file was auto-generated.
4
+
5
+
6
+
7
+ package uk.co.atomlearning.theme
8
+
9
+ import androidx.compose.ui.graphics.Color
10
+ import androidx.compose.ui.unit.*
11
+
12
+ object ThemeTokens {
13
+ val font2xl = 28.00.sp
14
+ val font3xl = 37.00.sp
15
+ val font4xl = 50.00.sp
16
+ val fontLg = 16.00.sp
17
+ val fontMd = 14.00.sp
18
+ val fontSm = 12.00.sp
19
+ val fontXl = 21.00.sp
20
+ val fontXs = 10.00.sp
21
+ val primary100 = Color(0xffeefcf5)
22
+ val primary1000 = Color(0xff004231)
23
+ val primary1100 = Color(0xff193326)
24
+ val primary1200 = Color(0xff101e17)
25
+ val primary200 = Color(0xffdef7eb)
26
+ val primary300 = Color(0xffbdebd4)
27
+ val primary400 = Color(0xff9fdfc0)
28
+ val primary500 = Color(0xff79cda5)
29
+ val primary600 = Color(0xff48b18b)
30
+ val primary700 = Color(0xff2c876b)
31
+ val primary800 = Color(0xff16795b)
32
+ val primary900 = Color(0xff004d38)
33
+ }
@@ -0,0 +1,32 @@
1
+
2
+ //
3
+ // theme-quest-reports.swift
4
+ //
5
+
6
+ // Do not edit directly, this file was auto-generated.
7
+
8
+
9
+ import SwiftUI
10
+
11
+ public enum ThemeTokens {
12
+ public static let font2xl = CGFloat(28.00)
13
+ public static let font3xl = CGFloat(37.00)
14
+ public static let font4xl = CGFloat(50.00)
15
+ public static let fontLg = CGFloat(16.00)
16
+ public static let fontMd = CGFloat(14.00)
17
+ public static let fontSm = CGFloat(12.00)
18
+ public static let fontXl = CGFloat(21.00)
19
+ public static let fontXs = CGFloat(10.00)
20
+ public static let primary100 = Color(red: 0.933, green: 0.988, blue: 0.961, opacity: 1)
21
+ public static let primary1000 = Color(red: 0.000, green: 0.259, blue: 0.192, opacity: 1)
22
+ public static let primary1100 = Color(red: 0.098, green: 0.200, blue: 0.149, opacity: 1)
23
+ public static let primary1200 = Color(red: 0.063, green: 0.118, blue: 0.090, opacity: 1)
24
+ public static let primary200 = Color(red: 0.871, green: 0.969, blue: 0.922, opacity: 1)
25
+ public static let primary300 = Color(red: 0.741, green: 0.922, blue: 0.831, opacity: 1)
26
+ public static let primary400 = Color(red: 0.624, green: 0.875, blue: 0.753, opacity: 1)
27
+ public static let primary500 = Color(red: 0.475, green: 0.804, blue: 0.647, opacity: 1)
28
+ public static let primary600 = Color(red: 0.282, green: 0.694, blue: 0.545, opacity: 1)
29
+ public static let primary700 = Color(red: 0.173, green: 0.529, blue: 0.420, opacity: 1)
30
+ public static let primary800 = Color(red: 0.086, green: 0.475, blue: 0.357, opacity: 1)
31
+ public static let primary900 = Color(red: 0.000, green: 0.302, blue: 0.220, opacity: 1)
32
+ }
@@ -0,0 +1,25 @@
1
+
2
+
3
+ // Do not edit directly, this file was auto-generated.
4
+
5
+
6
+
7
+ package uk.co.atomlearning.theme
8
+
9
+ import androidx.compose.ui.graphics.Color
10
+ import androidx.compose.ui.unit.*
11
+
12
+ object ThemeTokens {
13
+ val primary100 = Color(0xffeefcf5)
14
+ val primary1000 = Color(0xff004231)
15
+ val primary1100 = Color(0xff193326)
16
+ val primary1200 = Color(0xff101e17)
17
+ val primary200 = Color(0xffdef7eb)
18
+ val primary300 = Color(0xffbdebd4)
19
+ val primary400 = Color(0xff9fdfc0)
20
+ val primary500 = Color(0xff79cda5)
21
+ val primary600 = Color(0xff48b18b)
22
+ val primary700 = Color(0xff2c876b)
23
+ val primary800 = Color(0xff16795b)
24
+ val primary900 = Color(0xff004d38)
25
+ }
@@ -0,0 +1,24 @@
1
+
2
+ //
3
+ // theme-quest.swift
4
+ //
5
+
6
+ // Do not edit directly, this file was auto-generated.
7
+
8
+
9
+ import SwiftUI
10
+
11
+ public enum ThemeTokens {
12
+ public static let primary100 = Color(red: 0.933, green: 0.988, blue: 0.961, opacity: 1)
13
+ public static let primary1000 = Color(red: 0.000, green: 0.259, blue: 0.192, opacity: 1)
14
+ public static let primary1100 = Color(red: 0.098, green: 0.200, blue: 0.149, opacity: 1)
15
+ public static let primary1200 = Color(red: 0.063, green: 0.118, blue: 0.090, opacity: 1)
16
+ public static let primary200 = Color(red: 0.871, green: 0.969, blue: 0.922, opacity: 1)
17
+ public static let primary300 = Color(red: 0.741, green: 0.922, blue: 0.831, opacity: 1)
18
+ public static let primary400 = Color(red: 0.624, green: 0.875, blue: 0.753, opacity: 1)
19
+ public static let primary500 = Color(red: 0.475, green: 0.804, blue: 0.647, opacity: 1)
20
+ public static let primary600 = Color(red: 0.282, green: 0.694, blue: 0.545, opacity: 1)
21
+ public static let primary700 = Color(red: 0.173, green: 0.529, blue: 0.420, opacity: 1)
22
+ public static let primary800 = Color(red: 0.086, green: 0.475, blue: 0.357, opacity: 1)
23
+ public static let primary900 = Color(red: 0.000, green: 0.302, blue: 0.220, opacity: 1)
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom-learning/theme",
3
- "version": "6.0.1",
3
+ "version": "6.1.0-beta.0",
4
4
  "description": "Design tokens and assets for Atom Learning and Quest",
5
5
  "type": "module",
6
6
  "main": "lib/theme-base.js",
@@ -9,7 +9,9 @@
9
9
  "build": "node ./src/build.ts --path=./src/themes",
10
10
  "prepublishOnly": "run-s clean build test:run",
11
11
  "clean": "del ./lib",
12
+ "pretest": "run-s build",
12
13
  "test": "vitest",
14
+ "pretest:run": "run-s build",
13
15
  "test:run": "vitest run",
14
16
  "validate:types": "tsc --noEmit"
15
17
  },
@@ -20,6 +22,7 @@
20
22
  "license": "ISC",
21
23
  "devDependencies": {
22
24
  "@types/node": "^20.0.0",
25
+ "color2k": "^2.0.4",
23
26
  "del-cli": "^3.0.1",
24
27
  "dree": "^5.1.5",
25
28
  "npm-run-all": "^4.1.5",