-
Notifications
You must be signed in to change notification settings - Fork 49
[03] [Project Solar / Phase 1 / Themed CSS for HDS components] Rollup configuration and Sass processing for multiple files #3259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
didoo
merged 15 commits into
project-solar/phase-1/HDS-5216_modes/modes-feature-branch
from
project-solar/phase-1/HDS-5505_components/modes-css-compilation
Nov 25, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4e131af
Draft a custom plugin to compile the themed SCSS
alex-ju 1ced1d2
updated SCSS files organization for components (split common part) + β¦
didoo d416e7f
added support for source maps for generated themed CSS files
didoo 2935a3d
TEMP - Added generation of βaltβ CSS for HDS components to compare wiβ¦
didoo 423b892
abstracted logic for custom Rollup plugin to compile multiple Sass fiβ¦
didoo aeac349
updated `includePaths` for design tokens in Showcase and Website `embβ¦
didoo fc45c2f
moved compilation of existing Scss files for components and overridesβ¦
didoo 394a058
removed `rollup-plugin-scss` dev dependency (we use our own custom plβ¦
didoo 909e008
added CSS compilation for `combined-strategies` tokens
didoo 5c22feb
updated the `prePublish` script in `package.json` of `components` to β¦
didoo 24c9c9b
simplified architecture of CSS compilation for HDS components (as agrβ¦
didoo 16f51cb
fixed `prepublisOnly` script that was causing error in build (lookingβ¦
didoo afb6e3f
updated `cssFilePath` in blueprints to reflect new Scss file organizaβ¦
didoo 2fa10f4
Apply suggestions from code review
didoo 053e6de
Update packages/components/src/styles/@hashicorp/design-system-componβ¦
didoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
21 changes: 21 additions & 0 deletions
21
packages/components/src/styles/@hashicorp/design-system-components-common.scss
dchyun marked this conversation as resolved.
Show resolved
Hide resolved
dchyun marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,21 @@ | ||
| /** | ||
| * Copyright (c) HashiCorp, Inc. | ||
| * SPDX-License-Identifier: MPL-2.0 | ||
| */ | ||
|
|
||
| // these files come from `packages/tokens/dist/` | ||
| @use "products/css/helpers/color"; | ||
| @use "products/css/helpers/elevation"; | ||
| @use "products/css/helpers/focus-ring"; | ||
| @use "products/css/helpers/typography"; | ||
|
|
||
| // main components file | ||
| @use "../components/index"; | ||
|
|
||
| // screen-reader utility class | ||
| @use "../mixins/screen-reader-only" as *; | ||
|
|
||
didoo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| // The `.sr-only` utility class visually hides content but keeps it accessible to screen readers for accessibility purposes. | ||
| .sr-only { | ||
| @include screen-reader-only(); | ||
| } | ||
This file contains hidden or 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 hidden or 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,52 @@ | ||
| /** | ||
| * Copyright (c) HashiCorp, Inc. | ||
| * SPDX-License-Identifier: MPL-2.0 | ||
| */ | ||
|
|
||
| // Notice: this list can be automatically edited by the Ember blueprint, please don't remove the start/end comments | ||
didoo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| // START COMPONENTS CSS FILES IMPORTS | ||
| @use "./accordion"; | ||
| @use "./advanced-table"; | ||
| @use "./alert"; | ||
| @use "./app-footer"; | ||
| @use "./app-frame"; | ||
| @use "./app-header"; | ||
| @use "./app-side-nav"; | ||
| @use "./application-state"; | ||
| @use "./badge"; | ||
| @use "./badge-count"; | ||
| @use "./breadcrumb"; | ||
| @use "./button"; | ||
| @use "./button-set"; | ||
| @use "./card"; | ||
| @use "./code-block"; | ||
| @use "./code-editor"; | ||
| @use "./copy"; | ||
| @use "./dialog-primitive"; | ||
| @use "./disclosure-primitive"; | ||
| @use "./dismiss-button"; | ||
| @use "./dropdown"; | ||
| @use "./flyout"; | ||
| @use "./form"; // multiple components | ||
| @use "./icon"; | ||
| @use "./icon-tile"; | ||
| @use "./layout"; // multiple components | ||
| @use "./link"; // multiple components | ||
| @use "./menu-primitive"; | ||
| @use "./modal"; | ||
| @use "./page-header"; | ||
| @use "./pagination"; | ||
| @use "./reveal"; | ||
| @use "./rich-tooltip"; | ||
| @use "./segmented-group"; | ||
| @use "./separator"; | ||
| @use "./side-nav"; | ||
| @use "./stepper"; | ||
| @use "./table"; | ||
| @use "./tabs"; | ||
| @use "./tag"; | ||
| @use "./text"; | ||
| @use "./time"; | ||
| @use "./toast"; | ||
| @use "./tooltip"; | ||
| // END COMPONENT CSS FILES IMPORTS | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.