2022-03-08 11:50:34 +01:00
|
|
|
/* eslint-disable */
|
|
|
|
const colors = require("tailwindcss/colors");
|
2022-12-15 15:42:15 +01:00
|
|
|
const plugin = require("tailwindcss/plugin");
|
2022-03-08 11:50:34 +01:00
|
|
|
|
2022-08-08 18:21:46 +02:00
|
|
|
function rgba(color) {
|
|
|
|
return "rgb(var(" + color + ") / <alpha-value>)";
|
|
|
|
}
|
|
|
|
|
2022-03-08 11:50:34 +01:00
|
|
|
module.exports = {
|
|
|
|
prefix: "tw-",
|
2024-03-06 18:32:50 +01:00
|
|
|
content: [
|
|
|
|
"./src/**/*.{html,ts}",
|
|
|
|
"../../libs/components/src/**/*.{html,ts}",
|
|
|
|
"../../libs/auth/src/**/*.{html,ts}",
|
|
|
|
],
|
2022-03-08 11:50:34 +01:00
|
|
|
safelist: [],
|
|
|
|
corePlugins: { preflight: false },
|
|
|
|
theme: {
|
|
|
|
colors: {
|
2022-09-15 07:38:29 +02:00
|
|
|
transparent: {
|
|
|
|
DEFAULT: colors.transparent,
|
|
|
|
hover: "var(--color-transparent-hover)",
|
|
|
|
},
|
2022-03-08 11:50:34 +01:00
|
|
|
current: colors.current,
|
2022-08-05 17:45:36 +02:00
|
|
|
black: colors.black,
|
2024-11-15 15:21:17 +01:00
|
|
|
shadow: rgba("--color-shadow"),
|
2022-03-08 11:50:34 +01:00
|
|
|
primary: {
|
2024-04-26 15:35:32 +02:00
|
|
|
100: rgba("--color-primary-100"),
|
2022-08-08 18:21:46 +02:00
|
|
|
300: rgba("--color-primary-300"),
|
2024-04-26 15:35:32 +02:00
|
|
|
500: rgba("--color-primary-500"),
|
2024-04-05 16:58:32 +02:00
|
|
|
600: rgba("--color-primary-600"),
|
2022-08-08 18:21:46 +02:00
|
|
|
700: rgba("--color-primary-700"),
|
2022-03-08 11:50:34 +01:00
|
|
|
},
|
|
|
|
secondary: {
|
2022-08-08 18:21:46 +02:00
|
|
|
100: rgba("--color-secondary-100"),
|
|
|
|
300: rgba("--color-secondary-300"),
|
2024-11-15 15:21:17 +01:00
|
|
|
500: rgba("--color-secondary-500"),
|
2024-04-05 16:58:32 +02:00
|
|
|
600: rgba("--color-secondary-600"),
|
2022-08-08 18:21:46 +02:00
|
|
|
700: rgba("--color-secondary-700"),
|
2022-03-08 11:50:34 +01:00
|
|
|
},
|
|
|
|
success: {
|
2024-11-15 15:21:17 +01:00
|
|
|
100: rgba("--color-success-100"),
|
2024-04-05 16:58:32 +02:00
|
|
|
600: rgba("--color-success-600"),
|
2022-08-08 18:21:46 +02:00
|
|
|
700: rgba("--color-success-700"),
|
2022-03-08 11:50:34 +01:00
|
|
|
},
|
|
|
|
danger: {
|
2024-11-15 15:21:17 +01:00
|
|
|
100: rgba("--color-danger-100"),
|
2024-04-05 16:58:32 +02:00
|
|
|
600: rgba("--color-danger-600"),
|
2022-08-08 18:21:46 +02:00
|
|
|
700: rgba("--color-danger-700"),
|
2022-03-08 11:50:34 +01:00
|
|
|
},
|
|
|
|
warning: {
|
2024-11-15 15:21:17 +01:00
|
|
|
100: rgba("--color-warning-100"),
|
2024-04-05 16:58:32 +02:00
|
|
|
600: rgba("--color-warning-600"),
|
2022-08-08 18:21:46 +02:00
|
|
|
700: rgba("--color-warning-700"),
|
2022-03-08 11:50:34 +01:00
|
|
|
},
|
|
|
|
info: {
|
2024-11-15 15:21:17 +01:00
|
|
|
100: rgba("--color-info-100"),
|
2024-04-05 16:58:32 +02:00
|
|
|
600: rgba("--color-info-600"),
|
2022-08-08 18:21:46 +02:00
|
|
|
700: rgba("--color-info-700"),
|
2022-03-08 11:50:34 +01:00
|
|
|
},
|
2024-11-15 15:21:17 +01:00
|
|
|
notification: {
|
|
|
|
100: rgba("--color-notification-100"),
|
|
|
|
600: rgba("--color-notification-600"),
|
|
|
|
},
|
2024-09-11 20:54:07 +02:00
|
|
|
art: {
|
|
|
|
primary: rgba("--color-art-primary"),
|
|
|
|
accent: rgba("--color-art-accent"),
|
|
|
|
},
|
2022-03-15 13:50:42 +01:00
|
|
|
text: {
|
2022-08-08 18:21:46 +02:00
|
|
|
main: rgba("--color-text-main"),
|
|
|
|
muted: rgba("--color-text-muted"),
|
|
|
|
contrast: rgba("--color-text-contrast"),
|
|
|
|
alt2: rgba("--color-text-alt2"),
|
2022-10-07 18:24:49 +02:00
|
|
|
code: rgba("--color-text-code"),
|
2024-05-21 23:05:02 +02:00
|
|
|
headers: rgba("--color-text-headers"),
|
2022-03-15 13:50:42 +01:00
|
|
|
},
|
2022-03-11 21:00:24 +01:00
|
|
|
background: {
|
2022-08-08 18:21:46 +02:00
|
|
|
DEFAULT: rgba("--color-background"),
|
|
|
|
alt: rgba("--color-background-alt"),
|
|
|
|
alt2: rgba("--color-background-alt2"),
|
2022-12-09 11:21:07 +01:00
|
|
|
alt3: rgba("--color-background-alt3"),
|
|
|
|
alt4: rgba("--color-background-alt4"),
|
2022-03-11 21:00:24 +01:00
|
|
|
},
|
2024-08-31 21:26:11 +02:00
|
|
|
"marketing-logo": rgba("--color-marketing-logo"),
|
2022-03-08 11:50:34 +01:00
|
|
|
},
|
|
|
|
textColor: {
|
2022-08-08 18:21:46 +02:00
|
|
|
main: rgba("--color-text-main"),
|
|
|
|
muted: rgba("--color-text-muted"),
|
|
|
|
contrast: rgba("--color-text-contrast"),
|
2024-04-26 15:35:32 +02:00
|
|
|
headers: rgba("--color-text-headers"),
|
2022-08-08 18:21:46 +02:00
|
|
|
alt2: rgba("--color-text-alt2"),
|
2022-10-07 18:24:49 +02:00
|
|
|
code: rgba("--color-text-code"),
|
2024-11-15 15:21:17 +01:00
|
|
|
black: colors.black,
|
|
|
|
success: {
|
|
|
|
DEFAULT: rgba("--color-success-600"),
|
|
|
|
600: rgba("--color-success-600"),
|
|
|
|
700: rgba("--color-success-700"),
|
|
|
|
},
|
|
|
|
danger: {
|
|
|
|
DEFAULT: rgba("--color-danger-600"),
|
|
|
|
600: rgba("--color-danger-600"),
|
|
|
|
700: rgba("--color-danger-700"),
|
|
|
|
},
|
|
|
|
warning: {
|
|
|
|
DEFAULT: rgba("--color-warning-600"),
|
|
|
|
600: rgba("--color-warning-600"),
|
|
|
|
700: rgba("--color-warning-700"),
|
|
|
|
},
|
|
|
|
info: {
|
|
|
|
DEFAULT: rgba("--color-info-600"),
|
|
|
|
600: rgba("--color-info-600"),
|
|
|
|
700: rgba("--color-info-700"),
|
|
|
|
},
|
2022-03-11 21:00:24 +01:00
|
|
|
primary: {
|
2022-08-08 18:21:46 +02:00
|
|
|
300: rgba("--color-primary-300"),
|
2024-04-05 16:58:32 +02:00
|
|
|
600: rgba("--color-primary-600"),
|
2022-08-08 18:21:46 +02:00
|
|
|
700: rgba("--color-primary-700"),
|
2022-03-11 21:00:24 +01:00
|
|
|
},
|
2024-11-15 15:21:17 +01:00
|
|
|
secondary: {
|
|
|
|
300: rgba("--color-secondary-300"),
|
|
|
|
700: rgba("--color-secondary-700"),
|
|
|
|
},
|
|
|
|
notification: {
|
|
|
|
600: rgba("--color-notification-600"),
|
|
|
|
},
|
2022-03-08 11:50:34 +01:00
|
|
|
},
|
|
|
|
ringOffsetColor: ({ theme }) => ({
|
|
|
|
DEFAULT: theme("colors.background"),
|
|
|
|
...theme("colors"),
|
|
|
|
}),
|
2022-08-05 17:45:36 +02:00
|
|
|
extend: {
|
|
|
|
width: {
|
|
|
|
"50vw": "50vw",
|
|
|
|
"75vw": "75vw",
|
|
|
|
},
|
2022-12-09 11:21:07 +01:00
|
|
|
minWidth: {
|
|
|
|
52: "13rem",
|
|
|
|
},
|
2022-11-02 17:57:25 +01:00
|
|
|
maxWidth: ({ theme }) => ({
|
|
|
|
...theme("width"),
|
2022-09-12 16:32:26 +02:00
|
|
|
"90vw": "90vw",
|
2022-11-02 17:57:25 +01:00
|
|
|
}),
|
2022-08-05 17:45:36 +02:00
|
|
|
},
|
2022-03-08 11:50:34 +01:00
|
|
|
},
|
2022-12-15 15:42:15 +01:00
|
|
|
plugins: [
|
|
|
|
plugin(function ({ matchUtilities, theme, addUtilities, addComponents, e, config }) {
|
|
|
|
matchUtilities(
|
|
|
|
{
|
|
|
|
"mask-image": (value) => ({
|
|
|
|
"-webkit-mask-image": value,
|
|
|
|
"mask-image": value,
|
|
|
|
}),
|
|
|
|
"mask-position": (value) => ({
|
|
|
|
"-webkit-mask-position": value,
|
|
|
|
"mask-position": value,
|
|
|
|
}),
|
|
|
|
"mask-repeat": (value) => ({
|
|
|
|
"-webkit-mask-repeat": value,
|
|
|
|
"mask-repeat": value,
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
{},
|
|
|
|
);
|
|
|
|
}),
|
2024-11-15 15:21:17 +01:00
|
|
|
plugin(function ({ addVariant }) {
|
|
|
|
for (const state of [
|
|
|
|
"active",
|
|
|
|
"hover",
|
|
|
|
"focus",
|
|
|
|
"focus-within",
|
|
|
|
"focus-visible",
|
|
|
|
"target",
|
|
|
|
"visited",
|
|
|
|
]) {
|
|
|
|
addVariant(state, [`&:${state}`, `&.test-${state}`]);
|
|
|
|
}
|
|
|
|
}),
|
2024-11-18 22:35:49 +01:00
|
|
|
/** Plugin for compact mode */
|
|
|
|
plugin(function ({ addVariant }) {
|
|
|
|
addVariant("bit-compact", ".bit-compact &");
|
|
|
|
}),
|
2022-12-15 15:42:15 +01:00
|
|
|
],
|
2022-03-08 11:50:34 +01:00
|
|
|
};
|