Zero-runtime Stylesheets-in-TypeScript
MIT License
Bot releases are hidden (Show)
Published by seek-oss-ci about 2 years ago
#812 009e122
Thanks @markdalgleish! - Add support for container query conditions
Example usage
import { createContainer, style } from '@vanilla-extract/css';
import { defineProperties } from '@vanilla-extract/sprinkles';
const containerName = createContainer();
export const container = style({
containerName,
containerType: 'size',
});
const containerProperties = defineProperties({
conditions: {
small: {},
medium: {
'@container': `${containerName} (min-width: 768px)`,
},
large: {
'@container': `${containerName} (min-width: 1024px)`,
},
},
defaultCondition: 'small',
// etc.
});
Published by seek-oss-ci about 2 years ago
#810 c38b152
Thanks @markdalgleish! - Support excluding file names from generateIdentifier
output. This is available by passing a newly-added options object rather than a string.
Example usage
import { generateIdentifier } from '@vanilla-extract/css';
const identifier = generateIdentifier({
debugId,
debugFileName: false,
});
#810 c38b152
Thanks @markdalgleish! - Fix spaces in debug IDs for variable names.
#810 c38b152
Thanks @markdalgleish! - Fix file name prefix in debug names when file extension is .cjs
or .mjs
.
Published by seek-oss-ci about 2 years ago
b0b3662
Thanks @mattcompiles! - Add support for the new createContainer
APIPublished by seek-oss-ci about 2 years ago
#807 b0b3662
Thanks @mattcompiles! - Add createContainer
API
createContainer
creates a single scoped container name for use with CSS Container Queries. This avoids potential naming collisions with other containers.
import { style, createContainer } from '@vanilla-extract/css';
export const sidebarContainer = createContainer();
export const sidebar = style({
containerName: sidebarContainer,
});
export const navigation = style({
'@container': {
[`${sidebarContainer} (min-width: 400px)`]: {
display: 'flex',
},
},
});
#807 b0b3662
Thanks @mattcompiles! - Add support for container queries via the new @container
key.
import { style } from '@vanilla-extract/css';
export const myStyle = style({
'@container': {
'(min-width: 400px)': {
display: 'flex',
},
},
});
Published by seek-oss-ci about 2 years ago
Published by seek-oss-ci about 2 years ago
bb48520
Thanks @mrm007! - Omit Symbol.toStringTag
when serializing module exports.Published by seek-oss-ci about 2 years ago
4fb9a2c
Thanks @benjervis! - Adds a check for the existence of import.meta.hot before attempting to add an event listener to inject stylesPublished by seek-oss-ci about 2 years ago
Published by seek-oss-ci about 2 years ago
21afc23
Thanks @benjervis! - Remove the extracted
entrypoint from the webpack plugin.Published by seek-oss-ci about 2 years ago
Published by seek-oss-ci over 2 years ago
02ea735
Thanks @danielroe! - Generate CSS and not HMR code if vite server is present in production modePublished by seek-oss-ci over 2 years ago
e373b51
Thanks @AndrewLeedham! - Add esbuild configurations to vite/esbuild/rollup pluginse373b51
]:
Published by seek-oss-ci over 2 years ago
8467fc2
Thanks @mattcompiles! - Validate duplicate '@media' in media queriesPublished by seek-oss-ci over 2 years ago
e373b51
Thanks @AndrewLeedham! - Add esbuild configurations to vite/esbuild/rollup plugins8467fc2
]:
Published by seek-oss-ci over 2 years ago
e373b51
]:
Published by seek-oss-ci over 2 years ago
e373b51
Thanks @AndrewLeedham! - Add esbuild configurations to vite/esbuild/rollup pluginse373b51
]:
Published by seek-oss-ci over 2 years ago
e373b51
]:
Published by seek-oss-ci over 2 years ago
e373b51
Thanks @AndrewLeedham! - Add esbuild configurations to vite/esbuild/rollup pluginse373b51
]:
Published by seek-oss-ci over 2 years ago
#716 9b6f3ea
Thanks @mattcompiles! - Fix unresolvable imports inside monorepos
#707 162b66f
Thanks @AndrewLeedham! - Fix styles not updating in dev mode
#706 3fc5040
Thanks @graup! - Suppress empty sourcemap warnings
Published by seek-oss-ci over 2 years ago