Socket
Socket
Sign inDemoInstall

@vanilla-extract/css

Package Overview
Dependencies
12
Maintainers
4
Versions
115
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0-filescope-urls-202281281439 to 0.0.0-filescope-urls-202282754532

dist/declarations/src/ahocorasick.d.ts

13

adapter/package.json

@@ -8,3 +8,14 @@ {

},
"sideEffects": false
"sideEffects": false,
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"module": "./dist/vanilla-extract-css-adapter.browser.esm.js",
"default": "./dist/vanilla-extract-css-adapter.browser.cjs.js"
},
"module": "./dist/vanilla-extract-css-adapter.esm.js",
"default": "./dist/vanilla-extract-css-adapter.cjs.js"
}
}
}

@@ -7,3 +7,14 @@ {

"./dist/vanilla-extract-css-disableRuntimeStyles.esm.js": "./dist/vanilla-extract-css-disableRuntimeStyles.browser.esm.js"
},
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"module": "./dist/vanilla-extract-css-disableRuntimeStyles.browser.esm.js",
"default": "./dist/vanilla-extract-css-disableRuntimeStyles.browser.cjs.js"
},
"module": "./dist/vanilla-extract-css-disableRuntimeStyles.esm.js",
"default": "./dist/vanilla-extract-css-disableRuntimeStyles.cjs.js"
}
}
}

@@ -0,1 +1,2 @@

import './ahocorasick.d';
import type { CSS, Composition } from './types';

@@ -2,0 +3,0 @@ interface TransformCSSParams {

73

dist/vanilla-extract-css.browser.cjs.js

@@ -6,3 +6,3 @@ 'use strict';

var injectStyles_dist_vanillaExtractCssInjectStyles = require('../injectStyles/dist/vanilla-extract-css-injectStyles.browser.cjs.js');
var transformCss_dist_vanillaExtractCssTransformCss = require('./transformCss-1d69d03d.browser.cjs.js');
var transformCss_dist_vanillaExtractCssTransformCss = require('./transformCss-931f0e0d.browser.cjs.js');
var adapter_dist_vanillaExtractCssAdapter = require('../adapter/dist/vanilla-extract-css-adapter.browser.cjs.js');

@@ -18,3 +18,3 @@ var hash = require('@emotion/hash');

var deepmerge = require('deepmerge');
require('escape-string-regexp');
require('ahocorasick');
require('css-what');

@@ -65,7 +65,6 @@ require('media-query-parser');

function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);

@@ -86,2 +85,5 @@ }

});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);

@@ -92,28 +94,34 @@ }

_wrapRegExp = function (re, groups) {
return new BabelRegExp(re, undefined, groups);
return new BabelRegExp(re, void 0, groups);
};
var _super = RegExp.prototype;
var _super = RegExp.prototype,
_groups = new WeakMap();
var _groups = new WeakMap();
function BabelRegExp(re, flags, groups) {
var _this = new RegExp(re, flags);
_groups.set(_this, groups || _groups.get(re));
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
}
return _setPrototypeOf(_this, BabelRegExp.prototype);
function buildGroups(result, re) {
var g = _groups.get(re);
return Object.keys(g).reduce(function (groups, name) {
var i = g[name];
if ("number" == typeof i) groups[name] = result[i];else {
for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
groups[name] = result[i[k]];
}
return groups;
}, Object.create(null));
}
_inherits(BabelRegExp, RegExp);
BabelRegExp.prototype.exec = function (str) {
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
var result = _super.exec.call(this, str);
if (result) result.groups = buildGroups(result, this);
return result;
};
BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
if (typeof substitution === "string") {
return result && (result.groups = buildGroups(result, this)), result;
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
if ("string" == typeof substitution) {
var groups = _groups.get(this);

@@ -124,3 +132,5 @@

}));
} else if (typeof substitution === "function") {
}
if ("function" == typeof substitution) {
var _this = this;

@@ -130,25 +140,8 @@

var args = arguments;
if (typeof args[args.length - 1] !== "object") {
args = [].slice.call(args);
args.push(buildGroups(args, _this));
}
return substitution.apply(this, args);
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
});
} else {
return _super[Symbol.replace].call(this, str, substitution);
}
};
function buildGroups(result, re) {
var g = _groups.get(re);
return Object.keys(g).reduce(function (groups, name) {
groups[name] = result[g[name]];
return groups;
}, Object.create(null));
}
return _wrapRegExp.apply(this, arguments);
return _super[Symbol.replace].call(this, str, substitution);
}, _wrapRegExp.apply(this, arguments);
}

@@ -155,0 +148,0 @@

import { injectStyles } from '../injectStyles/dist/vanilla-extract-css-injectStyles.browser.esm.js';
import { t as transformCss, _ as _objectSpread2, d as dudupeAndJoinClassList } from './transformCss-2d2039ef.browser.esm.js';
import { t as transformCss, _ as _objectSpread2, d as dudupeAndJoinClassList } from './transformCss-a8d6e581.browser.esm.js';
import { setAdapterIfNotSet, getIdentOption, appendCss, registerClassName, registerComposition, markCompositionUsed } from '../adapter/dist/vanilla-extract-css-adapter.browser.esm.js';

@@ -13,3 +13,3 @@ import hash from '@emotion/hash';

import deepmerge from 'deepmerge';
import 'escape-string-regexp';
import 'ahocorasick';
import 'css-what';

@@ -52,7 +52,6 @@ import 'media-query-parser';

function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);

@@ -73,2 +72,5 @@ }

});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);

@@ -79,28 +81,34 @@ }

_wrapRegExp = function (re, groups) {
return new BabelRegExp(re, undefined, groups);
return new BabelRegExp(re, void 0, groups);
};
var _super = RegExp.prototype;
var _super = RegExp.prototype,
_groups = new WeakMap();
var _groups = new WeakMap();
function BabelRegExp(re, flags, groups) {
var _this = new RegExp(re, flags);
_groups.set(_this, groups || _groups.get(re));
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
}
return _setPrototypeOf(_this, BabelRegExp.prototype);
function buildGroups(result, re) {
var g = _groups.get(re);
return Object.keys(g).reduce(function (groups, name) {
var i = g[name];
if ("number" == typeof i) groups[name] = result[i];else {
for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
groups[name] = result[i[k]];
}
return groups;
}, Object.create(null));
}
_inherits(BabelRegExp, RegExp);
BabelRegExp.prototype.exec = function (str) {
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
var result = _super.exec.call(this, str);
if (result) result.groups = buildGroups(result, this);
return result;
};
BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
if (typeof substitution === "string") {
return result && (result.groups = buildGroups(result, this)), result;
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
if ("string" == typeof substitution) {
var groups = _groups.get(this);

@@ -111,3 +119,5 @@

}));
} else if (typeof substitution === "function") {
}
if ("function" == typeof substitution) {
var _this = this;

@@ -117,25 +127,8 @@

var args = arguments;
if (typeof args[args.length - 1] !== "object") {
args = [].slice.call(args);
args.push(buildGroups(args, _this));
}
return substitution.apply(this, args);
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
});
} else {
return _super[Symbol.replace].call(this, str, substitution);
}
};
function buildGroups(result, re) {
var g = _groups.get(re);
return Object.keys(g).reduce(function (groups, name) {
groups[name] = result[g[name]];
return groups;
}, Object.create(null));
}
return _wrapRegExp.apply(this, arguments);
return _super[Symbol.replace].call(this, str, substitution);
}, _wrapRegExp.apply(this, arguments);
}

@@ -142,0 +135,0 @@

@@ -6,3 +6,3 @@ 'use strict';

var injectStyles_dist_vanillaExtractCssInjectStyles = require('../injectStyles/dist/vanilla-extract-css-injectStyles.cjs.dev.js');
var transformCss_dist_vanillaExtractCssTransformCss = require('./transformCss-9afad882.cjs.dev.js');
var transformCss_dist_vanillaExtractCssTransformCss = require('./transformCss-1c113184.cjs.dev.js');
var adapter_dist_vanillaExtractCssAdapter = require('../adapter/dist/vanilla-extract-css-adapter.cjs.dev.js');

@@ -18,3 +18,3 @@ var hash = require('@emotion/hash');

var deepmerge = require('deepmerge');
require('escape-string-regexp');
require('ahocorasick');
require('css-what');

@@ -65,7 +65,6 @@ require('media-query-parser');

function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);

@@ -86,2 +85,5 @@ }

});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);

@@ -92,28 +94,34 @@ }

_wrapRegExp = function (re, groups) {
return new BabelRegExp(re, undefined, groups);
return new BabelRegExp(re, void 0, groups);
};
var _super = RegExp.prototype;
var _super = RegExp.prototype,
_groups = new WeakMap();
var _groups = new WeakMap();
function BabelRegExp(re, flags, groups) {
var _this = new RegExp(re, flags);
_groups.set(_this, groups || _groups.get(re));
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
}
return _setPrototypeOf(_this, BabelRegExp.prototype);
function buildGroups(result, re) {
var g = _groups.get(re);
return Object.keys(g).reduce(function (groups, name) {
var i = g[name];
if ("number" == typeof i) groups[name] = result[i];else {
for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
groups[name] = result[i[k]];
}
return groups;
}, Object.create(null));
}
_inherits(BabelRegExp, RegExp);
BabelRegExp.prototype.exec = function (str) {
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
var result = _super.exec.call(this, str);
if (result) result.groups = buildGroups(result, this);
return result;
};
BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
if (typeof substitution === "string") {
return result && (result.groups = buildGroups(result, this)), result;
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
if ("string" == typeof substitution) {
var groups = _groups.get(this);

@@ -124,3 +132,5 @@

}));
} else if (typeof substitution === "function") {
}
if ("function" == typeof substitution) {
var _this = this;

@@ -130,25 +140,8 @@

var args = arguments;
if (typeof args[args.length - 1] !== "object") {
args = [].slice.call(args);
args.push(buildGroups(args, _this));
}
return substitution.apply(this, args);
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
});
} else {
return _super[Symbol.replace].call(this, str, substitution);
}
};
function buildGroups(result, re) {
var g = _groups.get(re);
return Object.keys(g).reduce(function (groups, name) {
groups[name] = result[g[name]];
return groups;
}, Object.create(null));
}
return _wrapRegExp.apply(this, arguments);
return _super[Symbol.replace].call(this, str, substitution);
}, _wrapRegExp.apply(this, arguments);
}

@@ -155,0 +148,0 @@

@@ -6,3 +6,3 @@ 'use strict';

var injectStyles_dist_vanillaExtractCssInjectStyles = require('../injectStyles/dist/vanilla-extract-css-injectStyles.cjs.prod.js');
var transformCss_dist_vanillaExtractCssTransformCss = require('./transformCss-380ec599.cjs.prod.js');
var transformCss_dist_vanillaExtractCssTransformCss = require('./transformCss-3f666075.cjs.prod.js');
var adapter_dist_vanillaExtractCssAdapter = require('../adapter/dist/vanilla-extract-css-adapter.cjs.prod.js');

@@ -18,3 +18,3 @@ var hash = require('@emotion/hash');

var deepmerge = require('deepmerge');
require('escape-string-regexp');
require('ahocorasick');
require('css-what');

@@ -65,7 +65,6 @@ require('media-query-parser');

function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);

@@ -86,2 +85,5 @@ }

});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);

@@ -92,28 +94,34 @@ }

_wrapRegExp = function (re, groups) {
return new BabelRegExp(re, undefined, groups);
return new BabelRegExp(re, void 0, groups);
};
var _super = RegExp.prototype;
var _super = RegExp.prototype,
_groups = new WeakMap();
var _groups = new WeakMap();
function BabelRegExp(re, flags, groups) {
var _this = new RegExp(re, flags);
_groups.set(_this, groups || _groups.get(re));
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
}
return _setPrototypeOf(_this, BabelRegExp.prototype);
function buildGroups(result, re) {
var g = _groups.get(re);
return Object.keys(g).reduce(function (groups, name) {
var i = g[name];
if ("number" == typeof i) groups[name] = result[i];else {
for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
groups[name] = result[i[k]];
}
return groups;
}, Object.create(null));
}
_inherits(BabelRegExp, RegExp);
BabelRegExp.prototype.exec = function (str) {
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
var result = _super.exec.call(this, str);
if (result) result.groups = buildGroups(result, this);
return result;
};
BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
if (typeof substitution === "string") {
return result && (result.groups = buildGroups(result, this)), result;
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
if ("string" == typeof substitution) {
var groups = _groups.get(this);

@@ -124,3 +132,5 @@

}));
} else if (typeof substitution === "function") {
}
if ("function" == typeof substitution) {
var _this = this;

@@ -130,25 +140,8 @@

var args = arguments;
if (typeof args[args.length - 1] !== "object") {
args = [].slice.call(args);
args.push(buildGroups(args, _this));
}
return substitution.apply(this, args);
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
});
} else {
return _super[Symbol.replace].call(this, str, substitution);
}
};
function buildGroups(result, re) {
var g = _groups.get(re);
return Object.keys(g).reduce(function (groups, name) {
groups[name] = result[g[name]];
return groups;
}, Object.create(null));
}
return _wrapRegExp.apply(this, arguments);
return _super[Symbol.replace].call(this, str, substitution);
}, _wrapRegExp.apply(this, arguments);
}

@@ -155,0 +148,0 @@

import { injectStyles } from '../injectStyles/dist/vanilla-extract-css-injectStyles.esm.js';
import { t as transformCss, _ as _objectSpread2, d as dudupeAndJoinClassList } from './transformCss-93366f5d.esm.js';
import { t as transformCss, _ as _objectSpread2, d as dudupeAndJoinClassList } from './transformCss-06fcad3d.esm.js';
import { setAdapterIfNotSet, getIdentOption, appendCss, registerClassName, registerComposition, markCompositionUsed } from '../adapter/dist/vanilla-extract-css-adapter.esm.js';

@@ -13,3 +13,3 @@ import hash from '@emotion/hash';

import deepmerge from 'deepmerge';
import 'escape-string-regexp';
import 'ahocorasick';
import 'css-what';

@@ -52,7 +52,6 @@ import 'media-query-parser';

function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);

@@ -73,2 +72,5 @@ }

});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);

@@ -79,28 +81,34 @@ }

_wrapRegExp = function (re, groups) {
return new BabelRegExp(re, undefined, groups);
return new BabelRegExp(re, void 0, groups);
};
var _super = RegExp.prototype;
var _super = RegExp.prototype,
_groups = new WeakMap();
var _groups = new WeakMap();
function BabelRegExp(re, flags, groups) {
var _this = new RegExp(re, flags);
_groups.set(_this, groups || _groups.get(re));
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
}
return _setPrototypeOf(_this, BabelRegExp.prototype);
function buildGroups(result, re) {
var g = _groups.get(re);
return Object.keys(g).reduce(function (groups, name) {
var i = g[name];
if ("number" == typeof i) groups[name] = result[i];else {
for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
groups[name] = result[i[k]];
}
return groups;
}, Object.create(null));
}
_inherits(BabelRegExp, RegExp);
BabelRegExp.prototype.exec = function (str) {
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
var result = _super.exec.call(this, str);
if (result) result.groups = buildGroups(result, this);
return result;
};
BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
if (typeof substitution === "string") {
return result && (result.groups = buildGroups(result, this)), result;
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
if ("string" == typeof substitution) {
var groups = _groups.get(this);

@@ -111,3 +119,5 @@

}));
} else if (typeof substitution === "function") {
}
if ("function" == typeof substitution) {
var _this = this;

@@ -117,25 +127,8 @@

var args = arguments;
if (typeof args[args.length - 1] !== "object") {
args = [].slice.call(args);
args.push(buildGroups(args, _this));
}
return substitution.apply(this, args);
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
});
} else {
return _super[Symbol.replace].call(this, str, substitution);
}
};
function buildGroups(result, re) {
var g = _groups.get(re);
return Object.keys(g).reduce(function (groups, name) {
groups[name] = result[g[name]];
return groups;
}, Object.create(null));
}
return _wrapRegExp.apply(this, arguments);
return _super[Symbol.replace].call(this, str, substitution);
}, _wrapRegExp.apply(this, arguments);
}

@@ -142,0 +135,0 @@

@@ -8,3 +8,14 @@ {

},
"sideEffects": false
"sideEffects": false,
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"module": "./dist/vanilla-extract-css-fileScope.browser.esm.js",
"default": "./dist/vanilla-extract-css-fileScope.browser.cjs.js"
},
"module": "./dist/vanilla-extract-css-fileScope.esm.js",
"default": "./dist/vanilla-extract-css-fileScope.cjs.js"
}
}
}

@@ -7,3 +7,14 @@ {

"./dist/vanilla-extract-css-functionSerializer.esm.js": "./dist/vanilla-extract-css-functionSerializer.browser.esm.js"
},
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"module": "./dist/vanilla-extract-css-functionSerializer.browser.esm.js",
"default": "./dist/vanilla-extract-css-functionSerializer.browser.cjs.js"
},
"module": "./dist/vanilla-extract-css-functionSerializer.esm.js",
"default": "./dist/vanilla-extract-css-functionSerializer.cjs.js"
}
}
}

@@ -7,3 +7,14 @@ {

"./dist/vanilla-extract-css-injectStyles.esm.js": "./dist/vanilla-extract-css-injectStyles.browser.esm.js"
},
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"module": "./dist/vanilla-extract-css-injectStyles.browser.esm.js",
"default": "./dist/vanilla-extract-css-injectStyles.browser.cjs.js"
},
"module": "./dist/vanilla-extract-css-injectStyles.esm.js",
"default": "./dist/vanilla-extract-css-injectStyles.cjs.js"
}
}
}
{
"name": "@vanilla-extract/css",
"version": "0.0.0-filescope-urls-202281281439",
"version": "0.0.0-filescope-urls-202282754532",
"description": "Zero-runtime Stylesheets-in-TypeScript",

@@ -104,3 +104,3 @@ "sideEffects": true,

"type": "git",
"url": "https://github.com/seek-oss/vanilla-extract.git",
"url": "https://github.com/vanilla-extract-css/vanilla-extract.git",
"directory": "packages/css"

@@ -113,2 +113,3 @@ },

"@vanilla-extract/private": "^1.0.3",
"ahocorasick": "1.0.2",
"chalk": "^4.1.1",

@@ -120,3 +121,2 @@ "css-what": "^5.0.1",

"deepmerge": "^4.2.2",
"escape-string-regexp": "^4.0.0",
"file-uri-to-path": "^2.0.0",

@@ -123,0 +123,0 @@ "media-query-parser": "^2.0.2",

@@ -31,6 +31,12 @@ # 🧁 vanilla-extract

🖥 &nbsp; [Try it out for yourself in CodeSandbox.](https://codesandbox.io/s/github/seek-oss/vanilla-extract/tree/master/examples/webpack-react?file=/src/App.css.ts)
🌐 [Check out the documentation site for setup guides, examples and API docs.](https://vanilla-extract.style)
---
🖥 &nbsp; [Try it out for yourself in CodeSandbox.](https://codesandbox.io/s/github/vanilla-extract-css/vanilla-extract/tree/master/examples/webpack-react?file=/src/App.css.ts)
---
**Write your styles in `.css.ts` files.**

@@ -60,3 +66,3 @@

> 💡 Once you've [configured your build tooling,](#setup) these `.css.ts` files will be evaluated at build time. None of the code in these files will be included in your final bundle. Think of it as using TypeScript as your preprocessor instead of Sass, Less, etc.
> 💡 Once you've [configured your build tooling,](https://vanilla-extract.style/documentation/getting-started/) these `.css.ts` files will be evaluated at build time. None of the code in these files will be included in your final bundle. Think of it as using TypeScript as your preprocessor instead of Sass, Less, etc.

@@ -83,1145 +89,2 @@ **Then consume them in your markup.**

- [Setup](#setup)
- [webpack](#webpack)
- [esbuild](#esbuild)
- [Vite](#vite)
- [Next.js](#nextjs)
- [Gatsby](#gatsby)
- [Rollup](#rollup)
- [Test environments](#test-environments)
- [Configuration](#configuration)
- [identifiers](#identifiers)
- [esbuildOptions](#esbuildoptions)
- [Styling API](#styling-api)
- [style](#style)
- [styleVariants](#stylevariants)
- [globalStyle](#globalstyle)
- [createTheme](#createtheme)
- [createGlobalTheme](#createglobaltheme)
- [createThemeContract](#createthemecontract)
- [createGlobalThemeContract](#createglobalthemecontract)
- [assignVars](#assignvars)
- [createVar](#createvar)
- [fallbackVar](#fallbackvar)
- [fontFace](#fontface)
- [globalFontFace](#globalfontface)
- [keyframes](#keyframes)
- [globalKeyframes](#globalkeyframes)
- [Recipes API](#recipes-api)
- [recipe](#recipe)
- [Dynamic API](#dynamic-api)
- [assignInlineVars](#assigninlinevars)
- [setElementVars](#setelementvars)
- [Utility functions](#utility-functions)
- [calc](#calc)
- [Thanks](#thanks)
- [License](#license)
---
## Setup
There are currently a few integrations to choose from.
### webpack
1. Install the dependencies.
```bash
npm install @vanilla-extract/css @vanilla-extract/webpack-plugin
```
2. Add the [webpack](https://webpack.js.org) plugin.
> 💡 This plugin accepts an optional [configuration object](#configuration).
```js
const { VanillaExtractPlugin } = require('@vanilla-extract/webpack-plugin');
module.exports = {
plugins: [new VanillaExtractPlugin()],
};
```
<details>
<summary>You'll need to ensure you're handling CSS files in your webpack config.</summary>
<br/>
For example:
```js
const { VanillaExtractPlugin } = require('@vanilla-extract/webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
plugins: [
new VanillaExtractPlugin(),
new MiniCssExtractPlugin()
],
module: {
rules: [
{
test: /\.vanilla\.css$/i, // Targets only CSS files generated by vanilla-extract
use: [
MiniCssExtractPlugin.loader,
{
loader: require.resolve('css-loader'),
options: {
url: false // Required as image imports should be handled via JS/TS import statements
}
}
]
}
]
}
};
```
</details>
3. If you'd like automatic debuggable identifiers, you can add the [Babel](https://babeljs.io) plugin.
```bash
$ npm install @vanilla-extract/babel-plugin
```
```json
{
"plugins": ["@vanilla-extract/babel-plugin"]
}
```
### esbuild
1. Install the dependencies.
```bash
npm install @vanilla-extract/css @vanilla-extract/esbuild-plugin
```
2. Add the [esbuild](https://esbuild.github.io/) plugin to your build script.
> 💡 This plugin accepts an optional [configuration object](#configuration).
```js
const { vanillaExtractPlugin } = require('@vanilla-extract/esbuild-plugin');
require('esbuild').build({
entryPoints: ['app.ts'],
bundle: true,
plugins: [vanillaExtractPlugin()],
outfile: 'out.js',
}).catch(() => process.exit(1))
```
> Please note: There are currently no automatic readable class names during development. However, you can still manually provide a debug ID as the last argument to functions that generate scoped styles, e.g. `export const className = style({ ... }, 'className');`
3. Process CSS
As [esbuild](https://esbuild.github.io/) currently doesn't have a way to process the CSS generated by vanilla-extract, you can optionally use the `processCss` option.
For example, to run autoprefixer over the generated CSS.
```js
const {
vanillaExtractPlugin
} = require('@vanilla-extract/esbuild-plugin');
const postcss = require('postcss');
const autoprefixer = require('autoprefixer');
async function processCss(css) {
const result = await postcss([autoprefixer]).process(
css,
{
from: undefined /* suppress source map warning */
}
);
return result.css;
}
require('esbuild')
.build({
entryPoints: ['app.ts'],
bundle: true,
plugins: [
vanillaExtractPlugin({
processCss
})
],
outfile: 'out.js'
})
.catch(() => process.exit(1));
```
### Vite
1. Install the dependencies.
```bash
npm install @vanilla-extract/css @vanilla-extract/vite-plugin
```
2. Add the [Vite](https://vitejs.dev/) plugin to your Vite config.
> 💡 This plugin accepts an optional [configuration object](#configuration).
```js
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
// vite.config.js
export default {
plugins: [vanillaExtractPlugin()]
}
```
> Please note: There are currently no automatic readable class names during development. However, you can still manually provide a debug ID as the last argument to functions that generate scoped styles, e.g. `export const className = style({ ... }, 'className');`
### Next.js
1. Install the dependencies.
```bash
npm install @vanilla-extract/css @vanilla-extract/babel-plugin @vanilla-extract/next-plugin
```
2. If you don't have a `next.config.js` file in the root of your project, create one. Add the [Next.js](https://nextjs.org) plugin to your `next.config.js` file.
> 💡 This plugin accepts an optional [configuration object](#configuration).
```js
const {
createVanillaExtractPlugin
} = require('@vanilla-extract/next-plugin');
const withVanillaExtract = createVanillaExtractPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {};
module.exports = withVanillaExtract(nextConfig);
```
If required, this plugin can be composed with other plugins.
```js
const {
createVanillaExtractPlugin
} = require('@vanilla-extract/next-plugin');
const withVanillaExtract = createVanillaExtractPlugin();
const withMDX = require('@next/mdx')({
extension: /\.mdx$/
});
/** @type {import('next').NextConfig} */
const nextConfig = {};
module.exports = withVanillaExtract(withMDX(nextConfig));
```
3. (Optional) If you want to automatically generate debug IDs during development, you can add the [Babel](https://babeljs.io) plugin. Note that this step will cause Next.js to switch from [SWC](https://github.com/swc-project/swc) to Babel, increasing build times. This may or may not be an issue depending on the size of your project.
> Note: While optional for Next.js, the Babel plugin is still required when trying to run `.css.ts` files in Node for unit testing since the files are no longer being processed by a bundler.
If you don't have a `.babelrc` file in the root of your project, create one. Add the Babel plugin to your `.babelrc` file, ensuring that you're also including `"next/babel"` in your `presets` array.
```json
{
"presets": ["next/babel"],
"plugins": ["@vanilla-extract/babel-plugin"]
}
```
### Gatsby
To add to your [Gatsby](https://www.gatsbyjs.com) site, use the [gatsby-plugin-vanilla-extract](https://github.com/gatsby-uc/plugins/tree/main/packages/gatsby-plugin-vanilla-extract) plugin.
### Rollup
> Note: This option is useful for library development but not suitable for application bundles.
> Rollup has no built-in CSS bundling, so this plugin just outputs styles as individual CSS assets.
> For applications we instead recommend to use Vite
> (which itself uses Rollup under the hood but comes with its own CSS bundling).
1. Install the dependencies.
```bash
npm install @vanilla-extract/css @vanilla-extract/rollup-plugin
```
2. Add the [Rollup](https://rollupjs.org/) plugin to your Rollup config.
> 💡 This plugin accepts an optional [configuration object](#configuration).
```js
import { vanillaExtractPlugin } from '@vanilla-extract/rollup-plugin';
// rollup.config.js
export default {
plugins: [vanillaExtractPlugin()]
}
```
### Test environments
1. Install the dependencies.
```bash
$ npm install @vanilla-extract/babel-plugin
```
2. Add the [Babel](https://babeljs.io) plugin.
```json
{
"plugins": ["@vanilla-extract/babel-plugin"]
}
```
3. Disable runtime styles (Optional)
In testing environments (like `jsdom`) vanilla-extract will create and insert styles. While this is often desirable, it can be a major slowdown in your tests. If your tests don’t require styles to be available, the `disableRuntimeStyles` import will disable all style creation.
```ts
// setupTests.ts
import '@vanilla-extract/css/disableRuntimeStyles';
```
### Configuration
#### identifiers
Different formatting of identifiers (e.g. class names, keyframes, CSS Vars, etc) can be configured by selecting from the following options:
- `short` identifiers are a 7+ character hash. e.g. `hnw5tz3`
- `debug` identifiers contain human readable prefixes representing the owning filename and a potential rule level debug name. e.g. `myfile_mystyle_hnw5tz3`
Each integration will set a default value based on the configuration options passed to the bundler.
### esbuildOptions
> Only for `esbuild`, `vite` and `rollup` plugins
esbuild is used internally to compile `.css.ts` files before evaluating them to extract styles. You can pass additional options here to customize that process.
Accepts a subset of esbuild build options (`plugins`, `external`, `define` and `loader`), see https://esbuild.github.io/api/#build-api.
---
## Styling API
> 🍬 If you're a [treat](https://seek-oss.github.io/treat) user, check out our [migration guide.](./docs/treat-migration-guide.md)
### style
Creates styles attached to a locally scoped class name.
```ts
import { style } from '@vanilla-extract/css';
export const className = style({
display: 'flex'
});
```
CSS Variables, simple pseudos, selectors and media/feature queries are all supported.
```ts
import { style } from '@vanilla-extract/css';
import { vars } from './vars.css.ts';
export const className = style({
display: 'flex',
vars: {
[vars.localVar]: 'green',
'--global-variable': 'purple'
},
':hover': {
color: 'red'
},
selectors: {
'&:nth-child(2n)': {
background: '#fafafa'
}
},
'@media': {
'screen and (min-width: 768px)': {
padding: 10
}
},
'@supports': {
'(display: grid)': {
display: 'grid'
}
}
});
```
Selectors can also contain references to other scoped class names.
```ts
import { style } from '@vanilla-extract/css';
export const parentClass = style({});
export const childClass = style({
selectors: {
[`${parentClass}:focus &`]: {
background: '#fafafa'
}
},
});
```
> 💡 To improve maintainability, each style block can only target a single element. To enforce this, all selectors must target the “&” character which is a reference to the current element.
>
> For example, `'&:hover:not(:active)'` and `` [`${parentClass} &`] `` are considered valid, while `'& a[href]'` and `` [`& ${childClass}`] `` are not.
>
> If you want to target another scoped class then it should be defined within the style block of that class instead.
>
> For example, `` [`& ${childClass}`] `` is invalid since it doesn’t target “&”, so it should instead be defined in the style block for `childClass`.
>
> If you want to globally target child nodes within the current element (e.g. `'& a[href]'`), you should use [`globalStyle`](#globalstyle) instead.
For fallback styles you may simply pass an array of properties instead of a single prop.
```ts
export const exampleStyle = style({
// in Firefox and IE the "overflow: overlay" will be ignored and the "overflow: auto" will be applied
overflow: ['auto', 'overlay'],
});
```
Multiple styles can be composed into a single rule by providing an array of styles.
```ts
import { style } from '@vanilla-extract/css';
const base = style({ padding: 12 });
export const primary = style([
base,
{ background: 'blue' }
]);
export const secondary = style([
base,
{ background: 'aqua' }
]);
```
When composed styles are used in selectors, they are assigned an additional class if required so they can be uniquely identified. When selectors are processed internally, the composed classes are removed, only leaving behind the unique identifier classes. This allows you to treat them as if they were a single class within vanilla-extract selectors.
```ts
import {
style,
globalStyle,
} from '@vanilla-extract/css';
const background = style({ background: 'mintcream' });
const padding = style({ padding: 12 });
export const container = style([background, padding]);
globalStyle(`${container} *`, {
boxSizing: 'border-box'
});
```
### styleVariants
Creates a collection of named style variants.
```ts
import { styleVariants } from '@vanilla-extract/css';
export const variant = styleVariants({
primary: { background: 'blue' },
secondary: { background: 'aqua' },
});
```
> 💡 This is useful for mapping component props to styles, e.g. `<button className={styles.variant[props.variant]}>`
Multiple styles can be composed into a single rule by providing an array of styles.
```ts
import { styleVariants } from '@vanilla-extract/css';
const base = style({ padding: 12 });
export const variant = styleVariants({
primary: [base, { background: 'blue' }],
secondary: [base, { background: 'aqua' }],
});
```
You can also transform the values by providing a map function as the second argument.
```ts
import { styleVariants } from '@vanilla-extract/css';
const base = style({ padding: 12 });
const backgrounds = {
primary: 'blue',
secondary: 'aqua'
} as const;
export const variant = styleVariants(
backgrounds,
(background) => [base, { background }]
);
```
### globalStyle
Creates styles attached to a global selector.
```ts
import { globalStyle } from '@vanilla-extract/css';
globalStyle('html, body', {
margin: 0
});
```
Global selectors can also contain references to other scoped class names.
```ts
import { style, globalStyle } from '@vanilla-extract/css';
export const parentClass = style({});
globalStyle(`${parentClass} > a`, {
color: 'pink'
});
```
### createTheme
Creates a locally scoped theme class and a theme contract which can be consumed within your styles.
**Ensure this function is called within a `.css.ts` context, otherwise variable names will be mismatched between files.**
```ts
// theme.css.ts
import { createTheme } from '@vanilla-extract/css';
export const [themeClass, vars] = createTheme({
color: {
brand: 'blue'
},
font: {
body: 'arial'
}
});
```
You can create theme variants by passing a theme contract as the first argument to `createTheme`.
```ts
// themes.css.ts
import { createTheme } from '@vanilla-extract/css';
export const [themeA, vars] = createTheme({
color: {
brand: 'blue'
},
font: {
body: 'arial'
}
});
export const themeB = createTheme(vars, {
color: {
brand: 'pink'
},
font: {
body: 'comic sans ms'
}
});
```
> 💡 All theme values must be provided or it’s a type error.
### createGlobalTheme
Creates a theme attached to a global selector, but with locally scoped variable names.
**Ensure this function is called within a `.css.ts` context, otherwise variable names will be mismatched between files.**
```ts
// theme.css.ts
import { createGlobalTheme } from '@vanilla-extract/css';
export const vars = createGlobalTheme(':root', {
color: {
brand: 'blue'
},
font: {
body: 'arial'
}
});
```
> 💡 All theme values must be provided or it’s a type error.
If you want to implement an existing theme contract, you can pass it as the second argument.
```ts
// theme.css.ts
import {
createThemeContract,
createGlobalTheme
} from '@vanilla-extract/css';
export const vars = createThemeContract({
color: {
brand: null
},
font: {
body: null
}
});
createGlobalTheme(':root', vars, {
color: {
brand: 'blue'
},
font: {
body: 'arial'
}
});
```
### createThemeContract
Creates a contract of locally scoped variable names for themes to implement.
**Ensure this function is called within a `.css.ts` context, otherwise variable names will be mismatched between files.**
> 💡 This is useful if you want to split your themes into different bundles. In this case, your themes would be defined in separate files, but we'll keep this example simple.
```ts
// themes.css.ts
import {
createThemeContract,
createTheme
} from '@vanilla-extract/css';
export const vars = createThemeContract({
color: {
brand: null
},
font: {
body: null
}
});
export const themeA = createTheme(vars, {
color: {
brand: 'blue'
},
font: {
body: 'arial'
}
});
export const themeB = createTheme(vars, {
color: {
brand: 'pink'
},
font: {
body: 'comic sans ms'
}
});
```
### createGlobalThemeContract
Creates a contract of globally scoped variable names for themes to implement.
> 💡 This is useful if you want to make your theme contract available to non-JavaScript environments.
```ts
// themes.css.ts
import {
createGlobalThemeContract,
createGlobalTheme
} from '@vanilla-extract/css';
export const vars = createGlobalThemeContract({
color: {
brand: 'color-brand'
},
font: {
body: 'font-body'
}
});
createGlobalTheme(':root', vars, {
color: {
brand: 'blue'
},
font: {
body: 'arial'
}
});
```
You can also provide a map function as the second argument which has access to the value and the object path.
For example, you can automatically prefix all variable names.
```ts
// themes.css.ts
import { createGlobalThemeContract } from '@vanilla-extract/css';
export const vars = createGlobalThemeContract({
color: {
brand: 'color-brand'
},
font: {
body: 'font-body'
}
}, (value) => `prefix-${value}`);
```
You can also use the map function to automatically generate names from the object path, joining keys with a hyphen.
```ts
// themes.css.ts
import { createGlobalThemeContract } from '@vanilla-extract/css';
export const vars = createGlobalThemeContract({
color: {
brand: null
},
font: {
body: null
}
}, (_value, path) => `prefix-${path.join('-')}`);
```
### assignVars
Assigns a collection of CSS Variables anywhere within a style block.
> 💡 This is useful for creating responsive themes since it can be used within `@media` blocks.
```ts
import { createThemeContract, style, assignVars } from '@vanilla-extract/css';
export const vars = createThemeContract({
space: {
small: null,
medium: null,
large: null
}
});
export const responsiveSpaceTheme = style({
vars: assignVars(vars.space, {
small: '4px',
medium: '8px',
large: '16px'
}),
'@media': {
'screen and (min-width: 1024px)': {
vars: assignVars(vars.space, {
small: '8px',
medium: '16px',
large: '32px'
})
}
}
});
```
> 💡 All variables passed into this function must be assigned or it’s a type error.
### createVar
Creates a single CSS Variable.
```ts
import { createVar, style } from '@vanilla-extract/css';
export const colorVar = createVar();
export const exampleStyle = style({
color: colorVar
});
```
Scoped variables can be set using the `vars` key.
```ts
import { createVar, style } from '@vanilla-extract/css';
import { colorVar } from './vars.css.ts';
export const parentStyle = style({
vars: {
[colorVar]: 'blue'
}
});
```
### fallbackVar
Provides fallback values when consuming variables.
```ts
import { createVar, fallbackVar, style } from '@vanilla-extract/css';
export const colorVar = createVar();
export const exampleStyle = style({
color: fallbackVar(colorVar, 'blue'),
});
```
Multiple fallbacks are also supported.
```ts
import { createVar, fallbackVar, style } from '@vanilla-extract/css';
export const primaryColorVar = createVar();
export const secondaryColorVar = createVar();
export const exampleStyle = style({
color: fallbackVar(primaryColorVar, secondaryColorVar, 'blue'),
});
```
### fontFace
Creates a custom font attached to a locally scoped font name.
```ts
import { fontFace, style } from '@vanilla-extract/css';
const myFont = fontFace({
src: 'local("Comic Sans MS")'
});
export const text = style({
fontFamily: myFont
});
```
### globalFontFace
Creates a globally scoped custom font.
```ts
import {
globalFontFace,
style
} from '@vanilla-extract/css';
globalFontFace('MyGlobalFont', {
src: 'local("Comic Sans MS")'
});
export const text = style({
fontFamily: 'MyGlobalFont'
});
```
### keyframes
Creates a locally scoped set of keyframes.
```ts
import { keyframes, style } from '@vanilla-extract/css';
const rotate = keyframes({
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(360deg)' }
});
export const animated = style({
animation: `3s infinite ${rotate}`,
});
```
### globalKeyframes
Creates a globally scoped set of keyframes.
```ts
import { globalKeyframes, style } from '@vanilla-extract/css';
globalKeyframes('rotate', {
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(360deg)' }
});
export const animated = style({
animation: `3s infinite rotate`,
});
```
## Recipes API
Create multi-variant styles with a type-safe runtime API, heavily inspired by [Stitches.](https://stitches.dev)
As with the rest of vanilla-extract, all styles are generated at build time.
```bash
$ npm install @vanilla-extract/recipes
```
### recipe
Creates a multi-variant style function that can be used at runtime or statically in `.css.ts` files.
Accepts an optional set of `base` styles, `variants`, `compoundVariants` and `defaultVariants`.
```ts
import { recipe } from '@vanilla-extract/recipes';
export const button = recipe({
base: {
borderRadius: 6
},
variants: {
color: {
neutral: { background: 'whitesmoke' },
brand: { background: 'blueviolet' },
accent: { background: 'slateblue' }
},
size: {
small: { padding: 12 },
medium: { padding: 16 },
large: { padding: 24 }
},
rounded: {
true: { borderRadius: 999 }
}
},
// Applied when multiple variants are set at once
compoundVariants: [
{
variants: {
color: 'neutral',
size: 'large'
},
style: {
background: 'ghostwhite'
}
}
],
defaultVariants: {
color: 'accent',
size: 'medium'
}
});
```
With this recipe configured, you can now use it in your templates.
```ts
import { button } from './button.css.ts';
document.write(`
<button class="${button({
color: 'accent',
size: 'large',
rounded: true
})}">
Hello world
</button>
`);
```
Your recipe configuration can also make use of existing variables, classes and styles.
For example, you can pass in the result of your [`sprinkles`](https://vanilla-extract.style/documentation/packages/sprinkles) function directly.
```ts
import { recipe } from '@vanilla-extract/recipes';
import { reset } from './reset.css.ts';
import { sprinkles } from './sprinkles.css.ts';
export const button = recipe({
base: [reset, sprinkles({ borderRadius: 'round' })],
variants: {
color: {
neutral: sprinkles({ background: 'neutral' }),
brand: sprinkles({ background: 'brand' }),
accent: sprinkles({ background: 'accent' })
},
size: {
small: sprinkles({ padding: 'small' }),
medium: sprinkles({ padding: 'medium' }),
large: sprinkles({ padding: 'large' })
}
},
defaultVariants: {
color: 'accent',
size: 'medium'
}
});
```
## Dynamic API
Dynamically update theme variables at runtime.
```bash
npm install @vanilla-extract/dynamic
```
### assignInlineVars
Assigns CSS Variables as inline styles.
```tsx
// app.tsx
import { assignInlineVars } from '@vanilla-extract/dynamic';
import { vars } from './vars.css.ts';
const MyComponent = () => (
<section
style={assignInlineVars({
[vars.colors.brand]: 'pink',
[vars.colors.accent]: 'green'
})}
>
...
</section>
);
```
You can also assign collections of variables by passing a theme contract as the first argument. All variables must be assigned or it’s a type error.
```tsx
// app.tsx
import { assignInlineVars } from '@vanilla-extract/dynamic';
import { vars } from './vars.css.ts';
const MyComponent = () => (
<section
style={assignInlineVars(vars.colors, {
brand: 'pink',
accent: 'green'
})}
>
...
</section>
);
```
Even though this function returns an object of inline styles, its `toString` method returns a valid `style` attribute value so that it can be used in string templates.
```tsx
// app.ts
import { assignInlineVars } from '@vanilla-extract/dynamic';
import { vars } from './vars.css.ts';
document.write(`
<section style="${assignInlineVars({
[vars.colors.brand]: 'pink',
[vars.colors.accent]: 'green'
})}">
...
</section>
`);
```
### setElementVars
Sets CSS Variables on a DOM element.
```tsx
// app.ts
import { setElementVars } from '@vanilla-extract/dynamic';
import { vars } from './styles.css.ts';
const el = document.getElementById('myElement');
setElementVars(el, {
[vars.colors.brand]: 'pink',
[vars.colors.accent]: 'green'
});
```
You can also set collections of variables by passing a theme contract as the second argument. All variables must be set or it’s a type error.
```tsx
// app.ts
import { setElementVars } from '@vanilla-extract/dynamic';
import { vars } from './styles.css.ts';
const el = document.getElementById('myElement');
setElementVars(el, vars.colors, {
brand: 'pink',
accent: 'green'
});
```
## Utility functions
We also provide a standalone package of optional utility functions to make it easier to work with CSS in TypeScript.
> 💡 This package can be used with any CSS-in-JS library.
```bash
npm install @vanilla-extract/css-utils
```
### calc
Streamlines the creation of CSS calc expressions.
```ts
import { calc } from '@vanilla-extract/css-utils';
const styles = {
height: calc.multiply('var(--grid-unit)', 2)
};
```
The following functions are available.
- `calc.add`
- `calc.subtract`
- `calc.multiply`
- `calc.divide`
- `calc.negate`
The `calc` export is also a function, providing a chainable API for complex calc expressions.
```ts
import { calc } from '@vanilla-extract/css-utils';
const styles = {
marginTop: calc('var(--space-large)')
.divide(2)
.negate()
.toString()
};
```
---
## Thanks

@@ -1228,0 +91,0 @@

@@ -7,3 +7,14 @@ {

"./dist/vanilla-extract-css-recipe.esm.js": "./dist/vanilla-extract-css-recipe.browser.esm.js"
},
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"module": "./dist/vanilla-extract-css-recipe.browser.esm.js",
"default": "./dist/vanilla-extract-css-recipe.browser.cjs.js"
},
"module": "./dist/vanilla-extract-css-recipe.esm.js",
"default": "./dist/vanilla-extract-css-recipe.cjs.js"
}
}
}

@@ -5,6 +5,6 @@ 'use strict';

var transformCss_dist_vanillaExtractCssTransformCss = require('../../dist/transformCss-1d69d03d.browser.cjs.js');
var transformCss_dist_vanillaExtractCssTransformCss = require('../../dist/transformCss-931f0e0d.browser.cjs.js');
require('@vanilla-extract/private');
require('cssesc');
require('escape-string-regexp');
require('ahocorasick');
require('../../adapter/dist/vanilla-extract-css-adapter.browser.cjs.js');

@@ -11,0 +11,0 @@ require('../../dist/taggedTemplateLiteral-c635af00.browser.cjs.js');

@@ -1,5 +0,5 @@

export { t as transformCss } from '../../dist/transformCss-2d2039ef.browser.esm.js';
export { t as transformCss } from '../../dist/transformCss-a8d6e581.browser.esm.js';
import '@vanilla-extract/private';
import 'cssesc';
import 'escape-string-regexp';
import 'ahocorasick';
import '../../adapter/dist/vanilla-extract-css-adapter.browser.esm.js';

@@ -6,0 +6,0 @@ import '../../dist/taggedTemplateLiteral-2d2668f5.browser.esm.js';

@@ -5,6 +5,6 @@ 'use strict';

var transformCss_dist_vanillaExtractCssTransformCss = require('../../dist/transformCss-9afad882.cjs.dev.js');
var transformCss_dist_vanillaExtractCssTransformCss = require('../../dist/transformCss-1c113184.cjs.dev.js');
require('@vanilla-extract/private');
require('cssesc');
require('escape-string-regexp');
require('ahocorasick');
require('../../adapter/dist/vanilla-extract-css-adapter.cjs.dev.js');

@@ -11,0 +11,0 @@ require('../../dist/taggedTemplateLiteral-975613a0.cjs.dev.js');

@@ -5,6 +5,6 @@ 'use strict';

var transformCss_dist_vanillaExtractCssTransformCss = require('../../dist/transformCss-380ec599.cjs.prod.js');
var transformCss_dist_vanillaExtractCssTransformCss = require('../../dist/transformCss-3f666075.cjs.prod.js');
require('@vanilla-extract/private');
require('cssesc');
require('escape-string-regexp');
require('ahocorasick');
require('../../adapter/dist/vanilla-extract-css-adapter.cjs.prod.js');

@@ -11,0 +11,0 @@ require('../../dist/taggedTemplateLiteral-bd61be83.cjs.prod.js');

@@ -1,5 +0,5 @@

export { t as transformCss } from '../../dist/transformCss-93366f5d.esm.js';
export { t as transformCss } from '../../dist/transformCss-06fcad3d.esm.js';
import '@vanilla-extract/private';
import 'cssesc';
import 'escape-string-regexp';
import 'ahocorasick';
import '../../adapter/dist/vanilla-extract-css-adapter.esm.js';

@@ -6,0 +6,0 @@ import '../../dist/taggedTemplateLiteral-b4c22b04.esm.js';

@@ -8,3 +8,14 @@ {

},
"sideEffects": false
"sideEffects": false,
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"module": "./dist/vanilla-extract-css-transformCss.browser.esm.js",
"default": "./dist/vanilla-extract-css-transformCss.browser.cjs.js"
},
"module": "./dist/vanilla-extract-css-transformCss.esm.js",
"default": "./dist/vanilla-extract-css-transformCss.cjs.js"
}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc