[READ-ONLY] Mirror of https://github.com/mrgnw/morganwill.com.
morganwill.com
1.8 kB
64 lines
1import { fontFamily } from "tailwindcss/defaultTheme";
2
3/** @type {import('tailwindcss').Config} */
4const config = {
5 darkMode: ["class"],
6 content: ["./src/**/*.{html,js,svelte,ts}"],
7 safelist: ["dark"],
8 theme: {
9 container: {
10 center: true,
11 padding: "2rem",
12 screens: {
13 "2xl": "1400px"
14 }
15 },
16 extend: {
17 colors: {
18 border: "hsl(var(--border) / <alpha-value>)",
19 input: "hsl(var(--input) / <alpha-value>)",
20 ring: "hsl(var(--ring) / <alpha-value>)",
21 background: "hsl(var(--background) / <alpha-value>)",
22 foreground: "hsl(var(--foreground) / <alpha-value>)",
23 primary: {
24 DEFAULT: "hsl(var(--primary) / <alpha-value>)",
25 foreground: "hsl(var(--primary-foreground) / <alpha-value>)"
26 },
27 secondary: {
28 DEFAULT: "hsl(var(--secondary) / <alpha-value>)",
29 foreground: "hsl(var(--secondary-foreground) / <alpha-value>)"
30 },
31 destructive: {
32 DEFAULT: "hsl(var(--destructive) / <alpha-value>)",
33 foreground: "hsl(var(--destructive-foreground) / <alpha-value>)"
34 },
35 muted: {
36 DEFAULT: "hsl(var(--muted) / <alpha-value>)",
37 foreground: "hsl(var(--muted-foreground) / <alpha-value>)"
38 },
39 accent: {
40 DEFAULT: "hsl(var(--accent) / <alpha-value>)",
41 foreground: "hsl(var(--accent-foreground) / <alpha-value>)"
42 },
43 popover: {
44 DEFAULT: "hsl(var(--popover) / <alpha-value>)",
45 foreground: "hsl(var(--popover-foreground) / <alpha-value>)"
46 },
47 card: {
48 DEFAULT: "hsl(var(--card) / <alpha-value>)",
49 foreground: "hsl(var(--card-foreground) / <alpha-value>)"
50 }
51 },
52 borderRadius: {
53 lg: "var(--radius)",
54 md: "calc(var(--radius) - 2px)",
55 sm: "calc(var(--radius) - 4px)"
56 },
57 fontFamily: {
58 sans: [...fontFamily.sans]
59 }
60 }
61 },
62};
63
64export default config;