We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c4503a commit ee23c1eCopy full SHA for ee23c1e
src/components/templates/mixins/pseudos.js
@@ -1,9 +1,15 @@
1
import background from "src/components/templates/mixins/background"
2
import borderMixIn from "src/components/templates/mixins/border"
3
import shadow from "src/components/templates/mixins/shadow"
4
-import { fontColor } from "src/components/typography/typography"
+import { getColor } from "src/theme"
5
+
6
const clearEmptyLines = str => str.replace(/^(?=\n)$|^\s*|\s*$|\n\n+/gm, "")
7
8
+const fontColor = ({ theme, color }) => {
9
+ if (!color) return ""
10
+ return `color: ${getColor(color)({ theme })};`
11
+}
12
13
export const callAllFunctionsAndMergeResults = (...fns) => {
14
let result = ""
15
return function mergedFn(arg) {
0 commit comments