mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-25 21:01:54 +08:00
Introducing the new AutocompleteForgeInput that uses the Combobox component from Ark UI. Also consolidates the theming config in ui package
44 lines
1021 B
TypeScript
44 lines
1021 B
TypeScript
import type { Config } from "tailwindcss";
|
|
import animate from "tailwindcss-animate";
|
|
|
|
export default {
|
|
darkMode: "selector",
|
|
content: ["src/**/*.{ts,tsx}"],
|
|
future: {
|
|
hoverOnlyWhenSupported: true,
|
|
},
|
|
theme: {
|
|
colors: {
|
|
gray: getColorScale("gray"),
|
|
blue: getColorScale("blue"),
|
|
orange: getColorScale("orange"),
|
|
purple: getColorScale("purple"),
|
|
red: getColorScale("red"),
|
|
white: "rgb(255, 255, 255)",
|
|
transparent: "transparent",
|
|
inherit: "inherit",
|
|
},
|
|
extend: {
|
|
fontSize: {
|
|
"4xl": ["2.5rem", "2.75rem"],
|
|
},
|
|
fontFamily: {
|
|
heading: ["Uxum Grotesque", "sans-serif"],
|
|
body: ["Untitled Sans", "sans-serif"],
|
|
},
|
|
fontWeight: {
|
|
inherit: "inherit",
|
|
},
|
|
},
|
|
},
|
|
plugins: [animate],
|
|
} satisfies Config;
|
|
|
|
function getColorScale(name: string) {
|
|
const scale: Record<string, string> = {};
|
|
for (let i = 1; i <= 12; i++) {
|
|
scale[i] = `rgb(var(--${name}-${i}))`;
|
|
}
|
|
return scale;
|
|
}
|