{"id":14547,"date":"2012-08-02T21:01:17","date_gmt":"2012-08-02T13:01:17","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=14547"},"modified":"2024-09-03T18:35:14","modified_gmt":"2024-09-03T10:35:14","slug":"less-tips-tools","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/","title":{"rendered":"Effective Tips and Tools for Working with LESS"},"content":{"rendered":"<p>In our previous tutorial on <a href=\"https:\/\/www.hongkiat.com\/blog\/less-css-tutorial-design-slick-menu-nav-bar\/\">using LESS to design a navigation bar<\/a>, we explored the practical use of <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/lesscss.org\">LESS<\/a> for code compiling. This time, we\u2019ll cover some tips to enhance your productivity when working with LESS. We\u2019ll set up your working environment with syntax highlighting, automatic compilers, and preset Mixins, and then sync everything together.<\/p>\n<p>If you\u2019re ready, let\u2019s get started.<\/p>\n<p><strong>Disclaimer:<\/strong> These tips are based on my daily experiences as a web designer. They may suit some designers better than others, but I hope you find something useful among them.<\/p>\n<h2>1. Code Highlighting<\/h2>\n<p>Below are tips for adding LESS highlighting to two popular editors: <strong>Sublime Text<\/strong> and <strong>Notepad++<\/strong>.<\/p>\n<h3>Sublime Text<\/h3>\n<p>Sublime Text is my preferred editor, available for Windows, Linux, and macOS. No matter your OS, you can follow this tip.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img02.less-tips.jpg\" alt=\"Sublime Text editor interface\" width=\"500\" height=\"250\"><\/figure>\n<p>First, download it from the official website and follow these instructions to enable LESS color highlighting.<\/p>\n<p><strong>Note:<\/strong> Ensure you\u2019ve read the license before downloading, as the free version is for evaluation purposes only.<\/p>\n<h3>Install Package Control<\/h3>\n<p>Open Sublime Text and access the Console via <strong>View &gt; Show Console<\/strong>.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img03.less-tips.jpg\" alt=\"Sublime Text console view\" width=\"500\" height=\"235\"><\/figure>\n<p>Copy and paste the following command into the Console, then press <span class=\"key\">Enter<\/span> to install Package Control from <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/packagecontrol.io\">wBond.net<\/a>:<\/p>\n<pre><code>import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http:\/\/sublime.wbond.net\/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'<\/code><\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img04.less-tips.jpg\" alt=\"Installing Package Control in Sublime Text\" width=\"500\" height=\"150\"><\/figure>\n<p>Package Control allows us to install the highlight package.<\/p>\n<h3>Installing LESS Highlighting Package<\/h3>\n<p>Restart Sublime Text and open the Command Palette via <strong>Tools &gt; Command Palette<\/strong>. Wait for the package list to load, then type <strong>Install Package<\/strong> to search and load package repositories.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img05.less-tips.jpg\" alt=\"Using Command Palette to install packages in Sublime Text\" width=\"500\" height=\"300\"><\/figure>\n<p>Search for the LESS package in the repository list and press Enter.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img06.less-tips.jpg\" alt=\"LESS package in Sublime Text\" width=\"500\" height=\"300\"><\/figure>\n<p>Wait for the installation to complete, indicated by a notification on the status bar.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img07.less-tips.jpg\" alt=\"LESS package successfully installed in Sublime Text\" width=\"500\" height=\"75\"><\/figure>\n<p>Go to <strong>View &gt; Syntax<\/strong> and check if LESS is listed. If so, your LESS syntax will now be properly highlighted.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img08.less-tips.jpg\" alt=\"Syntax highlighting for LESS in Sublime Text\" width=\"500\" height=\"432\"><\/figure>\n<h3>Notepad++<\/h3>\n<p>Notepad++ is a free, <a href=\"https:\/\/www.hongkiat.com\/blog\/free-code-editors-reviewed\/\">open-source code editor<\/a> with many useful plugins. It\u2019s popular among Windows users and widely used by web designers and developers. Here\u2019s how to add LESS highlighting to Notepad++.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img09.less-tips.jpg\" alt=\"Notepad++ code editor interface\" width=\"500\" height=\"250\"><\/figure>\n<h3>Install LESS Highlighting in Notepad++<\/h3>\n<p>To enable LESS highlighting in Notepad++, first download the LESS package for Notepad++ from <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/azrafe7\/LESS-for-Notepad-plusplus\">this link<\/a>. Then, go to <strong>View &gt; User-Defined Dialogue<\/strong>.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img10.less-tips.jpg\" alt=\"Accessing User-Defined Dialogue in Notepad++\" width=\"500\" height=\"347\"><\/figure>\n<p>In the pop-up box, click the <strong>Import\u2026<\/strong> button, locate the downloaded <code>.xml<\/code> file, and restart Notepad++.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img11.less-tips.jpg\" alt=\"Importing LESS syntax highlighting file in Notepad++\" width=\"500\" height=\"347\"><\/figure>\n<p>Open your .less file and go to the Language menu. LESS should now be listed; select it to apply color highlighting to your LESS syntax.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img12.less-tips.jpg\" alt=\"LESS syntax highlighting in Notepad++\" width=\"500\" height=\"347\"><\/figure>\n<h2>More Resources<\/h2>\n<p>There are many other editors available. Below are some useful resources if you use a different editor.<\/p>\n<h3>Adobe Dreamweaver<\/h3>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/id.wikipedia.org\/wiki\/Adobe_Dreamweaver\">Dreamweaver<\/a> has a large user base and is available for both Mac and Windows. If you use this editor, <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.adobe.com\/cfusion\/exchange\/index.cfm?event=extensionDetail&extid=2756522\">here\u2019s a resource<\/a> to install LESS highlighting in Adobe Dreamweaver.<\/p>\n<h3>Coda<\/h3>\n<p>If you use a Mac, you\u2019re likely familiar with <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Coda_(web_development_software)\">Coda<\/a>, a popular editor among Mac users. <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/mjvotaw\/Coda-2-LESS-Compiler\">Here\u2019s how to install LESS in Coda<\/a>.<\/p>\n<h3>Geany<\/h3>\n<p>Geany is a popular code editor among Linux users. If you use Geany, you can add LESS highlighting by following <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/superuser.com\/questions\/344441\/less-syntax-highlighting-in-geany\">this guide<\/a> on SuperUser.com.<\/p>\n<h2>2. LESS Compiler<\/h2>\n<p>Unlike CrunchApp, which has a built-in LESS compiler, other editors may not include one by default. Although it\u2019s possible to add a compiler, it can be technical for general users. The best solution is to use tools like <strong>WinLESS<\/strong> for Windows or <strong>LESS.app<\/strong> for macOS.<\/p>\n<p>These tools automatically convert your LESS code into static CSS as you save the file and immediately report any errors. Here\u2019s how these tools work:<\/p>\n<p>First, download and install WinLESS.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img13.less-tips.jpg\" alt=\"WinLESS interface\" width=\"500\" height=\"432\"><\/figure>\n<p>Click the Add Folder button and select the directory where your <code>.less<\/code> files are stored. WinLESS will scan the directory, find all <code>.less<\/code> files, and list them.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img14.less-tips.jpg\" alt=\"WinLESS scanning directory for LESS files\" width=\"500\" height=\"347\"><\/figure>\n<p>Go to <strong>File &gt; Settings<\/strong> and ensure the following options are checked:<\/p>\n<ul>\n<li>Automatically compile files when saved<\/li>\n<li>Show message on successful compile<\/li>\n<\/ul>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img15.less-tips.jpg\" alt=\"WinLESS settings menu\" width=\"500\" height=\"347\"><\/figure>\n<p>You can also set an output folder if you want to save files elsewhere. For this example, we\u2019ll leave it as is, so the output file is saved in the same directory as the <code>.less<\/code> file.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img16.less-tips.jpg\" alt=\"Setting output folder in WinLESS\" width=\"500\" height=\"347\"><\/figure>\n<p>Open your <code>.less<\/code> file, make some changes, and save it.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img17.less-tips.jpg\" alt=\"Successful LESS compilation in WinLESS\" width=\"500\" height=\"130\"><\/figure>\n<p>WinLESS will notify you when the file has been successfully compiled into <code>.css<\/code> or if there\u2019s an error. This allows you to check the CSS output immediately, rather than waiting for the entire file to compile.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img18.less-tips.jpg\" alt=\"Viewing compiled CSS in WinLESS\" width=\"500\" height=\"225\"><\/figure>\n<p>If you use macOS, you can use <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/codekitapp.com\/index.html\">LESS.app<\/a>, which has the same functionality as WinLESS.<\/p>\n<h3>Preset Mixins<\/h3>\n<p>In modern web design, we frequently use CSS3 properties like gradients, shadows, or border-radius that look like this:<\/p>\n<pre>-webkit-border-radius: 3px;\r\n -moz-border-radius: 3px;\r\n border-radius: 3px;<\/pre>\n<p>or<\/p>\n<pre>background: -moz-linear-gradient(top, #f0f9ff 0%, #a1dbff 100%); \r\n background: -webkit-linear-gradient(top, #f0f9ff 0%,#a1dbff 100%); \r\n background: -o-linear-gradient(top, #f0f9ff 0%,#a1dbff 100%); \r\n background: -ms-linear-gradient(top, #f0f9ff 0%,#a1dbff 100%);\r\n background: linear-gradient(top, #f0f9ff 0%,#a1dbff 100%);<\/pre>\n<p>In a previous tutorial, we discussed creating Mixins to simplify these syntax rules. Fortunately, the web design community has generously compiled useful Mixins, so we don\u2019t have to start from scratch.<\/p>\n<p>One of my favorites is <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/lesscss.org\/\">Less Elements<\/a>, which includes many useful CSS3 preset rules. This allows us to write less code and avoid tedious vendor prefixes.<\/p>\n<p>Now, let\u2019s see how these tips can help.<\/p>\n<h2>Putting It All Together<\/h2>\n<p>In this example, we\u2019ll create a simple link button. First, create a new HTML document and add the following markup:<\/p>\n<pre>\r\n&lt;head&gt;\r\n    &lt;title&gt;LESS&lt;\/title&gt;\r\n    &lt;link rel=\"stylesheet\" href=\"styles.css\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n    &lt;a href=\"#\"&gt;Click Me&lt;\/a&gt;\r\n&lt;\/body&gt;\r\n<\/pre>\n<p>Create a <code>styles.less<\/code> file as your main LESS stylesheet, save it in the same folder as the HTML document, and add the folder to WinLESS.<\/p>\n<p>Import the <code>elements.less<\/code> file you downloaded earlier using this syntax:<\/p>\n<pre>@import \"elements.less\";<\/pre>\n<p>Now, you can use any Mixins provided by elements.less, such as <code>.gradient<\/code>, <code>.rounded<\/code>, and <code>.bordered<\/code>. These names are self-explanatory.<\/p>\n<p>Next, add the following LESS rules to your stylesheet and save it:<\/p>\n<pre>\r\na {\r\n    display: inline-block;\r\n    padding: 10px 20px;\r\n    color: #555;\r\n    text-decoration: none;\r\n    .bw-gradient(#eee, 240, 255);\r\n    .rounded;\r\n    .bordered;\r\n    &:hover {\r\n        .bw-gradient(#eee, 255, 240);\r\n    }\r\n}\r\n<\/pre>\n<p>Since your <code>.less<\/code> file is added to WinLESS, it will automatically compile into <code>.css<\/code>. Now, let\u2019s see the result.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img19.less-tips.jpg\" alt=\"Final button created using LESS\" width=\"500\" height=\"118\"><\/figure>\n<p>It\u2019s not bad, considering the button was created with fewer lines of code. Here\u2019s the generated static CSS:<\/p>\n<pre>\r\na {\r\n    display: inline-block;\r\n    padding: 10px 20px;\r\n    color: #555;\r\n    text-decoration: none;\r\n    background: #eeeeee;\r\n    background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #f0f0f0), color-stop(1, #ffffff));\r\n    background: -ms-linear-gradient(bottom, #f0f0f0 0%, #f0f0f0 100%);\r\n    background: -moz-linear-gradient(center bottom, #f0f0f0 0%, #ffffff 100%);\r\n    -webkit-border-radius: 2px;\r\n    -moz-border-radius: 2px;\r\n    border-radius: 2px;\r\n    -moz-background-clip: padding;\r\n    -webkit-background-clip: padding-box;\r\n    background-clip: padding-box;\r\n    border-top: solid 1px #eeeeee;\r\n    border-left: solid 1px #eeeeee;\r\n    border-right: solid 1px #eeeeee;\r\n    border-bottom: solid 1px #eeeeee;\r\n}\r\n\r\na:hover {\r\n    background: #eeeeee;\r\n    background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ffffff), color-stop(1, #f0f0f0));\r\n    background: -ms-linear-gradient(bottom, #ffffff 0%, #ffffff 100%);\r\n    background: -moz-linear-gradient(center bottom, #ffffff 0%, #f0f0f0 100%);\r\n}\r\n<\/pre>\n<h2>Summary<\/h2>\n<p>Here\u2019s a quick recap of what we\u2019ve covered:<\/p>\n<ul>\n<li>Enabling syntax highlighting in your current editor saves you from installing additional software, conserving disk space.<\/li>\n<li>Using a compiler like WinLESS or LESS.app allows you to generate static CSS instantly and check for syntax errors immediately.<\/li>\n<li>Preset Mixins like LESS Elements are invaluable, saving time and effort in writing CSS3 properties.<\/li>\n<\/ul>\n<p>That\u2019s the end of our tips. I hope you find them helpful for your current or future web projects. Thanks for reading! If you have any comments, feel free to share them below.<\/p>","protected":false},"excerpt":{"rendered":"<p>In our previous tutorial on using LESS to design a navigation bar, we explored the practical use of LESS for code compiling. This time, we\u2019ll cover some tips to enhance your productivity when working with LESS. We\u2019ll set up your working environment with syntax highlighting, automatic compilers, and preset Mixins, and then sync everything together.&hellip;<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[3392,352],"tags":[507,1980],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Effective Tips and Tools for Working with LESS - Hongkiat<\/title>\n<meta name=\"description\" content=\"In our previous tutorial on using LESS to design a navigation bar, we explored the practical use of LESS for code compiling. This time, we&#039;ll cover some\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Effective Tips and Tools for Working with LESS\" \/>\n<meta property=\"og:description\" content=\"In our previous tutorial on using LESS to design a navigation bar, we explored the practical use of LESS for code compiling. This time, we&#039;ll cover some\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2012-08-02T13:01:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-03T10:35:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img02.less-tips.jpg\" \/>\n<meta name=\"author\" content=\"Thoriq Firdaus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tfirdaus\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thoriq Firdaus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"Effective Tips and Tools for Working with LESS\",\"datePublished\":\"2012-08-02T13:01:17+00:00\",\"dateModified\":\"2024-09-03T10:35:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/\"},\"wordCount\":1041,\"commentCount\":12,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/less-tips-tools\\\/img02.less-tips.jpg\",\"keywords\":[\"CSS\",\"Less\"],\"articleSection\":[\"Coding\",\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/\",\"name\":\"Effective Tips and Tools for Working with LESS - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/less-tips-tools\\\/img02.less-tips.jpg\",\"datePublished\":\"2012-08-02T13:01:17+00:00\",\"dateModified\":\"2024-09-03T10:35:14+00:00\",\"description\":\"In our previous tutorial on using LESS to design a navigation bar, we explored the practical use of LESS for code compiling. This time, we'll cover some\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/less-tips-tools\\\/img02.less-tips.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/less-tips-tools\\\/img02.less-tips.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/less-tips-tools\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Effective Tips and Tools for Working with LESS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\",\"name\":\"Thoriq Firdaus\",\"description\":\"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.\",\"sameAs\":[\"https:\\\/\\\/thoriq.com\",\"https:\\\/\\\/x.com\\\/tfirdaus\"],\"jobTitle\":\"Web Developer\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/thoriq\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Effective Tips and Tools for Working with LESS - Hongkiat","description":"In our previous tutorial on using LESS to design a navigation bar, we explored the practical use of LESS for code compiling. This time, we'll cover some","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/","og_locale":"en_US","og_type":"article","og_title":"Effective Tips and Tools for Working with LESS","og_description":"In our previous tutorial on using LESS to design a navigation bar, we explored the practical use of LESS for code compiling. This time, we'll cover some","og_url":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2012-08-02T13:01:17+00:00","article_modified_time":"2024-09-03T10:35:14+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img02.less-tips.jpg","type":"","width":"","height":""}],"author":"Thoriq Firdaus","twitter_card":"summary_large_image","twitter_creator":"@tfirdaus","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Thoriq Firdaus","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"Effective Tips and Tools for Working with LESS","datePublished":"2012-08-02T13:01:17+00:00","dateModified":"2024-09-03T10:35:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/"},"wordCount":1041,"commentCount":12,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img02.less-tips.jpg","keywords":["CSS","Less"],"articleSection":["Coding","Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/","url":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/","name":"Effective Tips and Tools for Working with LESS - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img02.less-tips.jpg","datePublished":"2012-08-02T13:01:17+00:00","dateModified":"2024-09-03T10:35:14+00:00","description":"In our previous tutorial on using LESS to design a navigation bar, we explored the practical use of LESS for code compiling. This time, we'll cover some","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img02.less-tips.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/less-tips-tools\/img02.less-tips.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/less-tips-tools\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Effective Tips and Tools for Working with LESS"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807","name":"Thoriq Firdaus","description":"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.","sameAs":["https:\/\/thoriq.com","https:\/\/x.com\/tfirdaus"],"jobTitle":"Web Developer","url":"https:\/\/www.hongkiat.com\/blog\/author\/thoriq\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-3MD","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/14547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=14547"}],"version-history":[{"count":4,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/14547\/revisions"}],"predecessor-version":[{"id":72737,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/14547\/revisions\/72737"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=14547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=14547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=14547"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=14547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}