Skip to content

Commit aeec0a4

Browse files
committed
added local testing of CSS helpers/tokens/variables
1 parent 3030fad commit aeec0a4

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

addons/rose/addon/styles/addon.scss

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,35 @@
7272

7373
@include PlexSans.all;
7474
@include PlexMono.all;
75+
76+
// TEMP - THEME TESTING
77+
78+
.projects-theming-test {
79+
display: flex;
80+
flex-direction: column;
81+
gap: 12px;
82+
margin: 0 0 24px;
83+
padding: 24px 0;
84+
85+
--local-foreground-color: var(--token-color-foreground-primary);
86+
--local-background-color: var(--token-color-surface-faint);
87+
--local-font-family: var(--token-typography-font-stack-text);
88+
--local-font-size: var(--token-typography-body-200-font-size);
89+
--local-font-weight: var(--token-typography-font-weight-semibold);
90+
}
91+
92+
.projects-theming-test-normal-local-classes {
93+
color: var(--token-color-foreground-primary);
94+
background-color: var(--token-color-surface-faint);
95+
font-family: var(--token-typography-font-stack-text);
96+
font-size: var(--token-typography-body-200-font-size);
97+
font-weight: var(--token-typography-font-weight-semibold);
98+
}
99+
100+
.projects-theming-test-aliased-local-classes {
101+
color: var(--local-foreground-color);
102+
background-color: var(--local-background-color);
103+
font-family: var(--local-font-family);
104+
font-size: var(--local-font-size);
105+
font-weight: var(--local-font-weight);
106+
}

ui/admin/app/templates/scopes/scope/scopes.hbs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,19 @@
2323
/>
2424
{{/if}}
2525

26+
<div class='projects-theming-test'>
27+
{{! template-lint-disable no-bare-strings }}
28+
<p
29+
class='hds-typography-body-200 hds-font-weight-semibold hds-foreground-primary hds-surface-faint'
30+
>Test CSS helper classes for "sans" font</p>
31+
<p class='projects-theming-test-normal-local-classes'>Test normal local CSS
32+
classes</p>
33+
<p class='projects-theming-test-aliased-local-classes'>Test normal aliased CSS
34+
classes</p>
35+
<p
36+
class='hds-typography-code-200 hds-font-weight-semibold hds-foreground-primary hds-surface-faint'
37+
>Test CSS helper classes for "mono" font</p>
38+
{{! template-lint-enable no-bare-strings }}
39+
</div>
40+
2641
{{outlet}}

0 commit comments

Comments
 (0)