Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Try changing some of the colors below to see what happens.
import { tailwind, baseColors } from "@theme-ui/preset-tailwind"
export default {
useColorSchemeMediaQuery: true,
...tailwind,
breakpoints: ["480px", "768px", "1024px", "1440px"],
fonts: {
...tailwind.fonts,
siteTitle: "inherit", // Font for main site title
navLinks: "inherit", // Font for the nav menu links
alt: "inherit", //An alternate font style if needed.
},
colors: {
...tailwind.colors,
textWhite: baseColors.gray[1],
header: {
background: baseColors.gray[4],
backgroundOpen: baseColors.gray[8],
text: baseColors.gray[8],
textOpen: baseColors.gray[1],
icons: baseColors.gray[8],
iconsHover: baseColors.blue[7],
iconsOpen: baseColors.gray[1],
},
footer: {
background: baseColors.gray[8],
text: baseColors.gray[1],
links: baseColors.gray[1],
icons: baseColors.gray[1],
},
modes: {
...tailwind,
breakpoints: ["480px", "768px", "1024px", "1440px"],
fonts: {
...tailwind.fonts,
siteTitle: "inherit", // Font for main site title
navLinks: "inherit", // Font for the nav menu links
alt: "inherit", //An alternate font style if needed.
},
colors: {
...tailwind.colors,
textWhite: baseColors.gray[1],
header: {
background: baseColors.gray[4],
backgroundOpen: baseColors.gray[8],
text: baseColors.gray[8],
textOpen: baseColors.gray[1],
icons: baseColors.gray[8],
iconsHover: baseColors.blue[7],
iconsOpen: baseColors.gray[1],
},
footer: {
background: baseColors.gray[8],
text: baseColors.gray[1],
links: baseColors.gray[1],
icons: baseColors.gray[1],
},
modes: {
dark: {
text: "#fff",
background: "#000",
},
},
// Try changing some of the colors below to see what happens.
import { tailwind, baseColors } from "@theme-ui/preset-tailwind"
export default {
useColorSchemeMediaQuery: true,
...tailwind,
breakpoints: ["480px", "768px", "1024px", "1440px"],
fonts: {
...tailwind.fonts,
siteTitle: "inherit", // Font for main site title
navLinks: "inherit", // Font for the nav menu links
alt: "inherit", //An alternate font style if needed.
},
colors: {
...tailwind.colors,
textWhite: baseColors.gray[1],
header: {
background: baseColors.gray[4],
backgroundOpen: baseColors.gray[8],
text: baseColors.gray[8],
textOpen: baseColors.gray[1],
icons: baseColors.gray[8],
iconsHover: baseColors.blue[7],
iconsOpen: baseColors.gray[1],
},
footer: {
background: baseColors.gray[8],
text: baseColors.gray[1],
links: baseColors.gray[1],
icons: baseColors.gray[1],
},
modes: {
},
colors: {
...tailwind.colors,
textWhite: baseColors.gray[1],
header: {
background: baseColors.gray[4],
backgroundOpen: baseColors.gray[8],
text: baseColors.gray[8],
textOpen: baseColors.gray[1],
icons: baseColors.gray[8],
iconsHover: baseColors.blue[7],
iconsOpen: baseColors.gray[1],
},
footer: {
background: baseColors.gray[8],
text: baseColors.gray[1],
links: baseColors.gray[1],
icons: baseColors.gray[1],
},
modes: {
dark: {
text: "#fff",
background: "#000",
},
},
},
sizes: {
...tailwind.sizes,
maxPageWidth: "1440px", // Sets the max width of elements like the header/footer on really large screens
maxContentWidth: "720px", // Sets the container size on larger screens, e.g. tablets and laptops
contentWidth: "90vw", // Sets the container width on smaller screens, results in a 5vw margin on the left and right
headerHeight: "auto", // Provides fallback setting to control header height
...tailwind,
breakpoints: ["480px", "768px", "1024px", "1440px"],
fonts: {
...tailwind.fonts,
siteTitle: "inherit", // Font for main site title
navLinks: "inherit", // Font for the nav menu links
alt: "inherit", //An alternate font style if needed.
},
colors: {
...tailwind.colors,
textWhite: baseColors.gray[1],
header: {
background: baseColors.gray[4],
backgroundOpen: baseColors.gray[8],
text: baseColors.gray[8],
textOpen: baseColors.gray[1],
icons: baseColors.gray[8],
iconsHover: baseColors.blue[7],
iconsOpen: baseColors.gray[1],
},
footer: {
background: baseColors.gray[8],
text: baseColors.gray[1],
links: baseColors.gray[1],
icons: baseColors.gray[1],
},
modes: {
dark: {
text: "#fff",
background: "#000",
},
},
import { tailwind, baseColors } from "@theme-ui/preset-tailwind"
export default {
...tailwind,
breakpoints: ["480px", "768px", "1024px", "1440px"],
fonts: {
...tailwind.fonts,
siteTitle: "inherit", // Font for main site title
navLinks: "inherit", // Font for the nav menu links
alt: "inherit", //An alternate font style if needed.
},
colors: {
...tailwind.colors,
primary: baseColors.red[8],
secondary: baseColors.red[5],
accent: baseColors.gray[2],
textWhite: baseColors.gray[1],
header: {
background: "transparent",
backgroundOpen: baseColors.red[1],
text: baseColors.gray[8],
textOpen: baseColors.gray[8],
icons: baseColors.gray[8],
iconsHover: baseColors.red[8],
iconsOpen: baseColors.gray[8],
},
footer: {
background: baseColors.gray[2],
text: baseColors.gray[8],
links: baseColors.gray[8],
icons: baseColors.gray[8],
},
import { tailwind, baseColors } from "@theme-ui/preset-tailwind"
import github from "@theme-ui/prism/presets/github"
export default {
useColorSchemeMediaQuery: true,
...tailwind,
breakpoints: ["480px", "768px", "1024px", "1440px"],
fonts: {
...tailwind.fonts,
siteTitle: "inherit", // Font for main site title
navLinks: "inherit", // Font for the nav menu links
alt: "inherit", //An alternate font style if needed.
},
colors: {
...tailwind.colors,
textWhite: baseColors.gray[1],
header: {
background: baseColors.gray[4],
backgroundOpen: baseColors.gray[8],
text: baseColors.gray[8],
textOpen: baseColors.gray[1],
icons: baseColors.gray[8],
iconsHover: baseColors.blue[7],
iconsOpen: baseColors.gray[1],
},
footer: {
background: baseColors.gray[8],
text: baseColors.gray[1],
links: baseColors.gray[1],
icons: baseColors.gray[1],
},
modes: {
// See https://theme-ui.com/ for more info and also https://www.gatsbyjs.org/docs/theme-ui/
import merge from "deepmerge"
import { BaseTheme } from "gatsby-theme-catalyst-core"
import { baseColors } from "@theme-ui/preset-tailwind"
export default merge(BaseTheme, {
colors: {
primary: baseColors.pink[9],
secondary: baseColors.pink[6],
accent: baseColors.gray[2],
header: {
background: "transparent",
backgroundOpen: baseColors.pink[9],
iconsHover: baseColors.pink[6],
iconsOpen: "#ffffff",
},
footer: {
background: "#eeeeee",
text: "#333",
links: "#333",
icons: "#333",
},
},
styles: {
h1: {
fontFamily: "heading",
alt: "inherit", //An alternate font style if needed.
},
colors: {
...tailwind.colors,
primary: baseColors.red[8],
secondary: baseColors.red[5],
accent: baseColors.gray[2],
textWhite: baseColors.gray[1],
header: {
background: "transparent",
backgroundOpen: baseColors.red[1],
text: baseColors.gray[8],
textOpen: baseColors.gray[8],
icons: baseColors.gray[8],
iconsHover: baseColors.red[8],
iconsOpen: baseColors.gray[8],
},
footer: {
background: baseColors.gray[2],
text: baseColors.gray[8],
links: baseColors.gray[8],
icons: baseColors.gray[8],
},
},
sizes: {
...tailwind.sizes,
maxPageWidth: "1440px", // Sets the max width of elements like the header/footer on really large screens
maxContentWidth: "720px", // Sets the container size on larger screens, e.g. tablets and laptops
contentWidth: "90vw", // Sets the container width on smaller screens, results in a 5vw margin on the left and right
headerHeight: "auto", // Provides fallback setting to control header height
logoWidthXS: "40px", // Logo width on extra small screens, up to 480px
logoWidthS: "50px", // Logo width on small screens, 480px - 768px
breakpoints: ["480px", "768px", "1024px", "1440px"],
fonts: {
...tailwind.fonts,
siteTitle: "inherit", // Font for main site title
navLinks: "inherit", // Font for the nav menu links
alt: "inherit", //An alternate font style if needed.
},
colors: {
...tailwind.colors,
textWhite: baseColors.gray[1],
header: {
background: baseColors.gray[4],
backgroundOpen: baseColors.gray[8],
text: baseColors.gray[8],
textOpen: baseColors.gray[1],
icons: baseColors.gray[8],
iconsHover: baseColors.blue[7],
iconsOpen: baseColors.gray[1],
},
footer: {
background: baseColors.gray[8],
text: baseColors.gray[1],
links: baseColors.gray[1],
icons: baseColors.gray[1],
},
modes: {
dark: {
text: "#fff",
background: "#000",
},
},
},