Skip to content

Commit

Permalink
[#2473] prepare for new tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Jul 11, 2024
1 parent ecca7a2 commit b20e35c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
15 changes: 8 additions & 7 deletions src/open_inwoner/scss/components/Button/Button.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import '~@utrecht/components/dist/button/css/index.css';

.utrecht-button {
.utrecht-button,
.button {
align-items: center;
border-radius: var(--border-radius);
box-sizing: border-box;
Expand Down Expand Up @@ -84,9 +85,9 @@
}

&#{&}--primary {
background-color: var(--color-primary);
border: 1px solid var(--color-primary);
color: var(--color-font-primary);
background-color: var(--utrecht-button-primary-action-background-color);
border: 1px solid var(--utrecht-button-primary-action-background-color);
color: var(--utrecht-button-secondary-color);

&:focus,
&:hover {
Expand All @@ -95,9 +96,9 @@
}

&--secondary {
background-color: var(--color-secondary);
border: 1px solid var(--color-secondary);
color: var(--color-white);
background-color: var(--utrecht-button-secondary-action-background-color);
border: 1px solid var(--utrecht-button-secondary-action-background-color);
color: var(--utrecht-button-secondary-action-color);

&:focus,
&:hover {
Expand Down
11 changes: 9 additions & 2 deletions src/open_inwoner/scss/views/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
calc(var(--color-error-l) + 50%)
);

// From color picker
--color-info-h: 2010;
--color-info-s: 64%;
--color-info-l: 80%;
Expand All @@ -167,6 +168,12 @@
calc(var(--color-info-l) - 40%)
);

// From design-tokens
--oip-color-primary: var(--color-primary);
--oip-color-secondary: var(--color-secondary);
--oip-color-primary-darker: var(--color-primary-darker);
--oip-color-secondary-darker: var(--color-secondary-darker);

--color-success-h: 115;
--color-success-s: 26%;
--color-success-l: 37%;
Expand All @@ -182,8 +189,8 @@
);
// color-success-l was +50% but +57% is needed for 4.5:1 contrast

--color-font-primary: var(--color-white);
--color-font-secondary: var(--color-white);
//--color-font-primary: var(--color-white);
//--color-font-secondary: var(--color-white);
--color-font-accent: var(--color-gray-dark);

--color-body: var(--color-gray-dark);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.openinwoner-theme {
--oip-color-primary: var(--color-primary);
//--oip-color-primary: var(--color-primary);
--oip-color-secondary: var(--color-secondary);
--oip-color-primary-darker: var(--color-primary-darker);
--oip-color-secondary-darker: var(--color-secondary-darker);
Expand Down

0 comments on commit b20e35c

Please sign in to comment.