Skip to content

Commit 4cc6de5

Browse files
committed
added CSS compilation for combined-strategies tokens
1 parent be369aa commit 4cc6de5

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

packages/components/rollup.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ const plugins = [
100100
outputFile:
101101
'design-system-components-theming-with-prefers-color-scheme.css',
102102
},
103+
{
104+
inputFile:
105+
'design-system-components-theming-with-combined-strategies.scss',
106+
outputFile:
107+
'design-system-components-theming-with-combined-strategies.css',
108+
},
103109
{
104110
inputFile: 'design-system-power-select-overrides.scss',
105111
outputFile: 'design-system-power-select-overrides.css',
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
6+
// these files come from `packages/tokens/dist/`
7+
@use "products/css/themed-tokens/with-combined-strategies/tokens.css";
8+
// TODO understand if these are common/shared or we should have different ones for the themed tokens
9+
@use "products/css/helpers/color";
10+
@use "products/css/helpers/elevation";
11+
@use "products/css/helpers/focus-ring";
12+
@use "products/css/helpers/typography";
13+
14+
// main components file
15+
@use "../components/index";
16+
17+
// screen-reader utility class
18+
@use "../mixins/screen-reader-only" as *;
19+
20+
.sr-only {
21+
@include screen-reader-only();
22+
}

0 commit comments

Comments
 (0)