WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 0848622

Browse files
authored
Merge pull request #56 from IATI/ml/white-background
Add light grey background colour to body
2 parents 82a2fda + abf1196 commit 0848622

File tree

21 files changed

+85
-2
lines changed

21 files changed

+85
-2
lines changed

.storybook/preview.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const preview: Preview = {
2424
backgrounds: {
2525
values: [
2626
{ name: "light", value: "#fff" },
27+
{ name: "grey", value: "#f6f6f6" },
2728
{ name: "dark", value: "#155366" },
2829
],
2930
},

src/scss/base/_defaults.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@use "../tokens/color" as *;
2+
3+
body {
4+
background-color: $color-grey-10;
5+
}

src/scss/base/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
@forward "reset";
33
@forward "mixins";
44
@forward "focus";
5+
@forward "defaults";

src/scss/components/brand-background/brand-background.stories.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { html } from "lit";
44

55
const meta: Meta = {
66
title: "Components/Brand Background",
7+
parameters: {
8+
backgrounds: {
9+
default: "light",
10+
},
11+
},
712
};
813

914
export default meta;

src/scss/components/breadcrumb/breadcrumb.stories.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import type { Meta, StoryObj } from "@storybook/web-components";
44

55
const meta: Meta = {
66
title: "Components/Breadcrumb",
7+
parameters: {
8+
backgrounds: {
9+
default: "light",
10+
},
11+
},
712
};
813

914
export default meta;

src/scss/components/button/button.stories.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { html } from "lit";
44

55
const meta: Meta = {
66
title: "Components/Button",
7+
parameters: {
8+
backgrounds: {
9+
default: "light",
10+
},
11+
},
712
};
813

914
export default meta;

src/scss/components/callout/callout.stories.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { html } from "lit";
33

44
const meta: Meta = {
55
title: "Components/Callout",
6+
parameters: {
7+
backgrounds: {
8+
default: "light",
9+
},
10+
},
611
};
712

813
export default meta;

src/scss/components/card/card.stories.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { html } from "lit";
44

55
const meta: Meta = {
66
title: "Components/Card",
7+
parameters: {
8+
backgrounds: {
9+
default: "light",
10+
},
11+
},
712
};
813

914
export default meta;

src/scss/components/figures/figures.stories.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import { html } from "lit";
33

44
const meta: Meta = {
55
title: "Components/Figures",
6-
parameters: {},
6+
parameters: {
7+
backgrounds: {
8+
default: "light",
9+
},
10+
},
711
};
812

913
const items = [

src/scss/components/footer/footer.stories.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ const meta: Meta = {
1313
title: "Components/Footer",
1414
parameters: {
1515
layout: "fullscreen",
16+
backgrounds: {
17+
default: "light",
18+
},
1619
},
1720
};
1821

0 commit comments

Comments
 (0)