Skip to content

Commit 4f0ca0c

Browse files
committed
Replace SCSS variables with custom CSS variables
1 parent 2bc7b39 commit 4f0ca0c

File tree

2 files changed

+32
-33
lines changed

2 files changed

+32
-33
lines changed

src/styles/colors.scss

-29
This file was deleted.

src/styles/h5p-boilerplate-snordian.scss

+32-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import "./colors";
2-
31
html {
42
box-sizing: border-box;
53
}
@@ -14,8 +12,38 @@ html {
1412
// }
1513

1614
.h5p-boilerplate-snordian {
17-
background-color: $color-background;
18-
color: $color-text;
15+
/* Common colors */
16+
--color-background: #fff;
17+
--color-text: #4c4452;
18+
--color-text-dark: var(--color-text);
19+
--color-text-light: #fff;
20+
21+
/* Disabled color, e.g. for buttons */
22+
--color-disabled: rgb(128 128 128 / 95%);
23+
24+
/* Hint box, e.g. for when no content is set */
25+
--color-hint-message-background: #f5e8d5;
26+
--color-hint-message-border: #ed5;
27+
--color-hint-message-text: #9e5c16;
28+
29+
/* Primary color with common gradients */
30+
--color-primary: rgb(26, 115, 217);
31+
--color-primary-5: rgb(26 115 217 / 5%);
32+
--color-primary-10: rgb(26 115 217 / 10%);
33+
--color-primary-15: rgb(26 115 217 / 15%);
34+
--color-primary-30: rgb(26 115 217 / 30%);
35+
--color-primary-50: rgb(26 115 217 / 50%);
36+
--color-primary-70: rgb(26 115 217 / 70%);
37+
--color-primary-90: rgb(26 115 217 / 90%);
38+
--color-primary-95: rgb(26 115 217 / 95%);
39+
40+
/* Commonly used by H5P Group */
41+
--color-joubelui-button: #1a73d9;
42+
--color-joubelui-button-hover: #1356a3;
43+
--color-joubelui-button-active: #104888;
44+
45+
background-color: var(--color-background);
46+
color: var(--color-text);
1947
width: 100%;
2048

2149
.h5p-boilerplate-snordian-main {

0 commit comments

Comments
 (0)