This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/packages/website/tailwind.config.js

83 lines
2.1 KiB
JavaScript
Raw Permalink Normal View History

2021-03-23 12:07:19 +00:00
const defaultTheme = require("tailwindcss/defaultTheme");
2021-03-28 14:46:32 +00:00
const plugin = require("tailwindcss/plugin");
2021-03-23 12:07:19 +00:00
2021-03-28 14:46:32 +00:00
const colors = {
2021-03-31 11:24:05 +00:00
primary: { light: "#33D17E", DEFAULT: "#00c65e" },
2021-03-29 13:10:03 +00:00
warning: "#ffd567",
2021-03-28 14:46:32 +00:00
error: "#ED5454",
palette: {
100: "#f5f7f7",
200: "#d4dddb",
300: "#9e9e9e",
400: "#555555",
500: "#242424",
600: "#0d0d0d",
},
2021-03-23 12:07:19 +00:00
};
module.exports = {
purge: ["./src/**/*.{js,jsx,ts,tsx}"],
darkMode: false, // or 'media' or 'class'
theme: {
screens: {
sm: "640px",
tablet: "640px",
md: "768px",
lg: "1024px",
2021-03-25 21:44:24 +00:00
desktop: "1024px",
2021-03-23 12:07:19 +00:00
xl: "1280px",
hires: "1408px",
"2xl": "1536px",
},
2021-03-28 14:46:32 +00:00
backgroundColor: (theme) => ({ ...theme("colors"), ...colors }),
borderColor: (theme) => ({ ...theme("colors"), ...colors }),
textColor: (theme) => ({ ...theme("colors"), ...colors }),
placeholderColor: (theme) => ({ ...theme("colors"), ...colors }),
2021-03-23 12:07:19 +00:00
extend: {
fontFamily: {
sans: ["Sora", ...defaultTheme.fontFamily.sans],
content: ["Source\\ Sans\\ Pro", ...defaultTheme.fontFamily.sans],
},
2021-03-25 21:44:24 +00:00
fontSize: {
xxs: ["0.625rem", "0.75rem"],
},
2021-03-23 12:07:19 +00:00
maxWidth: {
2021-03-25 01:27:53 +00:00
column: "320px",
2021-03-29 13:10:03 +00:00
terminal: "640px",
2021-03-23 12:07:19 +00:00
tablet: "640px",
desktop: "1024px",
content: "992px",
layout: "1408px",
},
lineHeight: {
16: "4rem",
},
2021-03-31 11:24:05 +00:00
backgroundImage: {
mobile: "url('/bg-mobile.svg')",
desktop: "url('/bg.svg')",
2021-04-08 14:02:01 +00:00
column: `linear-gradient(to right, ${colors.palette[100]}, ${colors.palette[100]} calc(50% - 288px), transparent calc(50% - 288px))`,
2021-03-31 11:24:05 +00:00
},
2021-03-23 12:07:19 +00:00
},
},
variants: {
extend: {
2021-03-25 21:44:24 +00:00
animation: ["hover"],
2021-03-31 11:24:05 +00:00
rotate: ["hover"],
2021-03-23 12:07:19 +00:00
backgroundColor: ["disabled"],
textColor: ["disabled"],
2021-03-25 01:27:53 +00:00
margin: ["first"],
2021-03-23 12:07:19 +00:00
},
},
2021-03-28 14:46:32 +00:00
plugins: [
2021-03-31 12:07:36 +00:00
require("@tailwindcss/typography"),
2021-03-28 14:46:32 +00:00
plugin(function ({ addBase, theme }) {
addBase({
2021-04-01 10:12:05 +00:00
body: {
color: theme("textColor.palette.600"),
2021-04-08 14:02:01 +00:00
backgroundColor: theme("backgroundColor.palette.500"),
2021-04-01 10:12:05 +00:00
},
2021-03-28 14:46:32 +00:00
});
}),
],
2021-03-23 12:07:19 +00:00
};