Skip to content

Commit 251c411

Browse files
committed
added local testing of CSS helpers/tokens/variables
1 parent 890e620 commit 251c411

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

addons/rose/addon/styles/addon.scss

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

6666
@include PlexSans.default;
6767
@include PlexMono.default;
68+
69+
// TEMP - THEME TESTING
70+
71+
.projects-theming-test {
72+
display: flex;
73+
flex-direction: column;
74+
gap: 12px;
75+
margin: 0 0 24px;
76+
padding: 24px 0;
77+
78+
--local-foreground-color: var(--token-color-foreground-primary);
79+
--local-background-color: var(--token-color-surface-faint);
80+
--local-font-family: var(--token-typography-font-stack-text);
81+
--local-font-size: var(--token-typography-body-200-font-size);
82+
--local-font-weight: var(--token-typography-font-weight-semibold);
83+
}
84+
85+
.projects-theming-test-normal-local-classes {
86+
color: var(--token-color-foreground-primary);
87+
background-color: var(--token-color-surface-faint);
88+
font-family: var(--token-typography-font-stack-text);
89+
font-size: var(--token-typography-body-200-font-size);
90+
font-weight: var(--token-typography-font-weight-semibold);
91+
}
92+
93+
.projects-theming-test-aliased-local-classes {
94+
color: var(--local-foreground-color);
95+
background-color: var(--local-background-color);
96+
font-family: var(--local-font-family);
97+
font-size: var(--local-font-size);
98+
font-weight: var(--local-font-weight);
99+
}

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,16 @@
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</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+
{{! template-lint-enable no-bare-strings }}
36+
</div>
37+
2638
{{outlet}}

0 commit comments

Comments
 (0)