|
2 | 2 |
|
3 | 3 | /* SPDX-License-Identifier: Apache-2.0 */
|
4 | 4 |
|
5 |
| -@tailwind base; |
6 |
| -@tailwind components; |
7 |
| -@tailwind utilities; |
8 |
| - |
9 |
| -.button { |
10 |
| - border: none; |
11 |
| - border-radius: 0.375rem; |
12 |
| - color: white; |
13 |
| - cursor: pointer; |
14 |
| - transition: background-color 0.2s; |
15 |
| -} |
| 5 | +@import "tailwindcss"; |
16 | 6 |
|
17 |
| -.custom-button { |
18 |
| - font-size: 0.875rem; |
19 |
| - padding: 0.25rem 0.5rem; |
20 |
| - display: inline-flex; |
21 |
| - align-items: center; |
22 |
| - justify-content: center; |
23 |
| - max-width: max-content; |
24 |
| -} |
| 7 | +@source './**/*.{js,ts,jsx,tsx,mdx}'; |
| 8 | + |
| 9 | +@theme { |
| 10 | + --color-primary: var(--color-primary); |
| 11 | + --color-secondary: var(--color-secondary); |
| 12 | + --color-info: var(--color-info); |
| 13 | + --color-warning: var(--color-warning); |
| 14 | + --color-hover-color: var(--color-hover); |
| 15 | + --color-disclaimer: var(--color-disclaimer); |
| 16 | + --color-surface: var(--color-surface); |
| 17 | + |
| 18 | + --background-image-gradient-radial: radial-gradient(var(--tw-gradient-stops)); |
| 19 | + --background-image-gradient-conic: conic-gradient( |
| 20 | + from 180deg at 50% 50%, |
| 21 | + var(--tw-gradient-stops) |
| 22 | + ); |
25 | 23 |
|
26 |
| -.custom-button .button-icon { |
27 |
| - margin-right: 0.25rem; |
| 24 | + --font-subheading: var(--font-subheading), sans-serif; |
| 25 | + --font-title: var(--font-title), sans-serif; |
| 26 | + --font-body: var(--font-body), sans-serif; |
28 | 27 | }
|
29 | 28 |
|
30 |
| -body { |
31 |
| - font-family: var(--font-body); |
| 29 | +/* |
| 30 | + The default border color has changed to `currentColor` in Tailwind CSS v4, |
| 31 | + so we've added these compatibility styles to make sure everything still |
| 32 | + looks the same as it did with Tailwind CSS v3. |
| 33 | +
|
| 34 | + If we ever want to remove these styles, we need to add an explicit border |
| 35 | + color utility to any element that depends on these defaults. |
| 36 | +*/ |
| 37 | +@layer base { |
| 38 | + *, |
| 39 | + ::after, |
| 40 | + ::before, |
| 41 | + ::backdrop, |
| 42 | + ::file-selector-button { |
| 43 | + border-color: var(--color-gray-200, currentColor); |
| 44 | + } |
32 | 45 | }
|
33 | 46 |
|
34 |
| -h1, |
35 |
| -h2, |
36 |
| -h3, |
37 |
| -h4, |
38 |
| -h5, |
39 |
| -h6 { |
40 |
| - @apply font-title; |
| 47 | +@utility text-balance { |
| 48 | + text-wrap: balance; |
41 | 49 | }
|
42 | 50 |
|
43 | 51 | @layer utilities {
|
44 |
| - .text-balance { |
45 |
| - text-wrap: balance; |
| 52 | + .button { |
| 53 | + border: none; |
| 54 | + border-radius: 0.375rem; |
| 55 | + color: white; |
| 56 | + cursor: pointer; |
| 57 | + transition: background-color 0.2s; |
| 58 | + } |
| 59 | + |
| 60 | + .custom-button { |
| 61 | + font-size: 0.875rem; |
| 62 | + padding: 0.25rem 0.5rem; |
| 63 | + display: inline-flex; |
| 64 | + align-items: center; |
| 65 | + justify-content: center; |
| 66 | + max-width: max-content; |
| 67 | + } |
| 68 | + |
| 69 | + .custom-button .button-icon { |
| 70 | + margin-right: 0.25rem; |
| 71 | + } |
| 72 | + |
| 73 | + body { |
| 74 | + font-family: var(--font-body); |
| 75 | + } |
| 76 | + |
| 77 | + h1, |
| 78 | + h2, |
| 79 | + h3, |
| 80 | + h4, |
| 81 | + h5, |
| 82 | + h6 { |
| 83 | + @apply font-title; |
46 | 84 | }
|
47 | 85 | }
|
48 | 86 |
|
|
0 commit comments