Comments (8)
For those having a similar issue with the CSS not rendering when using create-react-app, this is the import that fixed it for me:
import 'bulma/css/bulma.css';
Referenced here: jgthms/bulma#388 (comment)
from bloomer.
from bloomer.
Appreciate the quick response. How do I load Bulma with import? Could not find it in your otherwise excellent documentation. A naive approach like import 'bulma'
or import 'bulma/css/bulma
does not work.
from bloomer.
Well... That's weird.
If you're using SASS, you can import modules like:
@import "bulma/sass/utilities/_all"
@import "bulma/sass/grid/columns"
If not, import 'bulma/css/bulma'
should work. Do you have an example nextjs repo where I can test this? I've never tried next but I can try now igual you help me with that :)
from bloomer.
Sure! Here it is: https://github.com/kaspermarstal/x-rai-website. Run npm install
and npm run dev
. The website is styled because of the link rel. You can remove this line and uncomment the import to see the error.
from bloomer.
Hey, this seems to be a configuration error.
You may need an appropriate loader to handle this file type
So, you need something for Next
like css-modules.
Please check this thread.
Once that you have the correct loader, you're going to be able to import bulma
css.
I'm going to close this issue since this is only a configuration problem with Next.js.
Please tell us if you found your solution :)
from bloomer.
Thanks will try that and let you know!
from bloomer.
@kaspermarstal Could you get this to work?
from bloomer.
Related Issues (20)
- button loader not showing on first click HOT 1
- Can't set properties in 'Column' element HOT 1
- Problems with Rollup and Bloomer HOT 2
- Provide isAlign to Navbar Dropdown HOT 1
- Provide <Buttons> element
- Any solution to focus Input HOT 1
- Typescript: Can't build with react-scripts-ts HOT 2
- Ignore this
- Update Repo? HOT 2
- isSelected prop for form components ? HOT 1
- Am I crazy, or are the icons missing from forms? HOT 3
- Support rounded images
- Support responsive helpers to text-align helpers
- HeroSection documentation still using old `Nav` component
- Bloomer and CSS modules
- Dropdown is not working HOT 6
- Feature request: Dropup support for the dropdown component
- What extra advantage of using bloomer instead of plain bulma css classes HOT 4
- What to put on onClick={this.onClickNav} (navbar)
- Multiple select or tag form control?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bloomer.