mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 10:16:12 +02:00
✨ Unify the themes under 'default' theme.
Because right now we don't have a real dark and light themes (right now workspace is dark and dashbaord is light).
This commit is contained in:
parent
ea3e17f7fe
commit
5aa97513de
6 changed files with 13 additions and 176 deletions
|
@ -14,8 +14,8 @@ const svgSprite = require("gulp-svg-sprite");
|
|||
const mkdirp = require("mkdirp");
|
||||
const rimraf = require("rimraf");
|
||||
const sass = require("sass");
|
||||
const autoprefixer = require('autoprefixer')
|
||||
const postcss = require('postcss')
|
||||
const autoprefixer = require("autoprefixer")
|
||||
const postcss = require("postcss")
|
||||
|
||||
const paths = {};
|
||||
paths.resources = "./resources/";
|
||||
|
@ -28,7 +28,7 @@ paths.scss = "./resources/styles/**/*.scss";
|
|||
***********************************************/
|
||||
|
||||
function isProduction() {
|
||||
return (process.env.NODE_ENV === 'production');
|
||||
return (process.env.NODE_ENV === "production");
|
||||
}
|
||||
|
||||
function scssPipeline(options) {
|
||||
|
@ -123,8 +123,9 @@ function templatePipeline(options) {
|
|||
const input = options.input;
|
||||
const output = options.output;
|
||||
const ts = Math.floor(new Date());
|
||||
const th = process.env.UXBOX_THEME || 'light';
|
||||
const themes = ['light', 'dark'];
|
||||
|
||||
const th = process.env.UXBOX_THEME || "default";
|
||||
const themes = ["default"];
|
||||
|
||||
const locales = readLocales();
|
||||
const config = readConfig();
|
||||
|
@ -148,21 +149,16 @@ function templatePipeline(options) {
|
|||
* Generic
|
||||
***********************************************/
|
||||
|
||||
gulp.task("scss:main-light", scssPipeline({
|
||||
input: paths.resources + "styles/main-light.scss",
|
||||
output: paths.output + "css/main-light.css"
|
||||
gulp.task("scss:main-default", scssPipeline({
|
||||
input: paths.resources + "styles/main-default.scss",
|
||||
output: paths.output + "css/main-default.css"
|
||||
}));
|
||||
|
||||
gulp.task("scss:main-dark", scssPipeline({
|
||||
input: paths.resources + "styles/main-dark.scss",
|
||||
output: paths.output + "css/main-dark.css"
|
||||
}));
|
||||
|
||||
gulp.task("scss", gulp.parallel("scss:main-light", "scss:main-dark"));
|
||||
gulp.task("scss", gulp.parallel("scss:main-default"));
|
||||
|
||||
gulp.task("svg:sprite", function() {
|
||||
return gulp.src(paths.resources + "images/icons/*.svg")
|
||||
.pipe(rename({prefix: 'icon-'}))
|
||||
.pipe(rename({prefix: "icon-"}))
|
||||
.pipe(svgSprite({mode:{symbol: {inline: false}}}))
|
||||
.pipe(gulp.dest(paths.output + "images/svg-sprite/"));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue