@scalar/components 0.24.0 → 0.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Component Library Tailwind Configuration
3
+
4
+ * This file can be imported into other projects using Tailwind to
5
+ * generate the appropriate Tailwind utilities for the component library.
6
+ */
7
+
8
+ /* Component Library Specific Tailwind Theme */
9
+ @import "./theme.css";
10
+
11
+ /* Search for Tailwind classes in the Component Library */
12
+ @source "../";
13
+
14
+ /* Component Library Specific Tailwind Utilities */
15
+ @import "./utilities.css";
16
+
17
+ /* Plugins */
18
+ @plugin "@headlessui/tailwindcss";
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Components Specific Tailwind Theme
3
+ */
4
+
5
+ @theme inline {
6
+ /* Header Colors */
7
+ --color-b-header-1: var(--scalar-header-background-1, var(--scalar-background-1));
8
+ --color-b-header-2: var(--scalar-header-background-2, var(--scalar-background-2));
9
+ --color-c-header-1: var(--scalar-header-color-1, var(--scalar-color-1));
10
+ --color-c-header-2: var(--scalar-header-color-2, var(--scalar-color-2));
11
+
12
+ --color-border-header: var(--scalar-header-border-color, var(--scalar-border-color));
13
+
14
+ --color-b-header-cta: var(--scalar-header-call-to-action-color, var(--scalar-button-1));
15
+ --color-h-header-cta: color-mix(
16
+ in srgb,
17
+ var(--scalar-header-call-to-action-color, var(--scalar-button-1)),
18
+ var(--scalar-header-background-1, var(--scalar-background-1)) 15%
19
+ );
20
+ --color-c-header-cta: var(--scalar-button-1-color);
21
+
22
+ /* Easing Functions */
23
+ --ease-spring: linear(
24
+ 0,
25
+ 0.008 1.1%,
26
+ 0.034 2.3%,
27
+ 0.134 4.9%,
28
+ 0.264 7.3%,
29
+ 0.683 14.3%,
30
+ 0.797 16.5%,
31
+ 0.89 18.6%,
32
+ 0.967 20.7%,
33
+ 1.027 22.8%,
34
+ 1.073 25%,
35
+ 1.104 27.3%,
36
+ 1.123 30.6%,
37
+ 1.119 34.3%,
38
+ 1.018 49.5%,
39
+ 0.988 58.6%,
40
+ 0.985 65.2%,
41
+ 1 84.5%,
42
+ 1
43
+ );
44
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Components Specific Tailwind Utilities
3
+ */
4
+
5
+ @utility max-w-radix-popper {
6
+ max-width: calc(var(--radix-popper-available-width) - 8px);
7
+ }
8
+ @utility max-h-radix-popper {
9
+ max-height: calc(var(--radix-popper-available-height) - 8px);
10
+ }