Ravi Mule
Ravi Mule

Reputation: 404

What are the ways to include new css file into magento 2

Please help me I have created new custom theme in magento 2 but I am facing problem to add new css file into theme.

For your information I have deploy code using composer to pub folder. Css files are copying there but not including those to frontend.

Upvotes: 0

Views: 5777

Answers (2)

Rahul Singh
Rahul Singh

Reputation: 199

Recently In magento2 I have included css file in catalog_product_view.xml as

<head>
    <css src="mage/gallery/styles-view.css"/>
</head>

Upvotes: 1

Steve Johnson
Steve Johnson

Reputation: 369

Suggest you start here.

Add your CSS as part of a layout as discussed in this topic.

If you have other questions, please let us know.

Upvotes: 1

Related Questions