Skip to content

Commit

Permalink
Implement "background" and "font" CSS module styles
Browse files Browse the repository at this point in the history
They will be initially used in the global theme styles implemented
in GH-53.

Associated epic: GH-51
GH-59
  • Loading branch information
arcticicestudio committed Dec 4, 2018
1 parent 86edb92 commit dc5f56b
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/styles/theme/colors/background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

/**
* @file Provides theme background colors.
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.2.0
*/

import nord from "./nord";
import { MODE_BRIGHT_SNOW_FLURRY, MODE_DARK_NIGHT_FROST } from "../constants";

const base = {
[MODE_BRIGHT_SNOW_FLURRY]: "#fff",
[MODE_DARK_NIGHT_FROST]: nord.nord0
};

const background = { base };

export default background;
27 changes: 27 additions & 0 deletions src/styles/theme/colors/font.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

/**
* @file Provides theme font colors.
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.2.0
*/

import nord from "./nord";
import { MODE_BRIGHT_SNOW_FLURRY, MODE_DARK_NIGHT_FROST } from "../constants";

const base = {
[MODE_BRIGHT_SNOW_FLURRY]: nord.nord3,
[MODE_DARK_NIGHT_FROST]: nord.nord6
};

const font = { base };

export default font;
4 changes: 4 additions & 0 deletions src/styles/theme/colors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
* @since 0.2.0
*/

import background from "./background";
import font from "./font";
import nord from "./nord";
import palettes from "./palettes";

const colors = {
background,
font,
...nord,
...palettes
};
Expand Down

0 comments on commit dc5f56b

Please sign in to comment.