Files
zitadel/apps/login/tailwind.config.js

129 lines
3.0 KiB
JavaScript
Raw Normal View History

2023-04-04 15:23:14 +02:00
const colors = require("tailwindcss/colors");
2023-04-03 13:39:51 +02:00
/** @type {import('tailwindcss').Config} */
module.exports = {
2023-04-04 15:23:14 +02:00
darkMode: "class",
2023-04-03 13:39:51 +02:00
content: [
2023-04-04 15:23:14 +02:00
"./app/**/*.{js,ts,jsx,tsx}",
"./page/**/*.{js,ts,jsx,tsx}",
"./ui/**/*.{js,ts,jsx,tsx}",
2023-04-03 13:39:51 +02:00
],
future: {
hoverOnlyWhenSupported: true,
},
theme: {
extend: {
// https://vercel.com/design/color
fontSize: {
2023-04-04 15:23:14 +02:00
"12px": "12px",
"14px": "14px",
2023-04-03 13:39:51 +02:00
},
colors: {
gray: colors.zinc,
2023-04-04 15:23:14 +02:00
"gray-1000": "rgb(17,17,19)",
"gray-1100": "rgb(10,10,11)",
2023-04-03 13:39:51 +02:00
vercel: {
2023-04-04 15:23:14 +02:00
pink: "#FF0080",
blue: "#0070F3",
cyan: "#50E3C2",
orange: "#F5A623",
violet: "#7928CA",
2023-04-03 13:39:51 +02:00
},
primary: {
dark: {
2023-04-04 15:23:14 +02:00
100: "#afd1f2",
200: "#7fb5ea",
300: "#4192e0",
400: "#2782dc",
500: "#2073c4",
600: "#1c64aa",
700: "#17548f",
800: "#134575",
900: "#0f355b",
2023-04-03 13:39:51 +02:00
},
},
background: {
dark: {
2023-04-04 15:23:14 +02:00
100: "#4a69aa",
200: "#395183",
300: "#243252",
400: "#1a253c",
500: "#111827",
600: "#080b12",
700: "#000000",
800: "#000000",
900: "#000000",
2023-04-03 13:39:51 +02:00
},
},
input: {
light: {
2023-04-04 15:23:14 +02:00
label: "#000000c7",
background: "#00000004",
border: "rgba(26,25,25,.2196078431);",
2023-04-03 13:39:51 +02:00
},
dark: {
2023-04-04 15:23:14 +02:00
label: "#ffffffc7",
background: "#00000020",
border: "rgba(249,247,247,.1450980392)",
2023-04-03 13:39:51 +02:00
},
},
button: {
light: {
2023-04-04 15:23:14 +02:00
border: "#0000001f",
2023-04-03 13:39:51 +02:00
},
dark: {
2023-04-04 15:23:14 +02:00
border: "#ffffff1f",
2023-04-03 13:39:51 +02:00
},
},
},
backgroundImage: ({ theme }) => ({
2023-04-04 15:23:14 +02:00
"vc-border-gradient": `radial-gradient(at left top, ${theme(
"colors.gray.500"
)}, 50px, ${theme("colors.gray.800")} 50%)`,
2023-04-03 13:39:51 +02:00
}),
keyframes: ({ theme }) => ({
rerender: {
2023-04-04 15:23:14 +02:00
"0%": {
["border-color"]: theme("colors.vercel.pink"),
2023-04-03 13:39:51 +02:00
},
2023-04-04 15:23:14 +02:00
"40%": {
["border-color"]: theme("colors.vercel.pink"),
2023-04-03 13:39:51 +02:00
},
},
highlight: {
2023-04-04 15:23:14 +02:00
"0%": {
background: theme("colors.vercel.pink"),
color: theme("colors.white"),
2023-04-03 13:39:51 +02:00
},
2023-04-04 15:23:14 +02:00
"40%": {
background: theme("colors.vercel.pink"),
color: theme("colors.white"),
2023-04-03 13:39:51 +02:00
},
},
shimmer: {
2023-04-04 15:23:14 +02:00
"100%": {
transform: "translateX(100%)",
2023-04-03 13:39:51 +02:00
},
},
translateXReset: {
2023-04-04 15:23:14 +02:00
"100%": {
transform: "translateX(0)",
2023-04-03 13:39:51 +02:00
},
},
fadeToTransparent: {
2023-04-04 15:23:14 +02:00
"0%": {
2023-04-03 13:39:51 +02:00
opacity: 1,
},
2023-04-04 15:23:14 +02:00
"40%": {
2023-04-03 13:39:51 +02:00
opacity: 1,
},
2023-04-04 15:23:14 +02:00
"100%": {
2023-04-03 13:39:51 +02:00
opacity: 0,
},
},
}),
},
},
2023-04-04 15:23:14 +02:00
plugins: [require("@tailwindcss/forms")],
2023-04-03 13:39:51 +02:00
};