Skip to content

Commit

Permalink
feat: init structure
Browse files Browse the repository at this point in the history
  • Loading branch information
wsuwt committed Oct 15, 2024
1 parent b9013b5 commit f435b6f
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 18 deletions.
2 changes: 0 additions & 2 deletions packages/ds-theme/exports/all.less

This file was deleted.

5 changes: 0 additions & 5 deletions packages/ds-theme/exports/bare.less

This file was deleted.

3 changes: 0 additions & 3 deletions packages/ds-theme/exports/custom.less

This file was deleted.

3 changes: 0 additions & 3 deletions packages/ds-theme/exports/native.less

This file was deleted.

13 changes: 9 additions & 4 deletions packages/ds-theme/index.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// Import all elements
@import 'exports/all';
// Important! you should not need to modify this file
// first, you need to inherit halo theme
@import '@refinitiv-ui/halo-theme/exports/all';
// include theme of all element framework element and native styles
@import 'elements:src/{native,custom}-elements/*';

// Set the default variant
@variant: default;
// include additional colour pallete that you define
@import (reference) 'src/colors';
// include variables from all variants
@import (reference) 'src/variants/@{variant}/variables';
2 changes: 1 addition & 1 deletion packages/ds-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"scripts": {
"build:light": "theme-compiler light --variant=light --registration=event",
"build:dark": "theme-compiler dark --variant=dark --registration=event",
"build": "npm run build:dark && npm run build:light && node ../../scripts/release/theme-extractor.js ../elements",
"build": "npm run build:light && npm run build:dark && node ../../scripts/release/theme-extractor.js ../elements",
"build:prod": "npm run build",
"watch": "chokidar \"**/*.less\" --command \"npm run build\" --debounce=5000",
"prepack": "npm run version",
Expand Down
Empty file.
2 changes: 2 additions & 0 deletions packages/ds-theme/src/variables.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import '@lseg-workspace/web-design-tokens/dist/less/core';
@import '@lseg-workspace/web-design-tokens/dist/less/contextual';
15 changes: 15 additions & 0 deletions packages/ds-theme/src/variants/dark/variables.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@import (reference) '../../variables.less';
@import '@lseg-workspace/web-design-tokens/dist/less/overrides/color/dark.less';


// Compilation Error in elemental theme unable to evaluate - @const-color-common-container-brand-base;
// @scheme-color-primary : @const-color-common-container-brand-base;
// @scheme-color-secondary : @const-color-common-container-secondary-base;
// @scheme-color-tertiary : @const-color-common-container-tertiary-base;
// @scheme-color-info : @const-color-common-container-info-base;
// @scheme-color-confirm : @const-color-common-container-positive-base;
// @scheme-color-warning : @const-color-common-container-warning-base;
// @scheme-color-error : @const-color-common-container-negative-base;

@global-background-color : @cont-color-common-container-surface-layer-1;
@global-text-color : @cont-color-common-fg-generic-moderate;
1 change: 1 addition & 0 deletions packages/ds-theme/src/variants/light/variables.less
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import (reference) '../../variables.less';

0 comments on commit f435b6f

Please sign in to comment.