const tailwindColors = require("tailwindcss/colors") // Colors // ------ const colors = { base00: "rgb(45, 45, 45)", base01: "rgb(63, 63, 63)", base02: "rgb(79, 79, 79)", base03: "rgb(119, 119, 119)", base04: "rgb(140, 140, 140)", base05: "rgb(163, 163, 163)", base06: "rgb(186, 186, 186)", base07: "rgb(232, 232, 232)", base08: "rgb(239, 97, 85)", base09: "rgb(249, 155, 21)", base0a: "rgb(254, 196, 24)", base0b: "rgb(72, 182, 133)", base0c: "rgb(91, 196, 191)", base0d: "rgb(6, 182, 239)", base0e: "rgb(129, 91, 164)", base0f: "rgb(233, 107, 168)" } // Config // ------ module.exports = { theme: { // Animations // ---------- animations: { "fadeIn": { from: { opacity: "0" }, to: { opacity: "1" }, } }, animationDelay: { "50ms": "50ms" }, // Fonts // ----- fontFamily: { body: '"Source Sans Pro", sans-serif', display: '"Montserrat", Futura, "Trebuchet MS", Arial, sans-serif', mono: 'Hack, Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace' }, // Colors // ------ colors: { ...colors, black: tailwindColors.black, current: tailwindColors.current, inherit: tailwindColors.inherit, transparent: tailwindColors.transparent, white: tailwindColors.white, gray: tailwindColors.gray, neutral: tailwindColors.neutral, "accent-btn": "hsl(219, 20.2%, 38.8%)", "accent-dark": "hsl(304.3, 9.6%, 71.4%)", "accent-light": "hsl(228.4, 15.3%, 60.2%)", "background": "rgb(2, 7, 14)", "base01-15": "rgba(63, 63, 63, 0.15)", "base01-55": "rgba(63, 63, 63, 0.55)", "black-05": "rgba(0, 0, 0, 0.05)", "black-35": "rgba(0, 0, 0, 0.35)", "black-50": "rgba(0, 0, 0, 0.5)", "current-color": "currentColor", "white-025": "rgba(255, 255, 255, 0.025)", "white-20": "rgba(255, 255, 255, 0.2)", "white-60": "rgba(255, 255, 255, 0.6)", "white-90": "rgba(255, 255, 255, 0.9)", // Darkest hour "darkest-hour": "hsl(0, 0%, 14%)", "near-darkest-hour": "hsl(0, 0%, 15%)", // Shades of gray gray: { "100": "hsl(0, 0%, 98.8%)", "200": "hsl(0, 0%, 97.3%)", "300": "hsl(0, 0%, 93.3%)", "400": "hsl(0, 0%, 88.2%)", "500": "hsl(0, 0%, 86.3%)", "600": "hsl(0, 0%, 77.6%)" } }, // Extensions // ---------- extend: { boxShadow: { "md-darker": "0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.36)" }, fontSize: { "0": 0, "almost-sm": "0.78125rem", "nearly-sm": "0.8125rem", "xxs": "0.6875rem", }, letterSpacing: { "tad-closer": "-0.015em", "tad-further": "0.015em", }, lineHeight: { "0": 0 }, maxWidth : { "insulation": "107.5vh", "screen": "100vw" }, minWidth: { "3xl": "48rem", "tiny": "13.125rem" }, screens: { "dark": { "raw": "(prefers-color-scheme: dark)" } }, spacing: { "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", "1/7": "14.28571429%", "1/8": "12.5%", "1/10": "10%", "1/12": "8.333333%", "1/16": "6.25%", "1/20": "5%", "2/12": "16.666667%", "3/12": "25%", "4/12": "33.333333%", "5/12": "41.666667%", "6/12": "50%", "7/12": "58.333333%", "8/12": "66.666667%", "9/12": "75%", "10/12": "83.333333%", "11/12": "91.666667%", "-full": "-100%", "full": "100%", } }, // Inset // ----- inset: { "0": 0, "1/2": "50%", "full": "100%", "-px": "-1px" }, // Opacity // ------- opacity: { "0": "0", "025": ".025", "05": ".05", "10": ".1", "20": ".2", "25": ".25", "30": ".3", "40": ".4", "50": ".5", "60": ".6", "70": ".7", "75": ".75", "80": ".8", "90": ".9", "95": ".95", "100": "1" }, }, // PLUGINS plugins: [ require("tailwindcss-animations"), require("tailwindcss-interaction-variants"), // Add variant for `:focus:not(:active)` function({ addVariant, e }) { addVariant("inactive-focus", ({ modifySelectors, separator }) => { modifySelectors(({ className }) => { return `.${e(`fixate${separator}${className}`)}:focus:not(:active)` }) }) } ], // VARIANTS variants: { backgroundColor: [ "focus", "hover", "inactive-focus", "responsive" ], borderColor: [ "first", "focus", "hover", "inactive-focus", "last", "responsive" ], borderWidth: [ "first", "last" ], cursor: [ "first", "last" ], margin: [ "first", "last", "responsive" ], opacity: [ "focus", "hocus", "hover", "responsive" ], padding: [ "first", "last", "responsive" ], textColor: [ "focus", "focus-within", "hover", "inactive-focus", "responsive" ], } }