diff --git a/FrontendV2/src/App.css b/FrontendV2/src/App.css index f1d8c73..cff4045 100644 --- a/FrontendV2/src/App.css +++ b/FrontendV2/src/App.css @@ -1 +1,73 @@ @import "tailwindcss"; + +:root { + --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", + "SF Pro Display", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, + "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", + "Segoe UI Symbol", sans-serif; +} + +html, +body, +#root { + font-family: var(--font-sans); +} + +/* Display für größere Überschriften */ +@font-face { + font-family: "SF Pro Display"; + src: url("/src/assets/fonts/sf-pro/SFProDisplay-Regular.woff2") + format("woff2"); + font-weight: 400; + font-style: normal; + font-display: swap; +} +@font-face { + font-family: "SF Pro Display"; + src: url("/src/assets/fonts/sf-pro/SFProDisplay-Medium.woff2") format("woff2"); + font-weight: 500; + font-style: normal; + font-display: swap; +} +@font-face { + font-family: "SF Pro Display"; + src: url("/src/assets/fonts/sf-pro/SFProDisplay-Bold.woff2") format("woff2"); + font-weight: 700; + font-style: normal; + font-display: swap; +} + +/* Text für Fließtext */ +@font-face { + font-family: "SF Pro Text"; + src: url("/src/assets/fonts/sf-pro/SFProText-Regular.woff2") format("woff2"); + font-weight: 400; + font-style: normal; + font-display: swap; +} +@font-face { + font-family: "SF Pro Text"; + src: url("/src/assets/fonts/sf-pro/SFProText-Medium.woff2") format("woff2"); + font-weight: 500; + font-style: normal; + font-display: swap; +} +@font-face { + font-family: "SF Pro Text"; + src: url("/src/assets/fonts/sf-pro/SFProText-Bold.woff2") format("woff2"); + font-weight: 700; + font-style: normal; + font-display: swap; +} + +/* Global anwenden mit Fallbacks */ +:root { + --font-sans: "SF Pro Text", "SF Pro Display", -apple-system, + BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; +} + +html, +body, +#root { + font-family: var(--font-sans); +} diff --git a/FrontendV2/src/index.css b/FrontendV2/src/index.css index f1d8c73..336bfd9 100644 --- a/FrontendV2/src/index.css +++ b/FrontendV2/src/index.css @@ -1 +1,70 @@ @import "tailwindcss"; + +:root { + --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", + "SF Pro Display", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, + "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", + "Segoe UI Symbol", sans-serif; +} + +html, +body, +#root { + font-family: var(--font-sans); +} + +@font-face { + font-family: "SF Pro Display"; + src: url("/src/assets/fonts/sf-pro/SFProDisplay-Regular.woff2") + format("woff2"); + font-weight: 400; + font-style: normal; + font-display: swap; +} +@font-face { + font-family: "SF Pro Display"; + src: url("/src/assets/fonts/sf-pro/SFProDisplay-Medium.woff2") format("woff2"); + font-weight: 500; + font-style: normal; + font-display: swap; +} +@font-face { + font-family: "SF Pro Display"; + src: url("/src/assets/fonts/sf-pro/SFProDisplay-Bold.woff2") format("woff2"); + font-weight: 700; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "SF Pro Text"; + src: url("/src/assets/fonts/sf-pro/SFProText-Regular.woff2") format("woff2"); + font-weight: 400; + font-style: normal; + font-display: swap; +} +@font-face { + font-family: "SF Pro Text"; + src: url("/src/assets/fonts/sf-pro/SFProText-Medium.woff2") format("woff2"); + font-weight: 500; + font-style: normal; + font-display: swap; +} +@font-face { + font-family: "SF Pro Text"; + src: url("/src/assets/fonts/sf-pro/SFProText-Bold.woff2") format("woff2"); + font-weight: 700; + font-style: normal; + font-display: swap; +} + +:root { + --font-sans: "SF Pro Text", "SF Pro Display", -apple-system, + BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; +} + +html, +body, +#root { + font-family: var(--font-sans); +}