Book Image

Typescript essentials

By : Christopher Nance
Book Image

Typescript essentials

By: Christopher Nance

Overview of this book

The book introduces the TypeScript language and its features to anyone looking to develop rich web applications. Whether you are new to web development or are an experienced engineer with strong JavaScript skills, this book will get you writing code quickly. A basic understanding of JavaScript and its language features are necessary for this book.
Table of Contents (15 chapters)

Styling the application


So far, we have only covered the way we develop the source code for our applications. However, styling the application is just as important as the functionality. The code that we write can be completely free of bugs, but if the appearance and feel of the application is poor, users will not adopt it. Traditionally, when developing web applications using HTML pages, we would use Cascading Style Sheets (CSS) to style our objects. However, similar to the way TypeScript improves JavaScript development, a language called LESS has been developed that will compile into plain CSS. LESS is available for standalone download from http://lesscss.org/, or in the case of Visual Studio, it can be installed with Mads Kristensen's Web Essentials plugin. This plugin is available through the Extensions and Updates window just like the NuGet Package Manager was.

Once this has been installed, we can add a LESS style sheet to our application. LESS has a lot of incredibly useful features...