import Link from 'next/link' import styles from './index.module.css' import '@reach/dialog/styles.css' import { useState } from 'react' import { Dialog } from '@reach/dialog' import { VisuallyHidden } from '@reach/visually-hidden' import variables from '../../style-sass-test/variables.module.scss' // Missing: disabling javascript function BuiltInCSSSupport() { return (

Built In CSS Support

Read Docs

CSS Modules

CSS Modules are an optional feature and are only enabled for files with the .module.css extension.

This is made with an imported css module

Import styles from node_modules

This page imports a node module's css file for the dialog below:

Sass Support

✅ Sass variable imported, color: {variables.primaryColor || Error. Something went wrong}

CSS-in-JS

NextJS bundles styled-jsx to provide support for isolated scoped CSS. The aim is to support "shadow CSS" similar to Web Components, which unfortunately do not support server-rendering and are JS-only.

This section should be differently styled compared to the others (i.e. orange background)

) } export default BuiltInCSSSupport function ExampleDialog() { const [showDialog, setShowDialog] = useState(false) const open = () => setShowDialog(true) const close = () => setShowDialog(false) return (

Hello there. I am a dialog

) }