Skip to content

Commit 4ead602

Browse files
committed
feat: add support to paragon design tokens [wip]
This PR purpose is to test/demo parago design tokens simliar to this one for the profile openedx/frontend-app-profile/pull/764 it override the following depns as seen in package.json - paragon alpha - openedx/frontend-build/pull/365 - openedx/frontend-platform/pull/440 - openedx/frontend-component-header/pull/351 - openedx/frontend-component-footer/pull/303 Conclousion so far: - There is an extra library that learning depends on which needs to support paragon; `frontend-lib-learning-assistant` and also `frontend-lib-special-exams` - It would be great to have a gudie or a document to look at, while doing the conversion that would **map variable from who it was used/named before to the name in design tokens** - I was stuck in the end with compliation error, that wepack couldn't find `Modal` exported from paragon.
1 parent 32bd319 commit 4ead602

File tree

14 files changed

+1621
-3512
lines changed

14 files changed

+1621
-3512
lines changed

.env.development

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ USER_INFO_COOKIE_NAME='edx-user-info'
4848
SESSION_COOKIE_DOMAIN='localhost'
4949
CHAT_RESPONSE_URL='http://localhost:18000/api/learning_assistant/v1/course_id'
5050
PRIVACY_POLICY_URL='http://localhost:18000/privacy'
51+
APP_ID='learning'
52+
MFE_CONFIG_API_URL='http://localhost:18000/api/mfe_config/v1'

env.config.example.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const config = {
2+
PARAGON_THEME_URLS: {
3+
core: {
4+
urls: {
5+
default: 'https://cdn.jsdelivr.net/npm/@edx/paragon@$paragonVersion/dist/core.min.css',
6+
brandOverride: 'https://cdn.jsdelivr.net/npm/@edx/brand-edx.org@$brandVersion/dist/core.min.css',
7+
},
8+
},
9+
variants: {
10+
light: {
11+
urls: {
12+
default: 'https://cdn.jsdelivr.net/npm/@edx/paragon@$paragonVersion/dist/light.min.css',
13+
brandOverride: 'https://cdn.jsdelivr.net/npm/@edx/brand-edx.org@$brandVersion/dist/light.min.css',
14+
},
15+
default: true,
16+
dark: false,
17+
},
18+
},
19+
},
20+
};
21+
22+
export default config;

0 commit comments

Comments
 (0)