Uikit: [SASS] $inverse-global-* variables are undefined

Created on 27 May 2017  路  3Comments  路  Source: uikit/uikit

Hello,

It seems that $inverse-global-* variables are missing on the SASS version.

Here the gulpfile.js I using:

var gulp = require('gulp');
var rename = require('gulp-rename');
var sass = require('gulp-sass');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');

gulp.task('stylesheet', function () {
    return gulp.src('__sources__/uikit/src/scss/uikit.scss')
        .pipe(sass({
            outputStyle: 'compressed'
        }))
        .pipe(rename('application.min.css'))
        .pipe(gulp.dest('assets/css', {
            overwrite: true
        }))
});
[11:18:51] Using gulpfile ~\Documents\Programmation\zero-x-baadf00d\uikit-3\gulpfile.js
[11:18:51] Starting 'stylesheet'...

events.js:160
      throw er; // Unhandled 'error' event
      ^
Error: __sources__\uikit\src\scss\components\base.scss
Error: Undefined variable: "$inverse-global-color".
        on line 616 of __sources__/uikit/src/scss/components/base.scss
>> se-base-color:                            $inverse-global-color !default;
   ------------------------------------------^

    at options.error (C:\Users\thiba\Documents\Programmation\zero-x-baadf00d\uikit-3-demo\node_modules\node-sass\lib\index.js:291:26)

Most helpful comment

It won't be enough to compile uikit.scss directly. You need to create an additional scss file with several imports. Then, compile that file instead. Please refer to the documentation, it explains the required steps https://getuikit.com/docs/sass

All 3 comments

It won't be enough to compile uikit.scss directly. You need to create an additional scss file with several imports. Then, compile that file instead. Please refer to the documentation, it explains the required steps https://getuikit.com/docs/sass

thanks. it now working.

What is the logic around using $inverse-global-* in one and $global-inverse-* in the other? If you don't want the theme-variant it throws a build error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

s1973 picture s1973  路  3Comments

eric-22 picture eric-22  路  3Comments

drmzio picture drmzio  路  3Comments

zzseba78 picture zzseba78  路  3Comments

collegeimprovements picture collegeimprovements  路  3Comments