@instructure/ui-theme-tokens 9.5.2-snapshot-1 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. package/CHANGELOG.md +11 -2
  2. package/es/canvas/colors.js +33 -17
  3. package/es/canvasHighContrast/colors.js +33 -17
  4. package/es/{instructure/forms.js → common/colors/index.js} +5 -7
  5. package/es/{instructure/index.js → common/colors/primitves.js} +36 -13
  6. package/es/index.js +2 -3
  7. package/es/utils/getUIColors.js +48 -0
  8. package/lib/canvas/colors.js +34 -17
  9. package/lib/canvasHighContrast/colors.js +34 -17
  10. package/lib/{instructure/forms.js → common/colors/index.js} +7 -7
  11. package/lib/{instructure/index.js → common/colors/primitves.js} +37 -13
  12. package/lib/index.js +4 -10
  13. package/lib/utils/getUIColors.js +55 -0
  14. package/package.json +5 -5
  15. package/src/canvas/colors.ts +38 -19
  16. package/src/canvasHighContrast/colors.ts +37 -19
  17. package/src/{instructure/forms.ts → common/colors/index.ts} +5 -8
  18. package/src/{instructure/index.ts → common/colors/primitves.ts} +43 -14
  19. package/src/index.ts +2 -3
  20. package/src/{instructure/spacing.ts → utils/getUIColors.ts} +27 -13
  21. package/tokens/canvas/scss/_variables.scss +0 -49
  22. package/tokens/canvas/source.json +1 -1
  23. package/tokens/canvas-high-contrast/scss/_variables.scss +0 -49
  24. package/tokens/canvas-high-contrast/source.json +1 -1
  25. package/tsconfig.build.tsbuildinfo +1 -1
  26. package/types/canvas/colors.d.ts +1 -1
  27. package/types/canvas/colors.d.ts.map +1 -1
  28. package/types/canvasHighContrast/colors.d.ts +6 -2
  29. package/types/canvasHighContrast/colors.d.ts.map +1 -1
  30. package/types/canvasHighContrast/index.d.ts +5 -1
  31. package/types/canvasHighContrast/index.d.ts.map +1 -1
  32. package/types/common/colors/index.d.ts +5 -0
  33. package/types/common/colors/index.d.ts.map +1 -0
  34. package/types/common/colors/primitves.d.ts +4 -0
  35. package/types/common/colors/primitves.d.ts.map +1 -0
  36. package/types/index.d.ts +2 -3
  37. package/types/index.d.ts.map +1 -1
  38. package/types/utils/getUIColors.d.ts +4 -0
  39. package/types/utils/getUIColors.d.ts.map +1 -0
  40. package/es/instructure/colors.js +0 -56
  41. package/es/instructure/spacing.js +0 -37
  42. package/es/instructure/typography.js +0 -49
  43. package/es/utils/functionalColors.js +0 -79
  44. package/lib/instructure/colors.js +0 -61
  45. package/lib/instructure/spacing.js +0 -42
  46. package/lib/instructure/typography.js +0 -54
  47. package/lib/utils/functionalColors.js +0 -85
  48. package/src/instructure/colors.ts +0 -66
  49. package/src/instructure/typography.ts +0 -57
  50. package/src/utils/functionalColors.ts +0 -90
  51. package/tokens/instructure/scss/_variables.scss +0 -115
  52. package/tokens/instructure/source.json +0 -1
  53. package/types/instructure/colors.d.ts +0 -12
  54. package/types/instructure/colors.d.ts.map +0 -1
  55. package/types/instructure/forms.d.ts +0 -5
  56. package/types/instructure/forms.d.ts.map +0 -1
  57. package/types/instructure/index.d.ts +0 -18
  58. package/types/instructure/index.d.ts.map +0 -1
  59. package/types/instructure/spacing.d.ts +0 -5
  60. package/types/instructure/spacing.d.ts.map +0 -1
  61. package/types/instructure/typography.d.ts +0 -5
  62. package/types/instructure/typography.d.ts.map +0 -1
  63. package/types/utils/functionalColors.d.ts +0 -5
  64. package/types/utils/functionalColors.d.ts.map +0 -1
@@ -1,115 +0,0 @@
1
-
2
- // Do not edit directly, this file was auto-generated.
3
-
4
- $instui-instructure-colors-brand: #287A9F;
5
- $instui-instructure-colors-link: #287A9F;
6
- $instui-instructure-colors-electric: #287A9F;
7
- $instui-instructure-colors-shamrock: #24A159;
8
- $instui-instructure-colors-barney: #143D50;
9
- $instui-instructure-colors-crimson: #E72429;
10
- $instui-instructure-colors-fire: #F76400;
11
- $instui-instructure-colors-licorice: #0D323F;
12
- $instui-instructure-colors-oxford: #143D50;
13
- $instui-instructure-colors-ash: #156380;
14
- $instui-instructure-colors-slate: #156380;
15
- $instui-instructure-colors-tiara: #CCDCE4;
16
- $instui-instructure-colors-porcelain: #F2F8FA;
17
- $instui-instructure-colors-white: #FFFFFF;
18
- $instui-instructure-colors-text-darkest: #0D323F;
19
- $instui-instructure-colors-text-dark: #156380;
20
- $instui-instructure-colors-text-light: #F2F8FA;
21
- $instui-instructure-colors-text-lightest: #FFFFFF;
22
- $instui-instructure-colors-text-brand: #287A9F;
23
- $instui-instructure-colors-text-link: #287A9F;
24
- $instui-instructure-colors-text-alert: #143D50;
25
- $instui-instructure-colors-text-info: #287A9F;
26
- $instui-instructure-colors-text-success: #24A159;
27
- $instui-instructure-colors-text-danger: #E72429;
28
- $instui-instructure-colors-text-warning: #F76400;
29
- $instui-instructure-colors-background-darkest: #0D323F;
30
- $instui-instructure-colors-background-dark: #156380;
31
- $instui-instructure-colors-background-medium: #CCDCE4;
32
- $instui-instructure-colors-background-light: #F2F8FA;
33
- $instui-instructure-colors-background-lightest: #FFFFFF;
34
- $instui-instructure-colors-background-brand: #287A9F;
35
- $instui-instructure-colors-background-brand-secondary: #143D50;
36
- $instui-instructure-colors-background-alert: #143D50;
37
- $instui-instructure-colors-background-info: #287A9F;
38
- $instui-instructure-colors-background-success: #24A159;
39
- $instui-instructure-colors-background-danger: #E72429;
40
- $instui-instructure-colors-background-warning: #F76400;
41
- $instui-instructure-colors-border-lightest: #FFFFFF;
42
- $instui-instructure-colors-border-light: #F2F8FA;
43
- $instui-instructure-colors-border-medium: #CCDCE4;
44
- $instui-instructure-colors-border-dark: #156380;
45
- $instui-instructure-colors-border-darkest: #0D323F;
46
- $instui-instructure-colors-border-brand: #287A9F;
47
- $instui-instructure-colors-border-alert: #143D50;
48
- $instui-instructure-colors-border-info: #287A9F;
49
- $instui-instructure-colors-border-success: #24A159;
50
- $instui-instructure-colors-border-danger: #E72429;
51
- $instui-instructure-colors-border-warning: #F76400;
52
- $instui-instructure-colors-border-debug: #E72429;
53
- $instui-instructure-colors-inaccessible-alert: #fccb0e;
54
- $instui-instructure-colors-inaccessible-warning: #f68e1f;
55
- $instui-instructure-borders-radius-small: 0.125rem;
56
- $instui-instructure-borders-radius-medium: 0.25rem;
57
- $instui-instructure-borders-radius-large: 0.5rem;
58
- $instui-instructure-borders-width-small: 0.0625rem;
59
- $instui-instructure-borders-width-medium: 0.125rem;
60
- $instui-instructure-borders-width-large: 0.25rem;
61
- $instui-instructure-borders-style: solid;
62
- $instui-instructure-transitions-duration: 300ms;
63
- $instui-instructure-transitions-timing: ease-in-out;
64
- $instui-instructure-typography-font-family: "Proxima Nova", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
65
- "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
66
- "Helvetica Neue", sans-serif;
67
- $instui-instructure-typography-font-family-monospace: Menlo, Consolas, Monaco, "Andale Mono", monospace;
68
- $instui-instructure-typography-font-family-heading: "TiemposHeadlineWebBold", "Georgia", "Proxima Nova", sans-serif;
69
- $instui-instructure-typography-font-size-x-small: 0.75rem;
70
- $instui-instructure-typography-font-size-small: 0.875rem;
71
- $instui-instructure-typography-font-size-medium: 1rem;
72
- $instui-instructure-typography-font-size-large: 1.25rem;
73
- $instui-instructure-typography-font-size-x-large: 2.25rem;
74
- $instui-instructure-typography-font-size-xx-large: 3rem;
75
- $instui-instructure-typography-font-weight-light: 300;
76
- $instui-instructure-typography-font-weight-normal: 400;
77
- $instui-instructure-typography-font-weight-bold: 700;
78
- $instui-instructure-typography-line-height: 1.5;
79
- $instui-instructure-typography-line-height-fit: 1.125;
80
- $instui-instructure-typography-line-height-condensed: 1.25;
81
- $instui-instructure-typography-line-height-double: 2;
82
- $instui-instructure-typography-letter-spacing-normal: 0;
83
- $instui-instructure-typography-letter-spacing-condensed: -0.0625rem;
84
- $instui-instructure-typography-letter-spacing-expanded: 0.0625rem;
85
- $instui-instructure-spacing-xxx-small: 0.125rem;
86
- $instui-instructure-spacing-xx-small: 0.375rem;
87
- $instui-instructure-spacing-x-small: 0.75rem;
88
- $instui-instructure-spacing-small: 1rem;
89
- $instui-instructure-spacing-medium-small: 1.25rem;
90
- $instui-instructure-spacing-medium: 1.5rem;
91
- $instui-instructure-spacing-large: 2.25rem;
92
- $instui-instructure-spacing-x-large: 3rem;
93
- $instui-instructure-spacing-xx-large: 3.75rem;
94
- $instui-instructure-forms-input-height-small: 2rem;
95
- $instui-instructure-forms-input-height-medium: 2.75rem;
96
- $instui-instructure-forms-input-height-large: 3.375rem;
97
- $instui-instructure-breakpoints-xx-small: 8em;
98
- $instui-instructure-breakpoints-x-small: 16em;
99
- $instui-instructure-breakpoints-small: 30em;
100
- $instui-instructure-breakpoints-medium: 48em;
101
- $instui-instructure-breakpoints-tablet: 48em;
102
- $instui-instructure-breakpoints-large: 62em;
103
- $instui-instructure-breakpoints-desktop: 64em;
104
- $instui-instructure-breakpoints-x-large: 75em;
105
- $instui-instructure-breakpoints-max-width: 61.9375em;
106
- $instui-instructure-shadows-depth1: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
107
- $instui-instructure-shadows-depth2: 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16);
108
- $instui-instructure-shadows-depth3: 0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25);
109
- $instui-instructure-shadows-resting: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
110
- $instui-instructure-shadows-above: 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16);
111
- $instui-instructure-shadows-topmost: 0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25);
112
- $instui-instructure-stacking-topmost: 9999;
113
- $instui-instructure-stacking-above: 1;
114
- $instui-instructure-stacking-below: -1;
115
- $instui-instructure-stacking-deepest: -9999;
@@ -1 +0,0 @@
1
- {"colors":{"brand":{"value":"#287A9F"},"link":{"value":"#287A9F"},"electric":{"value":"#287A9F"},"shamrock":{"value":"#24A159"},"barney":{"value":"#143D50"},"crimson":{"value":"#E72429"},"fire":{"value":"#F76400"},"licorice":{"value":"#0D323F"},"oxford":{"value":"#143D50"},"ash":{"value":"#156380"},"slate":{"value":"#156380"},"tiara":{"value":"#CCDCE4"},"porcelain":{"value":"#F2F8FA"},"white":{"value":"#FFFFFF"},"textDarkest":{"value":"#0D323F"},"textDark":{"value":"#156380"},"textLight":{"value":"#F2F8FA"},"textLightest":{"value":"#FFFFFF"},"textBrand":{"value":"#287A9F"},"textLink":{"value":"#287A9F"},"textAlert":{"value":"#143D50"},"textInfo":{"value":"#287A9F"},"textSuccess":{"value":"#24A159"},"textDanger":{"value":"#E72429"},"textWarning":{"value":"#F76400"},"backgroundDarkest":{"value":"#0D323F"},"backgroundDark":{"value":"#156380"},"backgroundMedium":{"value":"#CCDCE4"},"backgroundLight":{"value":"#F2F8FA"},"backgroundLightest":{"value":"#FFFFFF"},"backgroundBrand":{"value":"#287A9F"},"backgroundBrandSecondary":{"value":"#143D50"},"backgroundAlert":{"value":"#143D50"},"backgroundInfo":{"value":"#287A9F"},"backgroundSuccess":{"value":"#24A159"},"backgroundDanger":{"value":"#E72429"},"backgroundWarning":{"value":"#F76400"},"borderLightest":{"value":"#FFFFFF"},"borderLight":{"value":"#F2F8FA"},"borderMedium":{"value":"#CCDCE4"},"borderDark":{"value":"#156380"},"borderDarkest":{"value":"#0D323F"},"borderBrand":{"value":"#287A9F"},"borderAlert":{"value":"#143D50"},"borderInfo":{"value":"#287A9F"},"borderSuccess":{"value":"#24A159"},"borderDanger":{"value":"#E72429"},"borderWarning":{"value":"#F76400"},"borderDebug":{"value":"#E72429"},"inaccessibleAlert":{"value":"#fccb0e"},"inaccessibleWarning":{"value":"#f68e1f"}},"borders":{"radiusSmall":{"value":"0.125rem"},"radiusMedium":{"value":"0.25rem"},"radiusLarge":{"value":"0.5rem"},"widthSmall":{"value":"0.0625rem"},"widthMedium":{"value":"0.125rem"},"widthLarge":{"value":"0.25rem"},"style":{"value":"solid"}},"transitions":{"duration":{"value":"300ms"},"timing":{"value":"ease-in-out"}},"typography":{"fontFamily":{"value":"\"Proxima Nova\", \"Nunito Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\",\n \"Helvetica Neue\", sans-serif"},"fontFamilyMonospace":{"value":"Menlo, Consolas, Monaco, \"Andale Mono\", monospace"},"fontFamilyHeading":{"value":"\"TiemposHeadlineWebBold\", \"Georgia\", \"Proxima Nova\", sans-serif"},"fontSizeXSmall":{"value":"0.75rem"},"fontSizeSmall":{"value":"0.875rem"},"fontSizeMedium":{"value":"1rem"},"fontSizeLarge":{"value":"1.25rem"},"fontSizeXLarge":{"value":"2.25rem"},"fontSizeXXLarge":{"value":"3rem"},"fontWeightLight":{"value":300},"fontWeightNormal":{"value":400},"fontWeightBold":{"value":700},"lineHeight":{"value":1.5},"lineHeightFit":{"value":1.125},"lineHeightCondensed":{"value":1.25},"lineHeightDouble":{"value":2},"letterSpacingNormal":{"value":0},"letterSpacingCondensed":{"value":"-0.0625rem"},"letterSpacingExpanded":{"value":"0.0625rem"}},"spacing":{"xxxSmall":{"value":"0.125rem"},"xxSmall":{"value":"0.375rem"},"xSmall":{"value":"0.75rem"},"small":{"value":"1rem"},"mediumSmall":{"value":"1.25rem"},"medium":{"value":"1.5rem"},"large":{"value":"2.25rem"},"xLarge":{"value":"3rem"},"xxLarge":{"value":"3.75rem"}},"forms":{"inputHeightSmall":{"value":"2rem"},"inputHeightMedium":{"value":"2.75rem"},"inputHeightLarge":{"value":"3.375rem"}},"breakpoints":{"xxSmall":{"value":"8em"},"xSmall":{"value":"16em"},"small":{"value":"30em"},"medium":{"value":"48em"},"tablet":{"value":"48em"},"large":{"value":"62em"},"desktop":{"value":"64em"},"xLarge":{"value":"75em"},"maxWidth":{"value":"61.9375em"}},"shadows":{"depth1":{"value":"0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)"},"depth2":{"value":"0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)"},"depth3":{"value":"0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)"},"resting":{"value":"0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)"},"above":{"value":"0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)"},"topmost":{"value":"0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)"}},"stacking":{"topmost":{"value":9999},"above":{"value":1},"below":{"value":-1},"deepest":{"value":-9999}}}
@@ -1,12 +0,0 @@
1
- import { Colors } from '@instructure/shared-types';
2
- /**
3
- * Two Inst colors are not accessible, so adding them for display purposes only in decorative elements
4
- */
5
- type InaccessibleColors = {
6
- inaccessibleAlert: string;
7
- inaccessibleWarning: string;
8
- };
9
- declare const colors: Colors & InaccessibleColors;
10
- export default colors;
11
- export { colors };
12
- //# sourceMappingURL=colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/instructure/colors.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAc,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAmB9D;;GAEG;AACH,KAAK,kBAAkB,GAAG;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAUD,QAAA,MAAM,MAAM,EAAE,MAAM,GAAG,kBAEtB,CAAA;AAED,eAAe,MAAM,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -1,5 +0,0 @@
1
- import { Forms } from '@instructure/shared-types';
2
- declare const forms: Forms;
3
- export default forms;
4
- export { forms };
5
- //# sourceMappingURL=forms.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/instructure/forms.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAEjD,QAAA,MAAM,KAAK,EAAE,KAIF,CAAA;AAEX,eAAe,KAAK,CAAA;AACpB,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -1,18 +0,0 @@
1
- declare const instructure: {
2
- colors: import("@instructure/shared-types").Colors & {
3
- inaccessibleAlert: string;
4
- inaccessibleWarning: string;
5
- };
6
- forms: import("@instructure/shared-types").Forms;
7
- spacing: import("@instructure/shared-types").Spacing;
8
- typography: import("@instructure/shared-types").Typography;
9
- borders: import("@instructure/shared-types").Border;
10
- transitions: import("@instructure/shared-types").Transitions;
11
- media: import("@instructure/shared-types").Media;
12
- breakpoints: import("@instructure/shared-types").Breakpoints;
13
- shadows: import("@instructure/shared-types").Shadows;
14
- stacking: import("@instructure/shared-types").Stacking;
15
- };
16
- export default instructure;
17
- export { instructure };
18
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/instructure/index.ts"],"names":[],"mappings":"AA8BA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;CAMhB,CAAA;AAED,eAAe,WAAW,CAAA;AAC1B,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -1,5 +0,0 @@
1
- import { Spacing } from '@instructure/shared-types';
2
- declare const spacing: Spacing;
3
- export default spacing;
4
- export { spacing };
5
- //# sourceMappingURL=spacing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../src/instructure/spacing.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAEnD,QAAA,MAAM,OAAO,EAAE,OAUb,CAAA;AAEF,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -1,5 +0,0 @@
1
- import { Typography } from '@instructure/shared-types';
2
- declare const typography: Typography;
3
- export default typography;
4
- export { typography };
5
- //# sourceMappingURL=typography.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/instructure/typography.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,QAAA,MAAM,UAAU,EAAE,UA2BP,CAAA;AAEX,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,5 +0,0 @@
1
- import { BaseColors, Colors } from '@instructure/shared-types';
2
- declare function functionalColors(colors: BaseColors): Colors;
3
- export default functionalColors;
4
- export { functionalColors };
5
- //# sourceMappingURL=functionalColors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"functionalColors.d.ts","sourceRoot":"","sources":["../../src/utils/functionalColors.ts"],"names":[],"mappings":"AAuBA,OAAO,EAEL,UAAU,EAEV,MAAM,EAEP,MAAM,2BAA2B,CAAA;AAElC,iBAAS,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAuDpD;AAED,eAAe,gBAAgB,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,CAAA"}