@codecademy/gamut-styles 18.0.1-alpha.f8b396.0 → 19.0.1-alpha.416911.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
@@ -1,23 +1,8 @@
1
1
  # Gamut Styles
2
2
 
3
- Base SCSS for Codecademy
4
-
5
- ## Variables/
6
-
7
- This folder houses all shared SCSS style variables.
8
- It also contains a JavaScript file with color variables.
3
+ Design tokens, Emotion themes, and system props for the Gamut design system.
9
4
 
10
5
  ## Core/
11
6
 
12
7
  This folder contains a base stylesheet for the app.
13
8
  This should be imported **once** in your application.
14
-
15
- ## Utils/
16
-
17
- This folder contains Sass functions (pure utilities with no stylesheet output values) and mixins (outputs CSS)
18
- to be used as needed both in Gamut and across the Codecademy app.
19
-
20
- The `utils.scss` and `core.scss` just import the index files from their respective folders, to make the syntax to import them from elsewhere easier, e.g.:
21
-
22
- `@use "~@codecademy/gamut-styles/utils";`
23
- `@use "~@codecademy/gamut-styles/core";`
@@ -1086,7 +1086,7 @@ export declare const lxStudioTheme: Record<"breakpoints", {
1086
1086
  }, "-", "_">;
1087
1087
  }>;
1088
1088
  mode: "light";
1089
- _getColorValue: (color: "beige" | "blue" | "navy" | "green" | "yellow" | "pink" | "red" | "orange" | "hyper" | "white" | "beige-100" | "blue-0" | "blue-100" | "blue-300" | "blue-400" | "blue-500" | "blue-800" | "navy-100" | "navy-300" | "navy-400" | "navy-500" | "navy-800" | "navy-200" | "navy-600" | "navy-700" | "navy-900" | "green-0" | "green-100" | "green-400" | "green-700" | "green-900" | "yellow-0" | "yellow-400" | "yellow-500" | "yellow-900" | "pink-0" | "pink-400" | "red-0" | "red-300" | "red-400" | "red-500" | "red-600" | "red-900" | "orange-100" | "orange-500" | "hyper-400" | "hyper-500" | "gray-100" | "gray-300" | "gray-800" | "gray-200" | "gray-600" | "gray-900" | "white-100" | "white-300" | "white-400" | "white-500" | "white-200" | "white-600" | "white-700" | "black" | "lightBlue" | "lightGreen" | "paleBlue" | "paleGreen" | "palePink" | "paleYellow" | "paleRed" | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-accent" | "text-disabled" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary" | "lxStudioSuccess" | "lxStudioBgPrimary" | "sapphire") => string;
1089
+ _getColorValue: (color: "beige" | "blue" | "navy" | "green" | "yellow" | "pink" | "red" | "orange" | "hyper" | "white" | "beige-100" | "blue-0" | "blue-100" | "blue-300" | "blue-400" | "blue-500" | "blue-800" | "navy-100" | "navy-300" | "navy-400" | "navy-500" | "navy-800" | "navy-200" | "navy-600" | "navy-700" | "navy-900" | "green-0" | "green-100" | "green-400" | "green-700" | "green-900" | "yellow-0" | "yellow-400" | "yellow-500" | "yellow-900" | "pink-0" | "pink-400" | "red-0" | "red-300" | "red-400" | "red-500" | "red-600" | "red-900" | "orange-100" | "orange-500" | "hyper-400" | "hyper-500" | "gray-100" | "gray-300" | "gray-800" | "gray-200" | "gray-600" | "gray-900" | "white-100" | "white-300" | "white-400" | "white-500" | "white-200" | "white-600" | "white-700" | "lightBlue" | "lightGreen" | "paleBlue" | "paleGreen" | "palePink" | "paleYellow" | "paleRed" | "black" | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-accent" | "text-disabled" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary" | "lxStudioSuccess" | "lxStudioBgPrimary" | "sapphire") => string;
1090
1090
  }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"name", string>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
1091
1091
  export type LxStudioThemeShape = typeof lxStudioTheme;
1092
1092
  export type LxStudioTheme = LxStudioThemeShape;
@@ -1148,7 +1148,7 @@ export declare const percipioTheme: Record<"breakpoints", {
1148
1148
  }, "-", "_">;
1149
1149
  }>;
1150
1150
  mode: "light";
1151
- _getColorValue: (color: "beige" | "blue" | "navy" | "green" | "yellow" | "pink" | "red" | "orange" | "hyper" | "white" | "beige-100" | "blue-0" | "blue-100" | "blue-300" | "blue-400" | "blue-500" | "blue-800" | "navy-100" | "navy-300" | "navy-400" | "navy-500" | "navy-800" | "navy-200" | "navy-600" | "navy-700" | "navy-900" | "green-0" | "green-100" | "green-400" | "green-700" | "green-900" | "yellow-0" | "yellow-400" | "yellow-500" | "yellow-900" | "pink-0" | "pink-400" | "red-0" | "red-300" | "red-400" | "red-500" | "red-600" | "red-900" | "orange-100" | "orange-500" | "hyper-400" | "hyper-500" | "gray-100" | "gray-300" | "gray-800" | "gray-200" | "gray-600" | "gray-900" | "white-100" | "white-300" | "white-400" | "white-500" | "white-200" | "white-600" | "white-700" | "black" | "lightBlue" | "lightGreen" | "paleBlue" | "paleGreen" | "palePink" | "paleYellow" | "paleRed" | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-accent" | "text-disabled" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary" | "sapphire" | "percipioTextPrimary" | "percipioTextSecondary" | "percipioTextDisabled" | "percipioTextAccent" | "percipioBgPrimary" | "percipioBgSuccess" | "percipioBgWarning" | "percipioBgError" | "percipioActionPrimaryHover" | "percipioActionSecondary" | "percipioActionSecondaryHover" | "percipioActionDangerHover" | "percipioFeedbackSuccess" | "percipioFeedbackWarning" | "percipioDanger") => string;
1151
+ _getColorValue: (color: "beige" | "blue" | "navy" | "green" | "yellow" | "pink" | "red" | "orange" | "hyper" | "white" | "beige-100" | "blue-0" | "blue-100" | "blue-300" | "blue-400" | "blue-500" | "blue-800" | "navy-100" | "navy-300" | "navy-400" | "navy-500" | "navy-800" | "navy-200" | "navy-600" | "navy-700" | "navy-900" | "green-0" | "green-100" | "green-400" | "green-700" | "green-900" | "yellow-0" | "yellow-400" | "yellow-500" | "yellow-900" | "pink-0" | "pink-400" | "red-0" | "red-300" | "red-400" | "red-500" | "red-600" | "red-900" | "orange-100" | "orange-500" | "hyper-400" | "hyper-500" | "gray-100" | "gray-300" | "gray-800" | "gray-200" | "gray-600" | "gray-900" | "white-100" | "white-300" | "white-400" | "white-500" | "white-200" | "white-600" | "white-700" | "lightBlue" | "lightGreen" | "paleBlue" | "paleGreen" | "palePink" | "paleYellow" | "paleRed" | "black" | "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-accent" | "text-disabled" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary" | "sapphire" | "percipioTextPrimary" | "percipioTextSecondary" | "percipioTextDisabled" | "percipioTextAccent" | "percipioBgPrimary" | "percipioBgSuccess" | "percipioBgWarning" | "percipioBgError" | "percipioActionPrimaryHover" | "percipioActionSecondary" | "percipioActionSecondaryHover" | "percipioActionDangerHover" | "percipioFeedbackSuccess" | "percipioFeedbackWarning" | "percipioDanger") => string;
1152
1152
  }> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys, Record<"name", string>> & import("@codecademy/variance/dist/createTheme/types").PrivateThemeKeys;
1153
1153
  export type PercipioThemeShape = typeof percipioTheme;
1154
1154
  export interface PercipioTheme extends PercipioThemeShape {
@@ -5,4 +5,3 @@ export * from './responsive';
5
5
  export * from './spacing';
6
6
  export * from './timing';
7
7
  export * from './typography';
8
- export * from './deprecated-colors';
@@ -4,6 +4,4 @@ export * from './elements';
4
4
  export * from './responsive';
5
5
  export * from './spacing';
6
6
  export * from './timing';
7
- export * from './typography';
8
- // Deprecated variables
9
- export * from './deprecated-colors';
7
+ export * from './typography';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@codecademy/gamut-styles",
3
3
  "description": "Styleguide & Component library for codecademy.com",
4
- "version": "18.0.1-alpha.f8b396.0",
4
+ "version": "19.0.1-alpha.416911.0",
5
5
  "author": "Jake Hiller <jake@codecademy.com>",
6
6
  "dependencies": {
7
- "@codecademy/variance": "0.26.2-alpha.f8b396.0",
7
+ "@codecademy/variance": "0.26.2-alpha.416911.0",
8
8
  "@emotion/is-prop-valid": "^1.1.0",
9
9
  "framer-motion": "^11.18.0",
10
10
  "get-nonce": "^1.0.0",
package/core/_fonts.scss DELETED
@@ -1,131 +0,0 @@
1
- @font-face {
2
- font-family: "Nunito Sans";
3
- font-display: swap;
4
- src: url("../fonts/Nunito_Sans/nunitosans-regular-webfont.eot");
5
- src: url("../fonts/Nunito_Sans/nunitosans-regular-webfont.woff2")
6
- format("woff2"),
7
- url("../fonts/Nunito_Sans/nunitosans-regular-webfont.woff") format("woff"),
8
- url("../fonts/Nunito_Sans/nunitosans-regular-webfont.ttf") format("ttf");
9
- font-weight: normal;
10
- }
11
-
12
- @font-face {
13
- font-family: "Nunito Sans";
14
- font-display: swap;
15
- src: url("../fonts/Nunito_Sans/nunitosans-bold-webfont.eot");
16
- src: url("../fonts/Nunito_Sans/nunitosans-bold-webfont.woff2") format("woff2"),
17
- url("../fonts/Nunito_Sans/nunitosans-bold-webfont.woff") format("woff"),
18
- url("../fonts/Nunito_Sans/nunitosans-bold-webfont.ttf") format("ttf");
19
- font-weight: bold;
20
- }
21
-
22
- @font-face {
23
- font-family: "Regular Bold";
24
- font-display: swap;
25
- src: url("../fonts/Regular_Bold/Regular-BoldWEB.eot");
26
- src: url("../fonts/Regular_Bold/Regular-BoldWEB.woff2") format("woff2"),
27
- url("../fonts/Regular_Bold/Regular-BoldWEB.woff") format("woff"),
28
- url("../fonts/Regular_Bold/Regular-BoldWEB.svg") format("svg");
29
- }
30
-
31
- // because Regular has weird caret styles
32
- @font-face {
33
- font-family: "Regular Patch";
34
- src: url("../fonts/Nunito_Sans/nunitosans-bold-webfont.eot");
35
- src: url("../fonts/Nunito_Sans/nunitosans-bold-webfont.woff2") format("woff2"),
36
- url("../fonts/Nunito_Sans/nunitosans-bold-webfont.woff") format("woff"),
37
- url("../fonts/Nunito_Sans/nunitosans-bold-webfont.ttf") format("ttf");
38
- unicode-range: U+003C, U+003E;
39
- }
40
-
41
- @font-face {
42
- font-display: swap;
43
- font-family: "Apercu";
44
- font-style: normal;
45
- font-weight: normal;
46
- src: url("../fonts/Apercu/apercu-regular-pro.woff2") format("woff2"),
47
- url("../fonts/Apercu/apercu-regular-pro.woff") format("woff");
48
- }
49
-
50
- @font-face {
51
- font-display: swap;
52
- font-family: "Apercu";
53
- font-style: normal;
54
- font-weight: bold;
55
- src: url("../fonts/Apercu/apercu-bold-pro.woff2") format("woff2"),
56
- url("../fonts/Apercu/apercu-bold-pro.woff") format("woff");
57
- }
58
-
59
- @font-face {
60
- font-display: swap;
61
- font-family: "Apercu";
62
- font-style: italic;
63
- font-weight: normal;
64
- src: url("../fonts/Apercu/apercu-italic-pro.woff2") format("woff2"),
65
- url("../fonts/Apercu/apercu-italic-pro.woff") format("woff");
66
- }
67
-
68
- @font-face {
69
- font-display: swap;
70
- font-family: "Apercu";
71
- font-style: italic;
72
- font-weight: bold;
73
- src: url("../fonts/Apercu/apercu-bold-italic-pro.woff2") format("woff2"),
74
- url("../fonts/Apercu/apercu-bold-italic-pro.woff") format("woff");
75
- }
76
-
77
- @font-face {
78
- font-display: swap;
79
- font-family: "Suisse";
80
- font-weight: normal;
81
- src: url("../fonts/Suisse/SuisseIntlMono-Regular-WebS.woff2") format("woff2"),
82
- url("../fonts/Suisse/SuisseIntlMono-Regular-WebS.woff") format("woff");
83
- }
84
-
85
- @font-face {
86
- font-display: swap;
87
- font-family: "Suisse";
88
- font-weight: bold;
89
- src: url("../fonts/Suisse/SuisseIntlMono-Bold-WebS.woff2") format("woff2"),
90
- url("../fonts/Suisse/SuisseIntlMono-Bold-WebS.woff") format("woff");
91
- }
92
-
93
- @font-face {
94
- font-display: swap;
95
- font-family: "Hanken Grotesk";
96
- font-style: normal;
97
- font-weight: normal;
98
- src: url("../fonts/Hanken_Grotesk/hanken-grotesk-regular.woff2")
99
- format("woff2"),
100
- url("../fonts/Hanken_Grotesk/hanken-grotesk-regular.woff") format("woff");
101
- }
102
-
103
- @font-face {
104
- font-display: swap;
105
- font-family: "Hanken Grotesk";
106
- font-style: normal;
107
- font-weight: bold;
108
- src: url("../fonts/Hanken_Grotesk/hanken-grotesk-bold.woff2") format("woff2"),
109
- url("../fonts/Hanken_Grotesk/hanken-grotesk-bold.woff") format("woff");
110
- }
111
-
112
- @font-face {
113
- font-display: swap;
114
- font-family: "Hanken Grotesk";
115
- font-style: italic;
116
- font-weight: normal;
117
- src: url("../fonts/Hanken_Grotesk/hanken-grotesk-italic.woff2")
118
- format("woff2"),
119
- url("../fonts/Hanken_Grotesk/hanken-grotesk-italic.woff") format("woff");
120
- }
121
-
122
- @font-face {
123
- font-display: swap;
124
- font-family: "Hanken Grotesk";
125
- font-style: italic;
126
- font-weight: bold;
127
- src: url("../fonts/Hanken_Grotesk/hanken-grotesk-bold-italic.woff2")
128
- format("woff2"),
129
- url("../fonts/Hanken_Grotesk/hanken-grotesk-bold-italic.woff")
130
- format("woff");
131
- }