forked from openedx/brand-openedx
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df6eecd
commit 1f8bda6
Showing
5 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2775,4 +2775,6 @@ div[role=heading].h2 + .list-unstyled.m-0.mt-4.pt-2 { | |
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
@import './extras'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const fs = require("fs"); | ||
const path = require('path'); | ||
|
||
const themesSupported = ["dark"] | ||
let theme = process.env.npm_config_theme; | ||
|
||
// 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) { | ||
if (!fs.existsSync(destination)) { | ||
fs.mkdirSync(destination); | ||
} | ||
|
||
const files = fs.readdirSync(source); | ||
|
||
files.forEach(file => { | ||
const sourcePath = path.join(source, file); | ||
const destPath = path.join(destination, file); | ||
|
||
if (fs.statSync(sourcePath).isDirectory()) { | ||
copyDirectorySync(sourcePath, destPath); | ||
} else { | ||
fs.copyFileSync(sourcePath, destPath); | ||
} | ||
}); | ||
} | ||
|
||
if (themesSupported.includes(theme)){ | ||
const srcDir = path.resolve(__dirname, 'themes', theme); | ||
const destDir = path.resolve(__dirname, 'paragon'); | ||
copyDirectorySync(srcDir, destDir); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$primary: #15376D; | ||
$primary-light: #F2F7F8; | ||
$light-drak: #374151; | ||
|
||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap'); |