Skip to content

Commit 33b3c45

Browse files
committed
ID-424 WIP CSS Variables for brand colours
Don't really know where this is going but I wrote this in December and will come back to it some time.
1 parent 45c30cb commit 33b3c45

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

docs/assets/site/site.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ html {
99
&.site3 { .apply-site-imagery('/dist/docs/site/site3'); }
1010
}
1111

12-
.apply-brand(@id7-brand-purple);
12+
//.apply-brand(@id7-brand-purple);

less/tokens.less

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@import (reference) "variables";
2+
3+
// value/reference tokens - these should generally only be referred to by other tokens,
4+
// to allow swapping out for theming.
5+
:root {
6+
--id7-ref-purple: @id7-brand-purple;
7+
--id7-ref-purple-contrast: white;
8+
}
9+
10+
// system tokens - overridden by themes
11+
:root {
12+
--id7-sys-primary-bg: var(--id7-ref-purple);
13+
--id7-sys-primary-on-bg: var(--id7-ref-)
14+
}

0 commit comments

Comments
 (0)