1

I've just installed Semantic UI in my cloud9 instance via Npm using npm install --save semantic-ui But I got no way to use it. Do I need to require it? I got a new directory called semantic But What do I do with this?

1
  • 4
    If you're only using it without extensive modification/configuration of it, why not follow the "Simpler Setup" section suggested in the official documentation semantic-ui.com/introduction/getting-started.html and npm install semantic-ui-css or semantic-ui-less instead. Commented Sep 20, 2018 at 4:39

1 Answer 1

3

You need to go into the semantic folder and build it with Gulp.

After building it the necessary css and js files can be accessed in your html <head> section.

<link rel="stylesheet" type="text/css" href="semantic/dist/semantic.min.css">
<script
  src="https://code.jquery.com/jquery-3.1.1.min.js"
  integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
  crossorigin="anonymous"></script>
<script src="semantic/dist/semantic.min.js"></script>

See details here in section 'Install Semantic UI'.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks a lot. But what is Gulp? I'm sorry. I'm kinda super-newbie in this area.
It's a task runner - a tool to help structure and organise your project in many ways. In this case you simply need it to run a single command - build. Semantic takes care of the rest for you. Install it by running npm install -g gulp

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.