|
7 | 7 | * Usage in consuming app: |
8 | 8 | * 1. Import this CSS file: import 'cortex-react-components/styles.css'; |
9 | 9 | * 2. Extend your tailwind.config.js with our preset (see package exports) |
| 10 | + * 3. Load the Manrope font (e.g., via Google Fonts or self-hosted) |
| 11 | + * |
| 12 | + * To load Manrope font, add to your HTML head: |
| 13 | + * <link href="https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap" rel="stylesheet"> |
| 14 | + * |
| 15 | + * Or in Next.js, use next/font: |
| 16 | + * import { Manrope } from 'next/font/google'; |
| 17 | + * const manrope = Manrope({ subsets: ['latin'] }); |
10 | 18 | */ |
11 | 19 |
|
12 | | -/* Font face declarations */ |
13 | | -@font-face { |
14 | | - font-family: 'Manrope'; |
15 | | - font-style: normal; |
16 | | - font-weight: 400; |
17 | | - src: url('./fonts/Manrope-Regular.ttf') format('truetype'); |
18 | | -} |
19 | | - |
20 | | -@font-face { |
21 | | - font-family: 'Manrope'; |
22 | | - font-style: normal; |
23 | | - font-weight: 300; |
24 | | - src: url('./fonts/Manrope-Light.ttf') format('truetype'); |
25 | | -} |
26 | | - |
27 | | -@font-face { |
28 | | - font-family: 'Manrope'; |
29 | | - font-style: normal; |
30 | | - font-weight: 200; |
31 | | - src: url('./fonts/Manrope-ExtraLight.ttf') format('truetype'); |
32 | | -} |
33 | | - |
34 | | -@font-face { |
35 | | - font-family: 'Manrope'; |
36 | | - font-style: normal; |
37 | | - font-weight: 500; |
38 | | - src: url('./fonts/Manrope-Medium.ttf') format('truetype'); |
39 | | -} |
40 | | - |
41 | | -@font-face { |
42 | | - font-family: 'Manrope'; |
43 | | - font-style: normal; |
44 | | - font-weight: 600; |
45 | | - src: url('./fonts/Manrope-SemiBold.ttf') format('truetype'); |
46 | | -} |
47 | | - |
48 | | -@font-face { |
49 | | - font-family: 'Manrope'; |
50 | | - font-style: normal; |
51 | | - font-weight: 700; |
52 | | - src: url('./fonts/Manrope-Bold.ttf') format('truetype'); |
53 | | -} |
54 | | - |
55 | | -@font-face { |
56 | | - font-family: 'Manrope'; |
57 | | - font-style: normal; |
58 | | - font-weight: 800; |
59 | | - src: url('./fonts/Manrope-ExtraBold.ttf') format('truetype'); |
60 | | -} |
61 | | - |
62 | 20 | /* CSS Custom Properties (Design Tokens) */ |
63 | 21 | :root { |
64 | 22 | --background: 20 14.3% 4.1%; |
|
0 commit comments