Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vanilla-extract/css

Package Overview
Dependencies
Maintainers
4
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vanilla-extract/css - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

6

CHANGELOG.md
# @vanilla-extract/css
## 1.1.2
### Patch Changes
- [#238](https://github.com/seek-oss/vanilla-extract/pull/238) [`1ee9ba2`](https://github.com/seek-oss/vanilla-extract/commit/1ee9ba2c5e6598450b8bac10d244b7e375e71617) Thanks [@mattcompiles](https://github.com/mattcompiles)! - Allow passing of null contract tokens in `createThemeContract`
## 1.1.1

@@ -4,0 +10,0 @@

5

dist/declarations/src/types.d.ts

@@ -69,6 +69,9 @@ import type { MapLeafNodes, CSSVarFunction } from '@vanilla-extract/private';

}
export declare type NullableTokens = {
[key: string]: string | Tokens | null;
};
export declare type Tokens = {
[key: string]: string | Tokens;
};
export declare type ThemeVars<ThemeContract extends Tokens> = MapLeafNodes<ThemeContract, CSSVarFunction>;
export declare type ThemeVars<ThemeContract extends NullableTokens> = MapLeafNodes<ThemeContract, CSSVarFunction>;
export {};

4

dist/declarations/src/vars.d.ts
import { Contract, MapLeafNodes, CSSVarFunction } from '@vanilla-extract/private';
import { ThemeVars, Tokens } from './types';
import { NullableTokens, ThemeVars } from './types';
export declare function createVar(debugId?: string): CSSVarFunction;
export declare function fallbackVar(...values: [string, ...Array<string>]): CSSVarFunction;
export declare function assignVars<VarContract extends Contract>(varContract: VarContract, tokens: MapLeafNodes<VarContract, string>): Record<CSSVarFunction, string>;
export declare function createThemeContract<ThemeTokens extends Tokens>(tokens: ThemeTokens): ThemeVars<ThemeTokens>;
export declare function createThemeContract<ThemeTokens extends NullableTokens>(tokens: ThemeTokens): ThemeVars<ThemeTokens>;
{
"name": "@vanilla-extract/css",
"version": "1.1.1",
"version": "1.1.2",
"description": "Zero-runtime Stylesheets-in-TypeScript",

@@ -5,0 +5,0 @@ "sideEffects": true,

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc