Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
203 views

Vite build in docker with WSL2 integration is extremely slow

I'm having a hard time understanding the root cause of Vite build poor performance inside of a docker image that I hope for some guidance here. Running vite build locally versus inside of a docker has ...
Benas Radzevicius's user avatar
0 votes
1 answer
146 views

How to select hardcoded CSS class with Vanilla Extract?

I’m migrating from Emotion to Vanilla Extract. I have a component which contains a third-party UI library component. This third-party component has a hardcoded class .ClassWhichICannotChange. In ...
Black Beard's user avatar
  • 1,598
0 votes
0 answers
325 views

Vanilla extract Next.js storybook: Can't resolve @vanilla-extract/css/recipe'

I use vanilla extract in next.js project. When i configure vanilla extract in storybook, i meet this error. Cannot find module '@vanilla-extract/css/recipe' at webpackMissingModule (vendors-...
nayounsang's user avatar
2 votes
0 answers
246 views

Create dynamic theme using vanilla extract css

i have theme Provider Component using vanilla extract import { createContext, useEffect } from 'react'; import { ThemeManager } from './ThemeManager'; import { ThemeContextProps, ThemeProviderProps } ...
Snivio's user avatar
  • 1,866
0 votes
2 answers
521 views

How can I overwrite the styling that is specified using vanilla-extract globalStyle?

I am working on a React app and have a CSS style configuration that affects all elements within the body. However, I have a new component that I want to add without applying this styling to it. Is ...
小熊呆呆Kumaa's user avatar
0 votes
0 answers
115 views

Use vanilla-extract with jest-image-snapshot

I'm trying to setup visual tests using jest-image-snapshot package for components written with vanilla-extract. I do use @vanilla-extract/jest-transform and when I try to console log rendered HTML I ...
Max's user avatar
  • 484
0 votes
3 answers
580 views

How can I change icon inside button on hover using chakra-ui and vanilla-extract?

I am using nextjs13, chakra-ui, and vanilla-extract Does anyone know how to change icon and text inside button on hover, using chakra-ui and vanilla-extract? I have a button like this: <Button >...
amu03's user avatar
  • 361
1 vote
1 answer
573 views

How to override react-slick default style for one slider?

I want to display slick carousels with customized prev/next arrows and the position of the arrow. I am using nextjs13, chakra-ui, react-slick, and vanilla extract. I actually could customize the ...
amu03's user avatar
  • 361
1 vote
0 answers
377 views

I made a dark mode with vanilla extract on Nextjs, but it's too slow. What is the problem?

I use vanilla extract like this /** layout.tsx */ export default function RootLayout({ children, }: { children: React.ReactNode; }) { const cookieStore = cookies(); const theme = cookieStore....
Joo's user avatar
  • 13
0 votes
1 answer
274 views

How to optimze FCP, LCP in Nextjs 14 or 13 (source code, published url)

I use Nextjs 14, Vanilla Extract, mongoDB, Vercel It takes 2.5 sec at least and 5 sec maximum to move another pages. (with no cache) And it takes 2 sec at least to change theme. (When I click the ...
Joo's user avatar
  • 13
1 vote
1 answer
774 views

set breakpoints and write media query vanilla-extract css

Using vanilla-extract/css I want to set breakpoint and write media query css. This is what I have tried: inside global css. export const theme = createGlobalTheme(":root", { breakpoints: ...
amu03's user avatar
  • 361
0 votes
1 answer
1k views

Using vanilla-extract, how am I expected to define styles for nested elements?

Mantine v7 just moved over to CSS modules and officially recommends vanilla-extract for those wanting to continue using CSS in JS. I'm working on porting a project over, and I feel like I must be ...
aviemet's user avatar
  • 1,643
0 votes
1 answer
629 views

How to style first table cell in Vanilla Extract?

I am trying to make a rounded <tbody> in Vanilla Extract but having a hard time understanding how to select specific children. How does one select tbody tr:first-child td:first-child? table {...
ViktorMS's user avatar
  • 1,301
0 votes
0 answers
429 views

chakra-ui & css question: Show html text inside Popover

I want to show html text <ul><li>test</li><li>test</li><li>test</li></ul> inside popover when I hover "HOVER HERE". This is what I want↓ ...
amu03's user avatar
  • 361
7 votes
0 answers
2k views

"Error: Styles were unable to be assigned to a file" when building React app

Running npm run build returns this error. I believe it was working properly 3-4 months ago and, in fact, npm run dev works great. I suspect it has something to do with the removal requirement of the @...
user1883163's user avatar
0 votes
1 answer
686 views

@vanilla-extract/css - is there a way to export stylesheet CSS for shadow DOM

I am looking at @vanilla-extract/css for my styling in React app. The method style exports a className from the *.css.ts file but I require inline styling for Shadow DOM encapsulation. I was checking @...
cs1193's user avatar
  • 1,109
1 vote
1 answer
1k views

How to set background image in vanilla-extract/css

I am currently new to vanilla-extract/CSS and I have a relative simple question, I am trying to set background image to the body of my html using vanilla-extract and I cant get it right I am getting ...
James_kahosh's user avatar
0 votes
1 answer
4k views

how to use vanilla-extract for `style` attribute?

Have a following sample of code which I want migrate to vanilla-extract, my main question is how to generate styles for style attribute in this case? // in ColorToken.tsx function ColorToken(props: { ...
Anton Dozortsev's user avatar
3 votes
1 answer
3k views

Apply :hover::after / :hover::before on Gatsby using vanilla-extract

I'm trying to add a dynamic underline. When hovering the element I can't change the "after" or "before elements using CSS. I know this can be done with plain CSS, but its not working ...
Franco Petra's user avatar
  • 1,032
5 votes
2 answers
13k views

How to style child elements with vanilla extract?

I am starting to use vanilla extract to style a NextJS app. Is there any way to style child elements from the parent without creating another class? I have an structure like this in the react ...
David Rios's user avatar
0 votes
2 answers
1k views

Import image with vanilla-extract and esbuild

I have a problem with images importing using vanilla-extract and esbuild my build file: const { build } = require("esbuild"); const { vanillaExtractPlugin } = require("@vanilla-extract/...
dm.shpak's user avatar
  • 345
24 votes
2 answers
2k views

Using vanilla-extract as the styling engine for Material-UI

Some background Our team has been using Material UI for quite some time, and we love it. With the release of Material UI v5, we took the time to check which styling solution we would use next since ...
panepeter's user avatar
  • 4,172