Skip to content

Commit

Permalink
fix: final testing
Browse files Browse the repository at this point in the history
  • Loading branch information
hinakhadim committed Apr 3, 2024
1 parent b9ff2c3 commit 169cd2d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 19 deletions.
5 changes: 4 additions & 1 deletion paragon/_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -586,4 +586,7 @@ html {
}
}
}
}
}


@import './extras';
15 changes: 6 additions & 9 deletions postinstall.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
const fs = require("fs");
const path = require('path');

const themesSupported = ["light", "dark"]

const themesSupported = ["dark"]
let theme = process.env.npm_config_theme;
if (!themesSupported.includes(theme)){
theme = 'light';
}

// INFO: writing copyDirectorySync instead of using fs-extra package because we don't want to have any npm dependency in brand-openedx
function copyDirectorySync(source, destination) {
Expand All @@ -28,7 +24,8 @@ function copyDirectorySync(source, destination) {
});
}

const srcDir = path.resolve(__dirname, 'themes', theme);
const destDir = path.resolve(__dirname, 'paragon');
copyDirectorySync(srcDir, destDir);

if (themesSupported.includes(theme)){
const srcDir = path.resolve(__dirname, 'themes', theme);
const destDir = path.resolve(__dirname, 'paragon');
copyDirectorySync(srcDir, destDir);
}
2 changes: 1 addition & 1 deletion themes/dark/_extras.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.profile-page {
background: lightcoral;
background: lightgreen;
}
2 changes: 1 addition & 1 deletion themes/dark/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Use this file to set SASS variables for @edx/paragon
// See _variables.scss in https://github.com/openedx/paragon/blob/master/scss/core/ for reference
$primary: red;
$primary: purple;
$primary-light: #374151 ;
$light-drak: #F2F7F8;

Expand Down
7 changes: 0 additions & 7 deletions themes/light/_variables.scss

This file was deleted.

Binary file removed themes/light/images/logo-trademark.png
Binary file not shown.

0 comments on commit 169cd2d

Please sign in to comment.