-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Proposed change The purpose of this PR is to provide tools to generate a theme (CSS Var based) from a Design Token specification. ## Included - [x] Generation of CSS Var for the Showcase application - [x] Generation of CMS Metadata - [x] Schematics to access to generator - [x] CLI to access to the generator - [x] NgBuilder (including `watch` mode) - [x] Documentation - [x] Unit Tests ## Links - Design Token Specification: https://design-tokens.github.io/community-group/format/ <!-- Please make sure to follow the contributing guidelines on https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md -->
- Loading branch information
Showing
91 changed files
with
3,779 additions
and
15 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn nx affected -t i18n && yarn lint-staged | ||
yarn lint-staged |
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
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
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
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,9 @@ | ||
o3r-run-app-locally { | ||
/* --- BEGIN THEME Auto-generated --- */ | ||
--run-app-locally-tertiary-bg: var(--color-primary-50); | ||
/* --- END THEME Auto-generated --- */ | ||
|
||
.bg-body-tertiary { | ||
background: var(--run-app-locally-tertiary-bg); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
apps/showcase/src/components/showcase/basic/basic-pres.style.scss
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@mixin style { | ||
|
||
.bubble { | ||
border-radius: var(--bs-border-radius-xl); | ||
|
||
|
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,36 @@ | ||
{ | ||
"$schema": "../../../../packages/@o3r/design/schemas/design-token.schema.json", | ||
"bs": { | ||
"primary": { | ||
"$description": "Application Primary color", | ||
"$type": "color", | ||
"$value": "{color.primary}" | ||
}, | ||
"nav-pills": { | ||
"$extensions": { | ||
"o3rScope": ".nav-pills" | ||
}, | ||
"link-active-color": { | ||
"$value": "{color.primary}" | ||
} | ||
}, | ||
"tertiary": { | ||
"bg": { | ||
"$extensions": { | ||
"o3rImportant": true | ||
}, | ||
"$value": "{color.neutral.gray-light}" | ||
} | ||
} | ||
}, | ||
"run-app-locally": { | ||
"$extensions": { | ||
"o3rTargetFile": "app/run-app-locally/run-app-locally.style.scss" | ||
}, | ||
"tertiary": { | ||
"bg": { | ||
"$value": "{color.primary.50}" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.