uswds / uswds-compile

Simple Gulp 4 functions for copying USWDS static assets and transforming USWDS Sass into browser-readable CSS.
Other
21 stars 12 forks source link

USWDS-Compile - Bug: validate-typeface-token.scss throws a compile error #87

Closed mollydev closed 6 months ago

mollydev commented 6 months ago

Describe the bug

When I try to run npx gulp compile, it throws the following error

image

Steps to reproduce the bug

  1. Run npx gulp compile
  2. See error

Expected Behavior

For the SASS to compile successfully

Related code

Gulpfile.js

/* gulpfile.js */

// eslint-disable-next-line import/no-unresolved
const uswds = require('@uswds/compile');

/**
 * USWDS version
 */

uswds.settings.version = 3;

/**
 * Path settings
 * Set as many as you need
 */

uswds.paths.dist.css = './css';
uswds.paths.dist.theme = './sass';

/**
 * Exports
 * Add as many as you need
 */

exports.init = uswds.init;
exports.compile = uswds.compile;

_uswds-theme.scss

@use "uswds-core" with (
    $theme-font-type-icon: true
);

_uswds-theme-custom-styles.scss

@use "uswds-core" as *;

.citations li:not(:last-child)::after {
   content: ";";
}

Screenshots

No response

System setup

Additional context

No response

Code of Conduct

mollydev commented 6 months ago

I fixed this for now by removing this from _uswds-theme.scss

@use "uswds-core" with (
    $theme-font-type-icon: true
);