Giter VIP home page Giter VIP logo

Comments (7)

gokselgoktas avatar gokselgoktas commented on May 16, 2024 1

@anjankarmakar10 I don't think this is relevant at all. You're looking at the source code of the package and not the final package being distributed. If you do npm i @radix-ui/themes you'd notice that it results in a package called @radix-ui under node_modules, which then contains a themes submodule with styles.css in it as expected. So, I don't think this is the issue here.

from themes.

gokselgoktas avatar gokselgoktas commented on May 16, 2024 1

@Tanya9kin For now the solution was for me to directly import the styles.css file from under node_modules in a local CSS file and then import that in my index.js:

@import url(../../node_modules/@radix-ui/themes/styles.css);

from themes.

Tanya9kin avatar Tanya9kin commented on May 16, 2024 1

@gokselgoktas Thanks! it worked!

from themes.

anjankarmakar10 avatar anjankarmakar10 commented on May 16, 2024

The leading cause of this error is that styles.css does not exist in radix-ui-themes. the @radix-ui/themes/ point to radix-ui-themes folder and you try to access the styles.css like that @radix-ui/themes/styles.css, but there are no styles.css files in this folder. I also noticed you ignored the styles.css in the .gitignore file '/packages/radix-ui-themes/styles.css'

from themes.

Tanya9kin avatar Tanya9kin commented on May 16, 2024

Same here!
I tried importing the @radix-ui/themes/styles.css in my index.js file, imported the component and wrapped my main component with it, and nothing shows up after building.
There is no CSS file in my dist directory, I didn't even get an error about this, just saw that the project does not display any styles.

from themes.

thursdaybw avatar thursdaybw commented on May 16, 2024

Is this issue a duplicate of: #59

This issue sounds very much the same, except you guys are using url() in the imports, and have not specified which environment, that other issue is that it doesnt' work in plain react, but does in next js.

from themes.

vladmoroz avatar vladmoroz commented on May 16, 2024

Can you confirm whether this is resolved in 2.0.0?

from themes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.