Configuration

Sass compilation options

sassOptions passes configuration to the Sass integration. Next.js does not maintain types for most Sass-specific properties; consult the selected Sass implementation and test the actual build. The example injects a synthetic variable, not a remote import. Source: https://nextjs.org/docs/app/api-reference/config/next-config-js/sassOptions. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.

Formal Syntax & Structure

nextjs syntaxnextjs
sassOptions

Working Example

Example Snippetnextjs
export default {sassOptions:{additionalData:'$accent: #245c40;'}}
Next.js Reference