Skip to content

Commit d463e5a

Browse files
Merge pull request #14 from edx/andya/update-colors
Improve the edx.org theme colors and fonts
2 parents a8952de + a0f72e2 commit d463e5a

File tree

3 files changed

+34
-32
lines changed

3 files changed

+34
-32
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@edx/edx-bootstrap",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "The Bootstrap theme for Open edX",
55
"license": "Apache-2.0",
66
"repository": {

sass/edx/_variables.scss

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
//
1010

1111
$white: #fff !default;
12-
$gray-100: #f8f9fa !default;
13-
$gray-200: #e9ecef !default;
14-
$gray-300: #dee2e6 !default;
15-
$gray-400: #ced4da !default;
16-
$gray-500: #adb5bd !default;
17-
$gray-600: #868e96 !default;
18-
$gray-700: #495057 !default;
19-
$gray-800: #343a40 !default;
20-
$gray-900: #212529 !default;
12+
$gray-100: #f5f5f5 !default;
13+
$gray-200: #e7e7e7 !default;
14+
$gray-300: #d9d9d9 !default;
15+
$gray-400: #c8c8c8 !default;
16+
$gray-500: #a0a0a0 !default;
17+
$gray-600: #767676 !default;
18+
$gray-700: #414141 !default;
19+
$gray-800: #313131 !default;
20+
$gray-900: #111 !default;
2121
$black: #000 !default;
2222

2323
$grays: () !default;
@@ -71,6 +71,7 @@ $theme-colors: map-merge((
7171
info: $pink,
7272
warning: $yellow,
7373
danger: $red,
74+
purchase: $green,
7475
lightest: $gray-100,
7576
light: $gray-200,
7677
dark: $gray-800,
@@ -196,9 +197,9 @@ $line-height-sm: 1 !default;
196197
$border-width: 1px !default;
197198
$border-color: theme-color("light") !default;
198199

199-
$border-radius: 0.25rem !default;
200-
$border-radius-lg: 0.3rem !default;
201-
$border-radius-sm: 0.2rem !default;
200+
$border-radius: 0.1875rem !default;
201+
$border-radius-lg: $border-radius !default;
202+
$border-radius-sm: $border-radius !default;
202203

203204
$component-active-color: theme-color("inverse") !default;
204205
$component-active-bg: theme-color("primary") !default;
@@ -214,13 +215,13 @@ $transition-collapse: height 0.35s ease !default;
214215
//
215216
// Font, line-height, and color for body text, headings, and more.
216217

217-
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
218+
$font-family-sans-serif: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
218219
//$font-family-monospace: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
219-
//$font-family-base: $font-family-sans-serif !default;
220+
$font-family-base: $font-family-sans-serif !default;
220221

221-
$font-size-base: 0.875rem !default; // Assumes the browser default, typically `16px`
222-
$font-size-lg: 1rem !default;
223-
$font-size-sm: 0.75rem !default;
222+
$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
223+
$font-size-lg: 1.25rem !default;
224+
$font-size-sm: 0.875rem !default;
224225

225226
$font-weight-light: 300 !default;
226227
$font-weight-normal: normal !default;
@@ -229,12 +230,12 @@ $font-weight-bold: bold !default;
229230
$font-weight-base: $font-weight-normal !default;
230231
$line-height-base: 1.5 !default;
231232

232-
$h1-font-size: 2rem !default;
233-
$h2-font-size: 1.75rem !default;
234-
$h3-font-size: 1.5rem !default;
235-
$h4-font-size: 1.25rem !default;
236-
$h5-font-size: 1rem !default;
237-
$h6-font-size: 0.875rem !default;
233+
$h1-font-size: 1.75rem !default;
234+
$h2-font-size: 1.5rem !default;
235+
$h3-font-size: 1.25rem !default;
236+
$h4-font-size: 1rem !default;
237+
$h5-font-size: 0.875rem !default;
238+
$h6-font-size: 0.75rem !default;
238239

239240
//$headings-margin-bottom: ($spacer / 2) !default;
240241
//$headings-font-family: inherit !default;
@@ -307,8 +308,8 @@ $h6-font-size: 0.875rem !default;
307308
//
308309
// For each of Bootstrap's buttons, define text, background and border color.
309310

310-
$input-btn-padding-y: 0.5rem !default;
311-
$input-btn-padding-x: 0.75rem !default;
311+
$input-btn-padding-y: 0.625rem !default;
312+
$input-btn-padding-x: 0.625rem !default;
312313
$input-btn-line-height: 1.25 !default;
313314

314315
$input-btn-padding-y-sm: 0.25rem !default;

sass/open-edx/_variables.scss

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ $theme-colors: map-merge((
7070
info: $cyan,
7171
warning: $yellow,
7272
danger: $red,
73+
purchase: $green,
7374
lightest: $gray-100,
7475
light: $gray-200,
7576
dark: $gray-800,
@@ -212,13 +213,13 @@ $transition-collapse: height 0.35s ease !default;
212213
//
213214
// Font, line-height, and color for body text, headings, and more.
214215

215-
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
216+
$font-family-sans-serif: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
216217
//$font-family-monospace: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
217218
//$font-family-base: $font-family-sans-serif !default;
218219

219-
$font-size-base: 0.875rem !default; // Assumes the browser default, typically `16px`
220-
$font-size-lg: 1rem !default;
221-
$font-size-sm: 0.75rem !default;
220+
$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
221+
$font-size-lg: 1.25rem !default;
222+
$font-size-sm: 0.875rem !default;
222223

223224
$font-weight-light: 300 !default;
224225
$font-weight-normal: normal !default;
@@ -305,8 +306,8 @@ $h6-font-size: 1rem !default;
305306
//
306307
// For each of Bootstrap's buttons, define text, background and border color.
307308

308-
$input-btn-padding-y: 0.5rem !default;
309-
$input-btn-padding-x: 0.75rem !default;
309+
$input-btn-padding-y: 0.625rem !default;
310+
$input-btn-padding-x: 0.625rem !default;
310311
$input-btn-line-height: 1.25 !default;
311312

312313
$input-btn-padding-y-sm: 0.25rem !default;

0 commit comments

Comments
 (0)