Skip to content

Commit dc5f56b

Browse files
Implement "background" and "font" CSS module styles
They will be initially used in the global theme styles implemented in GH-53. Associated epic: GH-51 GH-59
1 parent 86edb92 commit dc5f56b

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

src/styles/theme/colors/background.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
3+
* Copyright (C) 2018-present Sven Greb <[email protected]>
4+
*
5+
* Project: Nord Docs
6+
* Repository: https://github.com/arcticicestudio/nord-docs
7+
* License: MIT
8+
*/
9+
10+
/**
11+
* @file Provides theme background colors.
12+
* @author Arctic Ice Studio <[email protected]>
13+
* @author Sven Greb <[email protected]>
14+
* @since 0.2.0
15+
*/
16+
17+
import nord from "./nord";
18+
import { MODE_BRIGHT_SNOW_FLURRY, MODE_DARK_NIGHT_FROST } from "../constants";
19+
20+
const base = {
21+
[MODE_BRIGHT_SNOW_FLURRY]: "#fff",
22+
[MODE_DARK_NIGHT_FROST]: nord.nord0
23+
};
24+
25+
const background = { base };
26+
27+
export default background;

src/styles/theme/colors/font.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
3+
* Copyright (C) 2018-present Sven Greb <[email protected]>
4+
*
5+
* Project: Nord Docs
6+
* Repository: https://github.com/arcticicestudio/nord-docs
7+
* License: MIT
8+
*/
9+
10+
/**
11+
* @file Provides theme font colors.
12+
* @author Arctic Ice Studio <[email protected]>
13+
* @author Sven Greb <[email protected]>
14+
* @since 0.2.0
15+
*/
16+
17+
import nord from "./nord";
18+
import { MODE_BRIGHT_SNOW_FLURRY, MODE_DARK_NIGHT_FROST } from "../constants";
19+
20+
const base = {
21+
[MODE_BRIGHT_SNOW_FLURRY]: nord.nord3,
22+
[MODE_DARK_NIGHT_FROST]: nord.nord6
23+
};
24+
25+
const font = { base };
26+
27+
export default font;

src/styles/theme/colors/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414
* @since 0.2.0
1515
*/
1616

17+
import background from "./background";
18+
import font from "./font";
1719
import nord from "./nord";
1820
import palettes from "./palettes";
1921

2022
const colors = {
23+
background,
24+
font,
2125
...nord,
2226
...palettes
2327
};

0 commit comments

Comments
 (0)