File size: 2,207 Bytes
73b6f4f
 
8c5a2cf
 
 
 
 
 
 
 
 
 
 
 
 
 
73b6f4f
 
 
 
 
 
 
8c5a2cf
0a37ac6
aac02fe
a251d41
aac02fe
 
 
a251d41
 
 
 
 
 
 
 
 
 
 
 
 
28faefd
 
 
 
 
 
 
aac02fe
693ced9
 
 
 
aac02fe
53e0cfa
 
 
 
 
 
 
 
 
aac02fe
 
 
 
97c4991
 
 
 
 
 
 
 
 
 
 
 
 
 
aac02fe
 
 
 
b598d3d
 
 
 
cf47645
 
 
 
84f775e
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
@import "highlight.js/styles/atom-one-light" layer(base);
@import "tailwindcss";

@plugin '@tailwindcss/container-queries';

@custom-variant dark (&:where(.dark, .dark *));

/*
  The default border color has changed to `currentColor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
	*,
	::after,
	::before,
	::backdrop,
	::file-selector-button {
		border-color: var(--color-gray-200, currentColor);
	}
}

/* Theme config */
@theme {
	--text-2xs: 0.625rem;
	--text-3xs: 0.5rem;

	--animate-fade-in: fade-in 0.15s ease;
	@keyframes fade-in {
		0% {
			opacity: 0;
			/* scale: 0.99; */
		}
		100% {
			opacity: 1;
			scale: 1;
		}
	}
}

/* Custom variants */
@custom-variant nd {
	&:not(:disabled) {
		@slot;
	}
}

/* Utilities */
@utility abs-x-center {
	left: 50%;
	@apply -translate-x-1/2;
}

@utility abs-y-center {
	top: 50%;
	@apply -translate-y-1/2;
}

@utility abs-center {
	@apply abs-x-center abs-y-center;
}

@utility btn {
	@apply flex h-[39px] items-center justify-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2.5 text-sm font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:ring-4 focus:ring-gray-100 focus:outline-hidden dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700;
}

@utility custom-outline {
	@apply outline-hidden;
	@apply border-blue-500 ring ring-blue-500;
}

@utility focus-outline {
	@apply focus-visible:custom-outline;
}

@utility input {
	@apply rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400;
	@apply focus-outline;
}

/* Elements & Classes */
html {
	font-size: 15px;
}

body {
	overflow: hidden;
}

body.dark {
	color-scheme: dark;
}

@layer base {
	:focus-visible {
		outline: 3px solid var(--color-blue-400);
		outline-offset: 2px;

		@variant dark {
			outline-color: var(--color-blue-500);
		}
	}
}