-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allow optout of theme & color * Only generate color if !false && config.color has keys * Fix typo * Ugh * Update readme, remove color === false check
- Loading branch information
1 parent
1c27c17
commit 20eb752
Showing
5 changed files
with
57 additions
and
27 deletions.
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
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
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,7 +1,7 @@ | ||
export default function DocHeader() { | ||
return /*css*/` | ||
/** | ||
* For more information please see the documentation at : https://github.com/enhance-dev/enhance-styles#readme | ||
return /*css*/`/** | ||
* ENHANCE STYLES | ||
* For more information, please see the documentation at : https://github.com/enhance-dev/enhance-styles#readme | ||
*/ | ||
` | ||
} |
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,17 @@ | ||
import test from 'tape' | ||
|
||
import themeColor from '../theme-color.mjs' | ||
|
||
const noTheme = { | ||
theme: false | ||
} | ||
|
||
const noColor = { | ||
color: {} | ||
} | ||
|
||
test('themeColor', t => { | ||
t.notOk(themeColor({ config: noTheme }).includes('/*** Theme Colors ***/'), 'should not include theme colors when `config.theme` is `false`') | ||
t.notOk(themeColor({ config: noColor }).includes('/*** Spot Colors ***/'), 'should not include spot colors when `config.color` is empty') | ||
t.end() | ||
}) |
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