Design system.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

26 řádky
728 B

  1. import { Html, Head, Main, NextScript } from 'next/document'
  2. import theme from '@/styles/theme'
  3. export default function Document() {
  4. return (
  5. <Html lang="en" className="bg-negative text-positive tracking-normal font-semi-expanded">
  6. <Head className="block">
  7. <meta name="viewport" content="initial-scale=1,minimum-scale=1,width=device-width,viewport-fit=cover" />
  8. <style
  9. dangerouslySetInnerHTML={{
  10. __html: `
  11. :root {
  12. ${Object.entries(theme).map(([name, value]) => `--${name}: ${value};`).join('\n')}
  13. }
  14. `,
  15. }}
  16. />
  17. </Head>
  18. <body>
  19. <Main />
  20. <NextScript />
  21. </body>
  22. </Html>
  23. )
  24. }