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 Answer
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'.
2 Comments
Jinwook Kim
Thanks a lot. But what is Gulp? I'm sorry. I'm kinda super-newbie in this area.
Ray
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
npm install semantic-ui-cssorsemantic-ui-lessinstead.