braid-design-system 32.4.0 → 32.5.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/ToastContext.chunk.cjs +4 -2
  3. package/dist/ToastContext.chunk.mjs +4 -2
  4. package/dist/Toggle.chunk.cjs +31 -8
  5. package/dist/Toggle.chunk.mjs +35 -12
  6. package/dist/playroom/components.cjs +1 -0
  7. package/dist/playroom/components.mjs +1 -0
  8. package/dist/reset.d.ts +154 -2
  9. package/dist/side-effects/lib/themes/baseTokens/apac.cjs +42 -28
  10. package/dist/side-effects/lib/themes/baseTokens/apac.mjs +42 -28
  11. package/dist/side-effects/lib/themes/index.cjs +2 -0
  12. package/dist/side-effects/lib/themes/index.mjs +2 -0
  13. package/dist/side-effects/lib/themes/makeRuntimeTokens.cjs +8 -0
  14. package/dist/side-effects/lib/themes/makeRuntimeTokens.mjs +8 -0
  15. package/dist/side-effects/lib/themes/seekJobs/index.cjs +2 -0
  16. package/dist/side-effects/lib/themes/seekJobs/index.mjs +1 -0
  17. package/dist/styles/lib/components/TextLink/TextLink.css.cjs +1 -1
  18. package/dist/styles/lib/components/TextLink/TextLink.css.mjs +1 -1
  19. package/dist/styles/lib/components/Toggle/Toggle.css.cjs +6 -0
  20. package/dist/styles/lib/components/Toggle/Toggle.css.mjs +6 -0
  21. package/dist/styles/lib/components/private/Field/Field.css.cjs +7 -0
  22. package/dist/styles/lib/components/private/Field/Field.css.mjs +7 -0
  23. package/dist/styles/lib/components/private/InlineField/InlineField.css.cjs +15 -1
  24. package/dist/styles/lib/components/private/InlineField/InlineField.css.mjs +15 -1
  25. package/dist/styles/lib/themes/docs/tokens.cjs +1 -0
  26. package/dist/styles/lib/themes/docs/tokens.mjs +1 -0
  27. package/dist/styles/lib/themes/seekJobs/seekJobs.css.cjs +8 -0
  28. package/dist/styles/lib/themes/seekJobs/seekJobs.css.mjs +9 -0
  29. package/dist/styles/lib/themes/seekJobs/tokens.cjs +190 -0
  30. package/dist/styles/lib/themes/seekJobs/tokens.mjs +191 -0
  31. package/dist/styles/lib/themes/wireframe/tokens.cjs +1 -0
  32. package/dist/styles/lib/themes/wireframe/tokens.mjs +1 -0
  33. package/dist/themes/seekJobs.cjs +3 -0
  34. package/dist/themes/seekJobs.d.ts +1 -0
  35. package/dist/themes/seekJobs.mjs +4 -0
  36. package/dist/themes/wireframe.d.ts +1 -1
  37. package/package.json +8 -2
  38. package/themes/seekJobs/index.d.ts +2 -0
  39. package/themes/seekJobs/package.json +5 -0
@@ -17,6 +17,7 @@ const palette = {
17
17
  300: "#ABB3C1",
18
18
  200: "#D2D7DF",
19
19
  100: "#EAECF1",
20
+ 75: "#F3F5F7",
20
21
  50: "#F7F8FB"
21
22
  },
22
23
  seekPink: {
@@ -140,30 +141,42 @@ const palette = {
140
141
  50: "#F4F6FE"
141
142
  },
142
143
  violet: {
143
- 900: "#1E0B65",
144
- 800: "#341B87",
145
- 700: "#512EAA",
146
- 600: "#6C41CE",
147
- 500: "#8B5CEB",
148
- 400: "#AD84F2",
149
- 300: "#C6ACF5",
150
- 200: "#E1D1F9",
151
- 100: "#F1E8FD",
152
- 50: "#FAF5FE"
144
+ 900: "#120C64",
145
+ 800: "#241A83",
146
+ 700: "#392BA7",
147
+ 600: "#503DC9",
148
+ 500: "#6E56E6",
149
+ 400: "#937FEF",
150
+ 300: "#B5A7F4",
151
+ 200: "#D8D0FA",
152
+ 100: "#ECE9FC",
153
+ 50: "#F8F6FE"
153
154
  },
154
155
  purple: {
155
- 900: "#3C0B65",
156
- 800: "#581B87",
157
- 700: "#7C2EAA",
158
- 600: "#9D41CE",
159
- 500: "#BB5CEB",
160
- 400: "#D184F2",
161
- 300: "#DFACF5",
162
- 200: "#EED1F9",
163
- 100: "#F7E8FD",
164
- 50: "#FCF5FE"
156
+ 900: "#3E0F65",
157
+ 800: "#5B2084",
158
+ 700: "#7F35A9",
159
+ 600: "#A04BCB",
160
+ 500: "#BE68E8",
161
+ 400: "#D48EF1",
162
+ 300: "#E1B2F5",
163
+ 200: "#F0D6FA",
164
+ 100: "#F9EBFD",
165
+ 50: "#FDF7FE"
165
166
  }
166
167
  };
168
+ const legacyViolet = {
169
+ 900: "#1E0B65",
170
+ 800: "#341B87",
171
+ 700: "#512EAA",
172
+ 600: "#6C41CE",
173
+ 500: "#8B5CEB",
174
+ 400: "#AD84F2",
175
+ 300: "#C6ACF5",
176
+ 200: "#E1D1F9",
177
+ 100: "#F1E8FD",
178
+ 50: "#FAF5FE"
179
+ };
167
180
  const makeTokens = ({
168
181
  name,
169
182
  displayName,
@@ -184,6 +197,7 @@ const makeTokens = ({
184
197
  const tokens = {
185
198
  name,
186
199
  displayName,
200
+ legacy: true,
187
201
  typography: {
188
202
  fontFamily: 'Roboto, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',
189
203
  webFont: null,
@@ -339,8 +353,8 @@ const makeTokens = ({
339
353
  neutralInverted: white,
340
354
  positive: palette.mint["700"],
341
355
  positiveLight: palette.mint["300"],
342
- promote: palette.violet["700"],
343
- promoteLight: palette.violet["300"]
356
+ promote: legacyViolet["700"],
357
+ promoteLight: legacyViolet["300"]
344
358
  }
345
359
  },
346
360
  focusRingSize: 3,
@@ -376,14 +390,14 @@ const makeTokens = ({
376
390
  link: formAccent,
377
391
  linkLight: palette.indigo["300"],
378
392
  linkHover: formAccent,
379
- linkVisited: palette.violet["700"],
380
- linkLightVisited: palette.violet["300"],
393
+ linkVisited: legacyViolet["700"],
394
+ linkLightVisited: legacyViolet["300"],
381
395
  neutral: palette.grey["700"],
382
396
  neutralInverted: white,
383
397
  positive: palette.mint["700"],
384
398
  positiveLight: palette.mint["300"],
385
- promote: palette.violet["700"],
386
- promoteLight: palette.violet["300"],
399
+ promote: legacyViolet["700"],
400
+ promoteLight: legacyViolet["300"],
387
401
  rating: "#f57c00",
388
402
  secondary: palette.grey["500"],
389
403
  secondaryInverted: polished.rgba("#fff", 0.65)
@@ -424,8 +438,8 @@ const makeTokens = ({
424
438
  neutralSoftHover: polished.darken(0.025, palette.grey["50"]),
425
439
  positive: palette.mint["700"],
426
440
  positiveLight: palette.mint["100"],
427
- promote: palette.violet["700"],
428
- promoteLight: palette.violet["100"],
441
+ promote: legacyViolet["700"],
442
+ promoteLight: legacyViolet["100"],
429
443
  surface: white,
430
444
  surfaceDark: palette.grey["800"]
431
445
  }
@@ -13,6 +13,7 @@ const palette = {
13
13
  300: "#ABB3C1",
14
14
  200: "#D2D7DF",
15
15
  100: "#EAECF1",
16
+ 75: "#F3F5F7",
16
17
  50: "#F7F8FB"
17
18
  },
18
19
  seekPink: {
@@ -136,30 +137,42 @@ const palette = {
136
137
  50: "#F4F6FE"
137
138
  },
138
139
  violet: {
139
- 900: "#1E0B65",
140
- 800: "#341B87",
141
- 700: "#512EAA",
142
- 600: "#6C41CE",
143
- 500: "#8B5CEB",
144
- 400: "#AD84F2",
145
- 300: "#C6ACF5",
146
- 200: "#E1D1F9",
147
- 100: "#F1E8FD",
148
- 50: "#FAF5FE"
140
+ 900: "#120C64",
141
+ 800: "#241A83",
142
+ 700: "#392BA7",
143
+ 600: "#503DC9",
144
+ 500: "#6E56E6",
145
+ 400: "#937FEF",
146
+ 300: "#B5A7F4",
147
+ 200: "#D8D0FA",
148
+ 100: "#ECE9FC",
149
+ 50: "#F8F6FE"
149
150
  },
150
151
  purple: {
151
- 900: "#3C0B65",
152
- 800: "#581B87",
153
- 700: "#7C2EAA",
154
- 600: "#9D41CE",
155
- 500: "#BB5CEB",
156
- 400: "#D184F2",
157
- 300: "#DFACF5",
158
- 200: "#EED1F9",
159
- 100: "#F7E8FD",
160
- 50: "#FCF5FE"
152
+ 900: "#3E0F65",
153
+ 800: "#5B2084",
154
+ 700: "#7F35A9",
155
+ 600: "#A04BCB",
156
+ 500: "#BE68E8",
157
+ 400: "#D48EF1",
158
+ 300: "#E1B2F5",
159
+ 200: "#F0D6FA",
160
+ 100: "#F9EBFD",
161
+ 50: "#FDF7FE"
161
162
  }
162
163
  };
164
+ const legacyViolet = {
165
+ 900: "#1E0B65",
166
+ 800: "#341B87",
167
+ 700: "#512EAA",
168
+ 600: "#6C41CE",
169
+ 500: "#8B5CEB",
170
+ 400: "#AD84F2",
171
+ 300: "#C6ACF5",
172
+ 200: "#E1D1F9",
173
+ 100: "#F1E8FD",
174
+ 50: "#FAF5FE"
175
+ };
163
176
  const makeTokens = ({
164
177
  name,
165
178
  displayName,
@@ -180,6 +193,7 @@ const makeTokens = ({
180
193
  const tokens = {
181
194
  name,
182
195
  displayName,
196
+ legacy: true,
183
197
  typography: {
184
198
  fontFamily: 'Roboto, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',
185
199
  webFont: null,
@@ -335,8 +349,8 @@ const makeTokens = ({
335
349
  neutralInverted: white,
336
350
  positive: palette.mint["700"],
337
351
  positiveLight: palette.mint["300"],
338
- promote: palette.violet["700"],
339
- promoteLight: palette.violet["300"]
352
+ promote: legacyViolet["700"],
353
+ promoteLight: legacyViolet["300"]
340
354
  }
341
355
  },
342
356
  focusRingSize: 3,
@@ -372,14 +386,14 @@ const makeTokens = ({
372
386
  link: formAccent,
373
387
  linkLight: palette.indigo["300"],
374
388
  linkHover: formAccent,
375
- linkVisited: palette.violet["700"],
376
- linkLightVisited: palette.violet["300"],
389
+ linkVisited: legacyViolet["700"],
390
+ linkLightVisited: legacyViolet["300"],
377
391
  neutral: palette.grey["700"],
378
392
  neutralInverted: white,
379
393
  positive: palette.mint["700"],
380
394
  positiveLight: palette.mint["300"],
381
- promote: palette.violet["700"],
382
- promoteLight: palette.violet["300"],
395
+ promote: legacyViolet["700"],
396
+ promoteLight: legacyViolet["300"],
383
397
  rating: "#f57c00",
384
398
  secondary: palette.grey["500"],
385
399
  secondaryInverted: rgba("#fff", 0.65)
@@ -420,8 +434,8 @@ const makeTokens = ({
420
434
  neutralSoftHover: darken(0.025, palette.grey["50"]),
421
435
  positive: palette.mint["700"],
422
436
  positiveLight: palette.mint["100"],
423
- promote: palette.violet["700"],
424
- promoteLight: palette.violet["100"],
437
+ promote: legacyViolet["700"],
438
+ promoteLight: legacyViolet["100"],
425
439
  surface: white,
426
440
  surfaceDark: palette.grey["800"]
427
441
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  const styles_lib_themes_apac_apacTheme_css_cjs = require("../../../styles/lib/themes/apac/apacTheme.css.cjs");
3
+ const styles_lib_themes_seekJobs_seekJobs_css_cjs = require("../../../styles/lib/themes/seekJobs/seekJobs.css.cjs");
3
4
  const styles_lib_themes_seekBusiness_seekBusinessTheme_css_cjs = require("../../../styles/lib/themes/seekBusiness/seekBusinessTheme.css.cjs");
4
5
  const styles_lib_themes_wireframe_wireframeTheme_css_cjs = require("../../../styles/lib/themes/wireframe/wireframeTheme.css.cjs");
5
6
  const styles_lib_themes_docs_docsTheme_css_cjs = require("../../../styles/lib/themes/docs/docsTheme.css.cjs");
@@ -8,6 +9,7 @@ const themes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
8
9
  apac: styles_lib_themes_apac_apacTheme_css_cjs.apacTheme_css,
9
10
  docs: styles_lib_themes_docs_docsTheme_css_cjs.docsTheme_css,
10
11
  seekBusiness: styles_lib_themes_seekBusiness_seekBusinessTheme_css_cjs.seekBusinessTheme_css,
12
+ seekJobs: styles_lib_themes_seekJobs_seekJobs_css_cjs.seekJobs_css,
11
13
  wireframe: styles_lib_themes_wireframe_wireframeTheme_css_cjs.wireframe
12
14
  }, Symbol.toStringTag, { value: "Module" }));
13
15
  exports.themes = themes;
@@ -1,4 +1,5 @@
1
1
  import { apacTheme_css } from "../../../styles/lib/themes/apac/apacTheme.css.mjs";
2
+ import { seekJobs_css } from "../../../styles/lib/themes/seekJobs/seekJobs.css.mjs";
2
3
  import { seekBusinessTheme_css } from "../../../styles/lib/themes/seekBusiness/seekBusinessTheme.css.mjs";
3
4
  import { wireframe } from "../../../styles/lib/themes/wireframe/wireframeTheme.css.mjs";
4
5
  import { docsTheme_css } from "../../../styles/lib/themes/docs/docsTheme.css.mjs";
@@ -7,6 +8,7 @@ const themes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
7
8
  apac: apacTheme_css,
8
9
  docs: docsTheme_css,
9
10
  seekBusiness: seekBusinessTheme_css,
11
+ seekJobs: seekJobs_css,
10
12
  wireframe
11
13
  }, Symbol.toStringTag, { value: "Module" }));
12
14
  export {
@@ -12,6 +12,14 @@ const makeWebFonts = (webFont) => {
12
12
  const makeRuntimeTokens = (tokens) => ({
13
13
  name: tokens.name,
14
14
  displayName: tokens.displayName,
15
+ /**
16
+ * The boundary for making updated design decisions without disturbing
17
+ * existing consumers. Updated decisions can be assessed as part of
18
+ * migrating between themes.
19
+ *
20
+ * This token will be removed when the `apac` theme is retired.
21
+ */
22
+ legacy: tokens.legacy,
15
23
  background: {
16
24
  lightMode: tokens.color.background.body,
17
25
  darkMode: tokens.color.background.bodyDark
@@ -9,6 +9,14 @@ const makeWebFonts = (webFont) => {
9
9
  const makeRuntimeTokens = (tokens) => ({
10
10
  name: tokens.name,
11
11
  displayName: tokens.displayName,
12
+ /**
13
+ * The boundary for making updated design decisions without disturbing
14
+ * existing consumers. Updated decisions can be assessed as part of
15
+ * migrating between themes.
16
+ *
17
+ * This token will be removed when the `apac` theme is retired.
18
+ */
19
+ legacy: tokens.legacy,
12
20
  background: {
13
21
  lightMode: tokens.color.background.body,
14
22
  darkMode: tokens.color.background.bodyDark
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ require("../../../../styles/lib/themes/seekJobs/seekJobs.css.cjs");
@@ -0,0 +1 @@
1
+ import "../../../../styles/lib/themes/seekJobs/seekJobs.css.mjs";
@@ -32,7 +32,7 @@ const base = css.style({
32
32
  color: textLinkVars.color,
33
33
  textDecoration: textLinkVars.textDecoration,
34
34
  textDecorationThickness: "0.1em",
35
- textUnderlineOffset: "0.32em",
35
+ textUnderlineOffset: 3,
36
36
  ":hover": {
37
37
  color: textLinkVars.colorHover,
38
38
  textDecoration: textLinkVars.textDecorationHover,
@@ -31,7 +31,7 @@ const base = style({
31
31
  color: textLinkVars.color,
32
32
  textDecoration: textLinkVars.textDecoration,
33
33
  textDecorationThickness: "0.1em",
34
- textUnderlineOffset: "0.32em",
34
+ textUnderlineOffset: 3,
35
35
  ":hover": {
36
36
  color: textLinkVars.colorHover,
37
37
  textDecoration: textLinkVars.textDecorationHover,
@@ -111,6 +111,11 @@ const icon = css.style({
111
111
  }
112
112
  }
113
113
  }, "icon");
114
+ const hideBorderOnDarkBackgroundInLightMode = css.style(styles_lib_css_colorModeStyle_cjs.colorModeStyle({
115
+ lightMode: {
116
+ opacity: 0
117
+ }
118
+ }), "hideBorderOnDarkBackgroundInLightMode");
114
119
  const focusOverlay = css.style({
115
120
  selectors: {
116
121
  [`${realField}:focus + ${slideContainer} &,
@@ -130,6 +135,7 @@ const hoverOverlay = css.style({
130
135
  fileScope.endFileScope();
131
136
  exports.fieldSize = fieldSize;
132
137
  exports.focusOverlay = focusOverlay;
138
+ exports.hideBorderOnDarkBackgroundInLightMode = hideBorderOnDarkBackgroundInLightMode;
133
139
  exports.hoverOverlay = hoverOverlay;
134
140
  exports.icon = icon;
135
141
  exports.label = label;
@@ -110,6 +110,11 @@ const icon = style({
110
110
  }
111
111
  }
112
112
  }, "icon");
113
+ const hideBorderOnDarkBackgroundInLightMode = style(colorModeStyle({
114
+ lightMode: {
115
+ opacity: 0
116
+ }
117
+ }), "hideBorderOnDarkBackgroundInLightMode");
113
118
  const focusOverlay = style({
114
119
  selectors: {
115
120
  [`${realField}:focus + ${slideContainer} &,
@@ -130,6 +135,7 @@ endFileScope();
130
135
  export {
131
136
  fieldSize,
132
137
  focusOverlay,
138
+ hideBorderOnDarkBackgroundInLightMode,
133
139
  hoverOverlay,
134
140
  icon,
135
141
  label,
@@ -2,6 +2,7 @@
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
4
  const cssUtils = require("@vanilla-extract/css-utils");
5
+ const styles_lib_css_colorModeStyle_cjs = require("../../../css/colorModeStyle.cjs");
5
6
  const styles_lib_themes_vars_css_cjs = require("../../../themes/vars.css.cjs");
6
7
  fileScope.setFileScope("src/lib/components/private/Field/Field.css.ts?used", "braid-design-system");
7
8
  const field = css.style({}, "field");
@@ -17,6 +18,11 @@ const textLeftOffset = "2px";
17
18
  const iconSpace = css.style({
18
19
  paddingLeft: cssUtils.calc.subtract(styles_lib_themes_vars_css_cjs.vars.touchableSize, textLeftOffset)
19
20
  }, "iconSpace");
21
+ const hideBorderOnDarkBackgroundInLightMode = css.style(styles_lib_css_colorModeStyle_cjs.colorModeStyle({
22
+ lightMode: {
23
+ opacity: 0
24
+ }
25
+ }), "hideBorderOnDarkBackgroundInLightMode");
20
26
  const focusOverlay = css.style({
21
27
  selectors: {
22
28
  [`${field}:focus ~ &`]: {
@@ -39,6 +45,7 @@ const verticalDivider = css.style({
39
45
  fileScope.endFileScope();
40
46
  exports.field = field;
41
47
  exports.focusOverlay = focusOverlay;
48
+ exports.hideBorderOnDarkBackgroundInLightMode = hideBorderOnDarkBackgroundInLightMode;
42
49
  exports.hoverOverlay = hoverOverlay;
43
50
  exports.iconSpace = iconSpace;
44
51
  exports.placeholderColor = placeholderColor;
@@ -1,6 +1,7 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
2
  import { style } from "@vanilla-extract/css";
3
3
  import { calc } from "@vanilla-extract/css-utils";
4
+ import { colorModeStyle } from "../../../css/colorModeStyle.mjs";
4
5
  import { vars } from "../../../themes/vars.css.mjs";
5
6
  setFileScope("src/lib/components/private/Field/Field.css.ts?used", "braid-design-system");
6
7
  const field = style({}, "field");
@@ -16,6 +17,11 @@ const textLeftOffset = "2px";
16
17
  const iconSpace = style({
17
18
  paddingLeft: calc.subtract(vars.touchableSize, textLeftOffset)
18
19
  }, "iconSpace");
20
+ const hideBorderOnDarkBackgroundInLightMode = style(colorModeStyle({
21
+ lightMode: {
22
+ opacity: 0
23
+ }
24
+ }), "hideBorderOnDarkBackgroundInLightMode");
19
25
  const focusOverlay = style({
20
26
  selectors: {
21
27
  [`${field}:focus ~ &`]: {
@@ -39,6 +45,7 @@ endFileScope();
39
45
  export {
40
46
  field,
41
47
  focusOverlay,
48
+ hideBorderOnDarkBackgroundInLightMode,
42
49
  hoverOverlay,
43
50
  iconSpace,
44
51
  placeholderColor,
@@ -6,6 +6,7 @@ const styles_lib_themes_vars_css_cjs = require("../../../themes/vars.css.cjs");
6
6
  const styles_lib_components_private_touchable_hitArea_cjs = require("../touchable/hitArea.cjs");
7
7
  const styles_lib_components_private_touchable_debugTouchable_cjs = require("../touchable/debugTouchable.cjs");
8
8
  const styles_lib_css_responsiveStyle_cjs = require("../../../css/responsiveStyle.cjs");
9
+ const styles_lib_css_colorModeStyle_cjs = require("../../../css/colorModeStyle.cjs");
9
10
  fileScope.setFileScope("src/lib/components/private/InlineField/InlineField.css.ts?used", "braid-design-system");
10
11
  const sizes = {
11
12
  standard: "standard",
@@ -35,7 +36,14 @@ const realField = css.style([{
35
36
  }, styles_lib_components_private_touchable_debugTouchable_cjs.debugTouchable()], "realField");
36
37
  const fakeField = css.style({
37
38
  height: fieldSize,
38
- width: fieldSize
39
+ width: fieldSize,
40
+ selectors: {
41
+ // Overrides `surface` background of checked checkbox
42
+ // to make `formAccent` edge crisp on dark background
43
+ [`${realField}[type="checkbox"]:checked ~ &`]: {
44
+ background: "transparent"
45
+ }
46
+ }
39
47
  }, "fakeField");
40
48
  const labelOffset = css.style({
41
49
  paddingTop: cssUtils.calc(fieldSize).subtract(labelCapHeight).divide(2).toString()
@@ -58,6 +66,11 @@ const selected = css.style({
58
66
  }
59
67
  }
60
68
  }, "selected");
69
+ const hideBorderOnDarkBackgroundInLightMode = css.style(styles_lib_css_colorModeStyle_cjs.colorModeStyle({
70
+ lightMode: {
71
+ opacity: 0
72
+ }
73
+ }), "hideBorderOnDarkBackgroundInLightMode");
61
74
  const focusOverlay = css.style({
62
75
  selectors: {
63
76
  [`${realField}:focus + ${fakeField} > &`]: {
@@ -103,6 +116,7 @@ exports.checkboxIndicator = checkboxIndicator;
103
116
  exports.children = children;
104
117
  exports.fakeField = fakeField;
105
118
  exports.focusOverlay = focusOverlay;
119
+ exports.hideBorderOnDarkBackgroundInLightMode = hideBorderOnDarkBackgroundInLightMode;
106
120
  exports.hoverOverlay = hoverOverlay;
107
121
  exports.isMixed = isMixed;
108
122
  exports.labelOffset = labelOffset;
@@ -5,6 +5,7 @@ import { vars } from "../../../themes/vars.css.mjs";
5
5
  import { hitArea } from "../touchable/hitArea.mjs";
6
6
  import { debugTouchable } from "../touchable/debugTouchable.mjs";
7
7
  import { responsiveStyle } from "../../../css/responsiveStyle.mjs";
8
+ import { colorModeStyle } from "../../../css/colorModeStyle.mjs";
8
9
  setFileScope("src/lib/components/private/InlineField/InlineField.css.ts?used", "braid-design-system");
9
10
  const sizes = {
10
11
  standard: "standard",
@@ -34,7 +35,14 @@ const realField = style([{
34
35
  }, debugTouchable()], "realField");
35
36
  const fakeField = style({
36
37
  height: fieldSize,
37
- width: fieldSize
38
+ width: fieldSize,
39
+ selectors: {
40
+ // Overrides `surface` background of checked checkbox
41
+ // to make `formAccent` edge crisp on dark background
42
+ [`${realField}[type="checkbox"]:checked ~ &`]: {
43
+ background: "transparent"
44
+ }
45
+ }
38
46
  }, "fakeField");
39
47
  const labelOffset = style({
40
48
  paddingTop: calc(fieldSize).subtract(labelCapHeight).divide(2).toString()
@@ -57,6 +65,11 @@ const selected = style({
57
65
  }
58
66
  }
59
67
  }, "selected");
68
+ const hideBorderOnDarkBackgroundInLightMode = style(colorModeStyle({
69
+ lightMode: {
70
+ opacity: 0
71
+ }
72
+ }), "hideBorderOnDarkBackgroundInLightMode");
60
73
  const focusOverlay = style({
61
74
  selectors: {
62
75
  [`${realField}:focus + ${fakeField} > &`]: {
@@ -103,6 +116,7 @@ export {
103
116
  children,
104
117
  fakeField,
105
118
  focusOverlay,
119
+ hideBorderOnDarkBackgroundInLightMode,
106
120
  hoverOverlay,
107
121
  isMixed,
108
122
  labelOffset,
@@ -16,6 +16,7 @@ const secondary = sideEffects_lib_themes_baseTokens_apac_cjs.palette.grey["500"]
16
16
  const tokens = {
17
17
  name: "docs",
18
18
  displayName: "Docs",
19
+ legacy: false,
19
20
  typography: {
20
21
  fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
21
22
  webFont: null,
@@ -13,6 +13,7 @@ const secondary = palette.grey["500"];
13
13
  const tokens = {
14
14
  name: "docs",
15
15
  displayName: "Docs",
16
+ legacy: false,
16
17
  typography: {
17
18
  fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
18
19
  webFont: null,
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ const fileScope = require("@vanilla-extract/css/fileScope");
3
+ const styles_lib_themes_seekJobs_tokens_cjs = require("./tokens.cjs");
4
+ const styles_lib_themes_makeBraidTheme_cjs = require("../makeBraidTheme.cjs");
5
+ fileScope.setFileScope("src/lib/themes/seekJobs/seekJobs.css.ts?used", "braid-design-system");
6
+ const seekJobs_css = styles_lib_themes_makeBraidTheme_cjs.makeBraidTheme(styles_lib_themes_seekJobs_tokens_cjs.tokens);
7
+ fileScope.endFileScope();
8
+ exports.seekJobs_css = seekJobs_css;
@@ -0,0 +1,9 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { tokens } from "./tokens.mjs";
3
+ import { makeBraidTheme } from "../makeBraidTheme.mjs";
4
+ setFileScope("src/lib/themes/seekJobs/seekJobs.css.ts?used", "braid-design-system");
5
+ const seekJobs_css = makeBraidTheme(tokens);
6
+ endFileScope();
7
+ export {
8
+ seekJobs_css
9
+ };