-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create "theme mode" constants for Nord "auras"
Initially Nord Docs will be build with the "bright snow flurry" and "dark night frost" theme modes representing Nord "auras". The names have been implemented as constants to be used with the theme utility functions to define the styles of a component for each available global theme. GH-53
- Loading branch information
1 parent
6c7eb7c
commit 687d30f
Showing
3 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
/* | ||
* 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 | ||
*/ | ||
|
||
export { default } from "./Root"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* 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 constants. | ||
* @author Arctic Ice Studio <[email protected]> | ||
* @author Sven Greb <[email protected]> | ||
* @since 0.2.0 | ||
*/ | ||
|
||
/** | ||
* Name of Nord's "bright snow flurry" aura for usage as theme mode. | ||
* | ||
* @constant {string} | ||
* @since 0.2.0 | ||
*/ | ||
const MODE_BRIGHT_SNOW_FLURRY = "BRIGHT_SNOW_FLURRY"; | ||
|
||
/** | ||
* Name of Nord's "dark night frost" aura for usage as theme mode. | ||
* | ||
* @constant {string} | ||
* @since 0.2.0 | ||
*/ | ||
const MODE_DARK_NIGHT_FROST = "DARK_NIGHT_FROST"; | ||
|
||
/** | ||
* The name of the theme key for "theme modes". | ||
* | ||
* @constant {string} | ||
* @since 0.2.0 | ||
*/ | ||
const THEME_KEY_MODE = "mode"; | ||
|
||
export { MODE_BRIGHT_SNOW_FLURRY, MODE_DARK_NIGHT_FROST, THEME_KEY_MODE }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters