@firecms/ui 3.0.0-canary.108 → 3.0.0-canary.109

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.
@@ -61,20 +61,20 @@ const gutterBottomClasses = {
61
61
  };
62
62
 
63
63
  const variantToClasses = {
64
- h1: "text-6xl font-headers font-light",
65
- h2: "text-5xl font-headers font-light",
66
- h3: "text-4xl font-headers font-normal",
67
- h4: "text-3xl font-headers font-normal",
68
- h5: "text-2xl font-headers font-normal",
69
- h6: "text-xl font-headers font-medium",
70
- subtitle1: "text-lg font-headers font-medium",
71
- subtitle2: "text-base font-headers font-medium",
72
- body1: "text-base",
73
- body2: "text-sm",
74
- label: "text-sm font-medium text-slate-500",
75
- inherit: "text-inherit",
76
- caption: "text-xs",
77
- button: "text-sm font-medium"
64
+ h1: "typography-h1",
65
+ h2: "typography-h2",
66
+ h3: "typography-h3",
67
+ h4: "typography-h4",
68
+ h5: "typography-h5",
69
+ h6: "typography-h6",
70
+ subtitle1: "typography-subtitle1",
71
+ subtitle2: "typography-subtitle2",
72
+ body1: "typography-body1",
73
+ body2: "typography-body2",
74
+ label: "typography-label",
75
+ inherit: "typography-inherit",
76
+ caption: "typography-caption",
77
+ button: "typography-button"
78
78
  };
79
79
 
80
80
  export function Typography<C extends React.ElementType>(
package/src/index.css ADDED
@@ -0,0 +1,56 @@
1
+
2
+ @layer utilities {
3
+ /* Chrome, Safari and Opera */
4
+ .no-scrollbar::-webkit-scrollbar {
5
+ display: none;
6
+ }
7
+ .no-scrollbar {
8
+ -ms-overflow-style: none; /* IE and Edge */
9
+ scrollbar-width: none; /* Firefox */
10
+ }
11
+
12
+ .typography-h1 {
13
+ @apply text-6xl font-headers font-light;
14
+ }
15
+ .typography-h2 {
16
+ @apply text-5xl font-headers font-light;
17
+ }
18
+ .typography-h3 {
19
+ @apply text-4xl font-headers font-normal;
20
+ }
21
+ .typography-h4 {
22
+ @apply text-3xl font-headers font-normal;
23
+ }
24
+ .typography-h5 {
25
+ @apply text-2xl font-headers font-normal;
26
+ }
27
+ .typography-h6 {
28
+ @apply text-xl font-headers font-medium;
29
+ }
30
+ .typography-body1 {
31
+ /*@apply text-base;*/
32
+ }
33
+ .typography-body2 {
34
+ @apply text-sm;
35
+ }
36
+ .typography-caption {
37
+ @apply text-xs;
38
+ }
39
+ .typography-label {
40
+ @apply text-sm font-medium;
41
+ }
42
+ .typography-inherit {
43
+ @apply text-inherit;
44
+ }
45
+ .typography-button {
46
+ @apply text-sm font-medium;
47
+ }
48
+ }
49
+
50
+ a {
51
+ @apply text-blue-600 dark:text-blue-400 dark:hover:text-blue-600 hover:text-blue-800
52
+ }
53
+
54
+ body {
55
+ @apply w-full min-h-screen bg-gray-50 dark:bg-gray-900 flex flex-col items-center justify-center;
56
+ }